Warning: Trying to access array offset on false in /home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/libraries/src/Application/SiteApplication.php on line 483

Warning: Attempt to read property "template" on null in /home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/libraries/src/Application/SiteApplication.php on line 501
Attempt to assign property "template" on null (500 Whoops, looks like something went wrong.)

UnexpectedValueException 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. }
ExceptionHandler::render(object(UnexpectedValueException)) in /home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/libraries/src/Exception/ExceptionHandler.php (line 73)
  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. *
ExceptionHandler::handleException(object(UnexpectedValueException)) in /home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/libraries/src/Application/CMSApplication.php (line 334)
  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('/home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/includes/app.php') in /home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/index.php (line 32)
  1. * define() is used rather than "const" to not error for PHP 5.2 and lower
  2. */
  3. define('_JEXEC', 1);
  4. // Run the application - All executable code should be triggered through this file
  5. require_once __DIR__ . '/includes/app.php';

UnexpectedValueException

Joomla\Filesystem\Folder::folders: Path is not a folder. Path: [ROOT]/administrator/cache/_media_version

  1. // Check to make sure the path valid and clean
  2. $path = Path::clean($path);
  3. // Is the path a folder?
  4. if (!is_dir($path)) {
  5. throw new \UnexpectedValueException(
  6. sprintf(
  7. '%1$s: Path is not a folder. Path: %2$s',
  8. __METHOD__,
  9. Path::removeRoot($path)
  10. )
Folder::folders('/home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/administrator/cache/_media_version', '.', false, true, array(), array()) in /home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/libraries/regularlabs/src/File.php (line 100)
  1. // JFile::delete throws an error
  2. return \false;
  3. }
  4. }
  5. // Remove sub-folders of folder; disable all filtering
  6. $folders = JFolder::folders($path, '.', \false, \true, [], []);
  7. foreach ($folders as $folder) {
  8. if (is_link($folder)) {
  9. // Don't descend into linked directories, just delete the link.
  10. if (self::delete($folder, $show_messages, $min_age_in_minutes) !== \true) {
  11. return \false;
File::deleteFolder('/home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/administrator/cache/_media_version', false, 0) in /home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/plugins/system/cachecleaner/src/Cache/Cache.php (line 73)
  1. {
  2. self::emptyFolder($f);
  3. continue;
  4. }
  5. RL_File::deleteFolder($path . '/' . $folder, false, $min_age_in_minutes);
  6. // Zoo folder needs to be placed back, otherwise Zoo will break (stupid!)
  7. if ($folder == 'com_zoo')
  8. {
  9. JFolder::create($path . '/' . $folder);
Cache::emptyFolder('/home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/administrator/cache', '0') in /home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/plugins/system/cachecleaner/src/Cache/Joomla.php (line 137)
  1. $cache_path = JFactory::getConfig()->get('cache_path', JPATH_SITE . '/cache');
  2. $min_age = Params::get()->clean_cache_min_age;
  3. self::emptyFolder($cache_path, $min_age);
  4. self::emptyFolder(JPATH_ADMINISTRATOR . '/cache', $min_age);
  5. }
  6. public static function purgeDisabledRedirects()
  7. {
  8. $db = JFactory::getDbo();
  1. }
  2. // Joomla cache
  3. if (self::passType('purge'))
  4. {
  5. Cache\Joomla::purge();
  6. }
  7. // 3rd party cache
  8. self::purgeThirdPartyCaches();
  1. {
  2. return false;
  3. }
  4. // Run the main purge actions
  5. $result = self::purge();
  6. // only handle messages in html
  7. if ( ! RL_Document::isHtml())
  8. {
  9. return false;
  1. public $_enable_in_admin = true;
  2. public $_jversion = 4;
  3. public function handleOnAfterRoute()
  4. {
  5. Cache::clean($this->_id);
  6. }
  7. protected function changeFinalHtmlOutput(&$html)
  8. {
  9. return true;
  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;
SystemPlugin->onAfterRoute(object(SiteApplication)) in /home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/libraries/src/Plugin/CMSPlugin.php (line 311)
  1. }
  2. // Convert to indexed array for unpacking.
  3. $arguments = array_values($arguments);
  4. $result = $this->{$methodName}(...$arguments);
  5. // Ignore null results
  6. if ($result === null) {
  7. return;
  8. }
  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. *
AbstractApplication->dispatchEvent('onAfterRoute', object(AfterRouteEvent)) in /home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/libraries/src/Application/SiteApplication.php (line 811)
  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', null);
  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('/home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/includes/app.php') in /home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/index.php (line 32)
  1. * define() is used rather than "const" to not error for PHP 5.2 and lower
  2. */
  3. define('_JEXEC', 1);
  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 /home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/libraries/src/Application/SiteApplication.php:501
  at Joomla\CMS\Application\SiteApplication->getTemplate(true)
     (/home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/libraries/src/Error/Renderer/HtmlRenderer.php:50)
  at Joomla\CMS\Error\Renderer\HtmlRenderer->render(object(UnexpectedValueException))
     (/home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/libraries/src/Exception/ExceptionHandler.php:136)
  at Joomla\CMS\Exception\ExceptionHandler::render(object(UnexpectedValueException))
     (/home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/libraries/src/Exception/ExceptionHandler.php:73)
  at Joomla\CMS\Exception\ExceptionHandler::handleException(object(UnexpectedValueException))
     (/home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/libraries/src/Application/CMSApplication.php:334)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/includes/app.php:58)
  at require_once('/home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/includes/app.php')
     (/home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/index.php:32)                
[1/2] UnexpectedValueException
UnexpectedValueException:
Joomla\Filesystem\Folder::folders: Path is not a folder. Path: [ROOT]/administrator/cache/_media_version

  at /home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/libraries/vendor/joomla/filesystem/src/Folder.php:398
  at Joomla\Filesystem\Folder::folders('/home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/administrator/cache/_media_version', '.', false, true, array(), array())
     (/home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/libraries/regularlabs/src/File.php:100)
  at RegularLabs\Library\File::deleteFolder('/home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/administrator/cache/_media_version', false, 0)
     (/home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/plugins/system/cachecleaner/src/Cache/Cache.php:73)
  at RegularLabs\Plugin\System\CacheCleaner\Cache\Cache::emptyFolder('/home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/administrator/cache', '0')
     (/home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/plugins/system/cachecleaner/src/Cache/Joomla.php:137)
  at RegularLabs\Plugin\System\CacheCleaner\Cache\Joomla::purge()
     (/home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/plugins/system/cachecleaner/src/Cache.php:152)
  at RegularLabs\Plugin\System\CacheCleaner\Cache::purge()
     (/home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/plugins/system/cachecleaner/src/Cache.php:57)
  at RegularLabs\Plugin\System\CacheCleaner\Cache::clean(10385)
     (/home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/plugins/system/cachecleaner/cachecleaner.php:59)
  at PlgSystemCacheCleaner->handleOnAfterRoute()
     (/home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/libraries/regularlabs/src/SystemPlugin.php:177)
  at RegularLabs\Library\SystemPlugin->onAfterRoute(object(SiteApplication))
     (/home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/libraries/src/Plugin/CMSPlugin.php:311)
  at Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}(object(AfterRouteEvent))
     (/home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/libraries/vendor/joomla/event/src/Dispatcher.php:454)
  at Joomla\Event\Dispatcher->dispatch('onAfterRoute', object(AfterRouteEvent))
     (/home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/libraries/vendor/joomla/application/src/AbstractApplication.php:99)
  at Joomla\Application\AbstractApplication->dispatchEvent('onAfterRoute', object(AfterRouteEvent))
     (/home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/libraries/src/Application/SiteApplication.php:811)
  at Joomla\CMS\Application\SiteApplication->route()
     (/home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/libraries/src/Application/SiteApplication.php:243)
  at Joomla\CMS\Application\SiteApplication->doExecute()
     (/home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/libraries/src/Application/CMSApplication.php:304)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/includes/app.php:58)
  at require_once('/home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/includes/app.php')
     (/home/srv82825/domains/serwis-laptopow-pc.waw.pl/public_html/index.php:32)