Warning: Trying to access array offset on false in /var/www/vhosts/mystifying-sanderson.81-173-83-237.plesk.page/httpdocs/libraries/src/Application/SiteApplication.php on line 483

Warning: Attempt to read property "template" on null in /var/www/vhosts/mystifying-sanderson.81-173-83-237.plesk.page/httpdocs/libraries/src/Application/SiteApplication.php on line 501
Attempt to assign property "template" on null (500 Whoops, looks like something went wrong.)

TypeError Error

HTTP 500 Whoops, looks like something went wrong.

Attempt to assign property "template" on null

Exceptions 2

Error

  1. }
  2. }
  3. }
  4. // Need to filter the default value as well
  5. $template->template = InputFilter::getInstance()->clean($template->template, 'cmd');
  6. // Fallback template
  7. if (!empty($template->parent)) {
  8. if (!is_file(JPATH_THEMES . '/' . $template->template . '/index.php')) {
  9. if (!is_file(JPATH_THEMES . '/' . $template->parent . '/index.php')) {
  1. public function render(\Throwable $error): string
  2. {
  3. $app = Factory::getApplication();
  4. // Get the current template from the application
  5. $template = $app->getTemplate(true);
  6. // Push the error object into the document
  7. $this->getDocument()->setError($error);
  8. // Add registry file for the template asset
  1. 'subject' => $app,
  2. 'document' => $renderer->getDocument(),
  3. ])
  4. );
  5. $data = $renderer->render($error);
  6. // If nothing was rendered, just use the message from the Exception
  7. if (empty($data)) {
  8. $data = $error->getMessage();
  9. }
  1. * @since 3.10.0
  2. */
  3. public static function handleException(\Throwable $error)
  4. {
  5. static::logException($error);
  6. static::render($error);
  7. }
  8. /**
  9. * Render the error page based on an exception.
  10. *
  1. );
  2. // Trigger the onError event.
  3. $this->dispatchEvent('onError', $event);
  4. ExceptionHandler::handleException($event->getError());
  5. }
  6. // Trigger the onBeforeRespond event.
  7. $this->dispatchEvent(
  8. 'onBeforeRespond',
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application = $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/var/www/vhosts/mystifying-sanderson.81-173-83-237.plesk.page/httpdocs/includes/app.php') in /var/www/vhosts/mystifying-sanderson.81-173-83-237.plesk.page/httpdocs/index.php (line 51)
  1. // ... die
  2. die();
  3. }
  4. // Run the application - All executable code should be triggered through this file
  5. require_once __DIR__ . '/includes/app.php';

TypeError

RegularLabs\Library\Parameters::getDataFromXmlPath(): Return value must be of type object, false returned

  1. $cache = new \RegularLabs\Library\Cache(['parameters.get_data_from_xml_path', $path, $modified_time, $full_info, $default_name]);
  2. if ($use_cache) {
  3. $cache->useFiles();
  4. }
  5. if ($use_cache && $cache->exists()) {
  6. return $cache->get();
  7. }
  8. if (!$file_exists) {
  9. return $cache->set((object) []);
  10. }
  11. $doc = new DOMDocument();
  1. {
  2. $cache = new \RegularLabs\Library\Cache(['parameters.get_object_from_data', $path, $default_name, $params]);
  3. if ($use_cache && $cache->exists()) {
  4. return $cache->get();
  5. }
  6. $data = self::getDataFromXmlPath($path, $use_cache, \false, $default_name);
  7. if (empty($params)) {
  8. return $cache->set($data);
  9. }
  10. if (is_array($params)) {
  11. $params = (object) $params;
  1. }
  2. if (empty($params)) {
  3. $plugin = JPluginHelper::getPlugin($type, $name);
  4. $params = is_object($plugin) && isset($plugin->params) ? $plugin->params : null;
  5. }
  6. return $cache->set(self::getObjectFromData($params, JPATH_PLUGINS . '/' . $type . '/' . $name . '/' . $name . '.xml'));
  7. }
  8. /**
  9. * @deprecated: use getDataFromXmlPath
  10. */
  11. public static function loadXML(string $path, ?string $default_name = '', bool $use_cache = \true, bool $full_info = \false): array
  1. if ( ! is_null(self::$params))
  2. {
  3. return self::$params;
  4. }
  5. self::$params = RL_Parameters::getPlugin('cachecleaner');
  6. return self::$params;
  7. }
  8. }
  1. if (JFactory::getApplication() instanceof ConsoleApplication)
  2. {
  3. return 'clean';
  4. }
  5. $params = Params::get();
  6. $cleancache = trim(RL_Input::getString('cleancache', ''));
  7. // Clean via url
  8. if ( ! empty($cleancache))
  1. {
  2. self::purgeThirdPartyCacheByUrl();
  3. self::$plugin_id = $plugin_id;
  4. if ( ! self::getCleanType())
  5. {
  6. return false;
  7. }
  8. // Run the main purge actions
  1. return true;
  2. }
  3. protected function handleOnAfterRoute(): void
  4. {
  5. Cache::clean($this->_id);
  6. }
  7. }
  1. {
  2. $this->_doc_ready = \true;
  3. if (!$this->passChecks()) {
  4. return;
  5. }
  6. $this->handleOnAfterRoute();
  7. }
  8. public function onBeforeCompileHead(): void
  9. {
  10. if (!$this->passChecks()) {
  11. return;
  1. foreach ($this->listeners[$event->getName()] as $listener) {
  2. if ($event->isStopped()) {
  3. return $event;
  4. }
  5. $listener($event);
  6. }
  7. }
  8. return $event;
  9. }
  1. $dispatcher = $this->getDispatcher();
  2. } catch (\UnexpectedValueException $exception) {
  3. return null;
  4. }
  5. return $dispatcher->dispatch($eventName, $event ?: new ApplicationEvent($eventName, $this));
  6. }
  7. /**
  8. * Method to run the application routines.
  9. *
  1. $this->input->def($key, $value);
  2. }
  3. // Trigger the onAfterRoute event.
  4. PluginHelper::importPlugin('system', null, true, $this->getDispatcher());
  5. $this->dispatchEvent(
  6. 'onAfterRoute',
  7. new AfterRouteEvent('onAfterRoute', ['subject' => $this])
  8. );
  9. $Itemid = $this->input->getInt('Itemid', 0);
  1. // Mark afterInitialise in the profiler.
  2. JDEBUG ? $this->profiler->mark('afterInitialise') : null;
  3. // Route the application
  4. $this->route();
  5. // Mark afterRoute in the profiler.
  6. JDEBUG ? $this->profiler->mark('afterRoute') : null;
  7. if (!$this->isHandlingMultiFactorAuthentication()) {
  1. $this->sanityCheckSystemVariables();
  2. $this->setupLogging();
  3. $this->createExtensionNamespaceMap();
  4. // Perform application routines.
  5. $this->doExecute();
  6. // If we have an application document object, render it.
  7. if ($this->document instanceof \Joomla\CMS\Document\Document) {
  8. // Render the application output.
  9. $this->render();
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application = $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/var/www/vhosts/mystifying-sanderson.81-173-83-237.plesk.page/httpdocs/includes/app.php') in /var/www/vhosts/mystifying-sanderson.81-173-83-237.plesk.page/httpdocs/index.php (line 51)
  1. // ... die
  2. die();
  3. }
  4. // Run the application - All executable code should be triggered through this file
  5. require_once __DIR__ . '/includes/app.php';

Stack Traces 2

[2/2] Error
Error:
Attempt to assign property "template" on null

  at /var/www/vhosts/mystifying-sanderson.81-173-83-237.plesk.page/httpdocs/libraries/src/Application/SiteApplication.php:501
  at Joomla\CMS\Application\SiteApplication->getTemplate()
     (/var/www/vhosts/mystifying-sanderson.81-173-83-237.plesk.page/httpdocs/libraries/src/Error/Renderer/HtmlRenderer.php:50)
  at Joomla\CMS\Error\Renderer\HtmlRenderer->render()
     (/var/www/vhosts/mystifying-sanderson.81-173-83-237.plesk.page/httpdocs/libraries/src/Exception/ExceptionHandler.php:142)
  at Joomla\CMS\Exception\ExceptionHandler::render()
     (/var/www/vhosts/mystifying-sanderson.81-173-83-237.plesk.page/httpdocs/libraries/src/Exception/ExceptionHandler.php:76)
  at Joomla\CMS\Exception\ExceptionHandler::handleException()
     (/var/www/vhosts/mystifying-sanderson.81-173-83-237.plesk.page/httpdocs/libraries/src/Application/CMSApplication.php:334)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/var/www/vhosts/mystifying-sanderson.81-173-83-237.plesk.page/httpdocs/includes/app.php:58)
  at require_once('/var/www/vhosts/mystifying-sanderson.81-173-83-237.plesk.page/httpdocs/includes/app.php')
     (/var/www/vhosts/mystifying-sanderson.81-173-83-237.plesk.page/httpdocs/index.php:51)                
[1/2] TypeError
TypeError:
RegularLabs\Library\Parameters::getDataFromXmlPath(): Return value must be of type object, false returned

  at /var/www/vhosts/mystifying-sanderson.81-173-83-237.plesk.page/httpdocs/libraries/regularlabs/src/Parameters.php:47
  at RegularLabs\Library\Parameters::getDataFromXmlPath()
     (/var/www/vhosts/mystifying-sanderson.81-173-83-237.plesk.page/httpdocs/libraries/regularlabs/src/Parameters.php:106)
  at RegularLabs\Library\Parameters::getObjectFromData()
     (/var/www/vhosts/mystifying-sanderson.81-173-83-237.plesk.page/httpdocs/libraries/regularlabs/src/Parameters.php:153)
  at RegularLabs\Library\Parameters::getPlugin()
     (/var/www/vhosts/mystifying-sanderson.81-173-83-237.plesk.page/httpdocs/plugins/system/cachecleaner/src/Params.php:29)
  at RegularLabs\Plugin\System\CacheCleaner\Params::get()
     (/var/www/vhosts/mystifying-sanderson.81-173-83-237.plesk.page/httpdocs/plugins/system/cachecleaner/src/Cache.php:264)
  at RegularLabs\Plugin\System\CacheCleaner\Cache::getCleanType()
     (/var/www/vhosts/mystifying-sanderson.81-173-83-237.plesk.page/httpdocs/plugins/system/cachecleaner/src/Cache.php:51)
  at RegularLabs\Plugin\System\CacheCleaner\Cache::clean()
     (/var/www/vhosts/mystifying-sanderson.81-173-83-237.plesk.page/httpdocs/plugins/system/cachecleaner/src/Extension/CacheCleaner.php:36)
  at RegularLabs\Plugin\System\CacheCleaner\Extension\CacheCleaner->handleOnAfterRoute()
     (/var/www/vhosts/mystifying-sanderson.81-173-83-237.plesk.page/httpdocs/libraries/regularlabs/src/Plugin/System.php:214)
  at RegularLabs\Library\Plugin\System->onAfterRoute()
     (/var/www/vhosts/mystifying-sanderson.81-173-83-237.plesk.page/httpdocs/libraries/vendor/joomla/event/src/Dispatcher.php:454)
  at Joomla\Event\Dispatcher->dispatch()
     (/var/www/vhosts/mystifying-sanderson.81-173-83-237.plesk.page/httpdocs/libraries/vendor/joomla/application/src/AbstractApplication.php:99)
  at Joomla\Application\AbstractApplication->dispatchEvent()
     (/var/www/vhosts/mystifying-sanderson.81-173-83-237.plesk.page/httpdocs/libraries/src/Application/SiteApplication.php:819)
  at Joomla\CMS\Application\SiteApplication->route()
     (/var/www/vhosts/mystifying-sanderson.81-173-83-237.plesk.page/httpdocs/libraries/src/Application/SiteApplication.php:243)
  at Joomla\CMS\Application\SiteApplication->doExecute()
     (/var/www/vhosts/mystifying-sanderson.81-173-83-237.plesk.page/httpdocs/libraries/src/Application/CMSApplication.php:304)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/var/www/vhosts/mystifying-sanderson.81-173-83-237.plesk.page/httpdocs/includes/app.php:58)
  at require_once('/var/www/vhosts/mystifying-sanderson.81-173-83-237.plesk.page/httpdocs/includes/app.php')
     (/var/www/vhosts/mystifying-sanderson.81-173-83-237.plesk.page/httpdocs/index.php:51)