ValueError Error

HTTP 500 Whoops, looks like something went wrong.

Call to a member function getParams() on null

Exceptions 2

Error

  1.         // We are work only in HTML, not JSON, RSS etc.
  2.         if (!($doc instanceof \Joomla\CMS\Document\HtmlDocument))
  3.         {
  4.             return;
  5.         }
  6.         $wt_custom_menu_item_banner $app->getMenu()->getActive()->getParams()->get('wt_custom_menu_item_banner');
  7.         if (!$wt_custom_menu_item_banner)
  8.         {
  9.             return;
  10.         }
  11.         /**
  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.         }
  2.         // Trigger the onBeforeCompileHead event
  3.         $app->getDispatcher()->dispatch(
  4.             'onBeforeCompileHead',
  5.             new BeforeCompileHeadEvent('onBeforeCompileHead', ['subject' => $app'document' => $this->_doc])
  6.         );
  7.         // Add Script Options as inline asset
  8.         $scriptOptions $this->_doc->getScriptOptions();
  1.             $cbuffer[$hash] = $tmpdata;
  2.             $cache->store($cbuffer'cbuffer_' $type);
  3.         } else {
  4.             $this->setBuffer($renderer->render($name$attribsnull), $type$name$title);
  5.         }
  6.         return parent::$_buffer[$type][$name][$title];
  7.     }
  1.         $replace = [];
  2.         $with    = [];
  3.         foreach ($this->_template_tags as $jdoc => $args) {
  4.             $replace[] = $jdoc;
  5.             $with[]    = $this->getBuffer($args['type'], $args['name'], $args['attribs']);
  6.         }
  7.         return str_replace($replace$with$this->_template);
  8.     }
  9. }
  1.         if (\array_key_exists('csp_nonce'$params) && $params['csp_nonce'] !== null) {
  2.             $this->cspNonce $params['csp_nonce'];
  3.         }
  4.         $data $this->_renderTemplate();
  5.         parent::render($caching$params);
  6.         return $data;
  7.     }
  1.         $this->debug $params['debug'] ?? false;
  2.         $this->error $this->_error;
  3.         $params['file'] = 'error.php';
  4.         
  5.         return parent::render($cache$params);
  6.     }
  7.     /**
  8.      * Render the backtrace
  9.      *
  1.                 'template'         => $template->template,
  2.                 'directory'        => JPATH_THEMES,
  3.                 'debug'            => JDEBUG,
  4.                 'csp_nonce'        => $app->get('csp_nonce'),
  5.                 'templateInherits' => $template->parent,
  6.                 'params'           => $template->params,
  7.             ]
  8.         );
  9.     }
  10. }
  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',
CMSApplication->execute() in /var/www/siteuser/www/sinay-s.ru/includes/app.php (line 58)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/var/www/siteuser/www/sinay-s.ru/includes/app.php') in /var/www/siteuser/www/sinay-s.ru/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 dirname(__FILE__) . '/includes/app.php';

ValueError

Path cannot be empty

  1.         $returning             = new \stdClass();
  2.         $returning->locklooped false;
  3.         $looptime  $locktime 10;
  4.         $path      $this->_getFilePath($id$group);
  5.         $_fileopen = @fopen($path'c+b');
  6.         if (!$_fileopen) {
  7.             $returning->locked false;
  8.             return $returning;
  1.         $returning             = new \stdClass();
  2.         $returning->locklooped false;
  3.         $looptime  $locktime 10;
  4.         $path      $this->_getFilePath($id$group);
  5.         $_fileopen = @fopen($path'c+b');
  6.         if (!$_fileopen) {
  7.             $returning->locked false;
  8.             return $returning;
  1.          * NOTE drivers with lock need also unlock or unlocking will fail because of false $id
  2.          */
  3.         $handler $this->_getStorage();
  4.         if ($this->_options['locking'] == true) {
  5.             $locked $handler->lock($id$group$locktime);
  6.             if ($locked !== false) {
  7.                 return $locked;
  8.             }
  9.         }
  1.         $data $this->cache->get($id);
  2.         $locktest = (object) ['locked' => null'locklooped' => null];
  3.         if ($data === false) {
  4.             $locktest $this->cache->lock($id);
  5.             // If locklooped is true try to get the cached data again; it could exist now.
  6.             if ($locktest->locked === true && $locktest->locklooped === true) {
  7.                 $data $this->cache->get($id);
  8.             }
CallbackController->get() in /var/www/siteuser/www/sinay-s.ru/libraries/src/Version.php (line 260)
  1.     public function getMediaVersion(): string
  2.     {
  3.         // Load the media version and cache it for future use
  4.         if (self::$mediaVersion === null) {
  5.             self::$mediaVersion $this->getMediaVersionCache()
  6.                 ->get([$this'generateMediaVersion'], [], md5('_media_version' $this->getLongVersion()));
  7.         }
  8.         return self::$mediaVersion;
  9.     }
Version->getMediaVersion() in /var/www/siteuser/www/sinay-s.ru/libraries/src/Factory.php (line 786)
  1.             'charset'      => 'utf-8',
  2.             'lineend'      => 'unix',
  3.             'tab'          => "\t",
  4.             'language'     => $lang->getTag(),
  5.             'direction'    => $lang->isRtl() ? 'rtl' 'ltr',
  6.             'mediaversion' => $version->getMediaVersion(),
  7.         ];
  8.         return self::getContainer()->get(FactoryInterface::class)->createDocument($type$attributes);
  9.     }
Factory::createDocument() in /var/www/siteuser/www/sinay-s.ru/libraries/src/Factory.php (line 338)
  1.             ),
  2.             E_USER_DEPRECATED
  3.         );
  4.         if (!self::$document) {
  5.             self::$document self::createDocument();
  6.         }
  7.         return self::$document;
  8.     }
  1.     {
  2.         // Only trigger in frontend
  3.         if (Factory::getApplication()->isClient('site'))
  4.         {
  5.             /** @var Joomla\CMS\WebAsset\WebAssetManager $wa*/
  6.             $wa Factory::getDocument()->getWebAssetManager();
  7.             $wa->getRegistry()->addRegistryFile('media/plg_system_wtlightbox2js/joomla.asset.json');
  8.             return true;
  9.         }
  10.     }
  11. }
  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.         // Trigger the onAfterInitialise event.
  2.         PluginHelper::importPlugin('system'nulltrue$this->getDispatcher());
  3.         $this->dispatchEvent(
  4.             'onAfterInitialise',
  5.             new AfterInitialiseEvent('onAfterInitialise', ['subject' => $this])
  6.         );
  7.     }
  8.     /**
  9.      * Checks if HTTPS is forced in the client configuration.
  1.                 $options['language'] = 'en-GB';
  2.             }
  3.         }
  4.         // Finish initialisation
  5.         parent::initialiseApp($options);
  6.     }
  7.     /**
  8.      * Load the library language files for the application
  9.      *
  1.      * @since   3.2
  2.      */
  3.     protected function doExecute()
  4.     {
  5.         // Initialise the application
  6.         $this->initialiseApp();
  7.         // Mark afterInitialise in the profiler.
  8.         JDEBUG $this->profiler->mark('afterInitialise') : null;
  9.         // Route the application
  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();
CMSApplication->execute() in /var/www/siteuser/www/sinay-s.ru/includes/app.php (line 58)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/var/www/siteuser/www/sinay-s.ru/includes/app.php') in /var/www/siteuser/www/sinay-s.ru/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 dirname(__FILE__) . '/includes/app.php';

Stack Traces 2

[2/2] Error
Error:
Call to a member function getParams() on null

  at /var/www/siteuser/www/sinay-s.ru/plugins/system/wt_custom_menu_item_banner/src/Extension/Wt_custom_menu_item_banner.php:89
  at Joomla\Plugin\System\Wt_custom_menu_item_banner\Extension\Wt_custom_menu_item_banner->onBeforeCompileHead()
     (/var/www/siteuser/www/sinay-s.ru/libraries/vendor/joomla/event/src/Dispatcher.php:454)
  at Joomla\Event\Dispatcher->dispatch()
     (/var/www/siteuser/www/sinay-s.ru/libraries/src/Document/Renderer/Html/MetasRenderer.php:64)
  at Joomla\CMS\Document\Renderer\Html\MetasRenderer->render()
     (/var/www/siteuser/www/sinay-s.ru/libraries/src/Document/HtmlDocument.php:575)
  at Joomla\CMS\Document\HtmlDocument->getBuffer()
     (/var/www/siteuser/www/sinay-s.ru/libraries/src/Document/HtmlDocument.php:894)
  at Joomla\CMS\Document\HtmlDocument->_renderTemplate()
     (/var/www/siteuser/www/sinay-s.ru/libraries/src/Document/HtmlDocument.php:647)
  at Joomla\CMS\Document\HtmlDocument->render()
     (/var/www/siteuser/www/sinay-s.ru/libraries/src/Document/ErrorDocument.php:143)
  at Joomla\CMS\Document\ErrorDocument->render()
     (/var/www/siteuser/www/sinay-s.ru/libraries/src/Error/Renderer/HtmlRenderer.php:78)
  at Joomla\CMS\Error\Renderer\HtmlRenderer->render()
     (/var/www/siteuser/www/sinay-s.ru/libraries/src/Exception/ExceptionHandler.php:136)
  at Joomla\CMS\Exception\ExceptionHandler::render()
     (/var/www/siteuser/www/sinay-s.ru/libraries/src/Exception/ExceptionHandler.php:73)
  at Joomla\CMS\Exception\ExceptionHandler::handleException()
     (/var/www/siteuser/www/sinay-s.ru/libraries/src/Application/CMSApplication.php:336)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/var/www/siteuser/www/sinay-s.ru/includes/app.php:58)
  at require_once('/var/www/siteuser/www/sinay-s.ru/includes/app.php')
     (/var/www/siteuser/www/sinay-s.ru/index.php:32)                
[1/2] ValueError
ValueError:
Path cannot be empty

  at /var/www/siteuser/www/sinay-s.ru/libraries/src/Cache/Storage/FileStorage.php:327
  at fopen()
     (/var/www/siteuser/www/sinay-s.ru/libraries/src/Cache/Storage/FileStorage.php:327)
  at Joomla\CMS\Cache\Storage\FileStorage->lock()
     (/var/www/siteuser/www/sinay-s.ru/libraries/src/Cache/Cache.php:384)
  at Joomla\CMS\Cache\Cache->lock()
     (/var/www/siteuser/www/sinay-s.ru/libraries/src/Cache/Controller/CallbackController.php:64)
  at Joomla\CMS\Cache\Controller\CallbackController->get()
     (/var/www/siteuser/www/sinay-s.ru/libraries/src/Version.php:260)
  at Joomla\CMS\Version->getMediaVersion()
     (/var/www/siteuser/www/sinay-s.ru/libraries/src/Factory.php:786)
  at Joomla\CMS\Factory::createDocument()
     (/var/www/siteuser/www/sinay-s.ru/libraries/src/Factory.php:338)
  at Joomla\CMS\Factory::getDocument()
     (/var/www/siteuser/www/sinay-s.ru/plugins/system/wtlightbox2js/src/Extension/Wtlightbox2js.php:65)
  at Joomla\Plugin\System\Wtlightbox2js\Extension\Wtlightbox2js->addFabricjsPreset()
     (/var/www/siteuser/www/sinay-s.ru/libraries/vendor/joomla/event/src/Dispatcher.php:454)
  at Joomla\Event\Dispatcher->dispatch()
     (/var/www/siteuser/www/sinay-s.ru/libraries/vendor/joomla/application/src/AbstractApplication.php:99)
  at Joomla\Application\AbstractApplication->dispatchEvent()
     (/var/www/siteuser/www/sinay-s.ru/libraries/src/Application/CMSApplication.php:768)
  at Joomla\CMS\Application\CMSApplication->initialiseApp()
     (/var/www/siteuser/www/sinay-s.ru/libraries/src/Application/SiteApplication.php:643)
  at Joomla\CMS\Application\SiteApplication->initialiseApp()
     (/var/www/siteuser/www/sinay-s.ru/libraries/src/Application/SiteApplication.php:238)
  at Joomla\CMS\Application\SiteApplication->doExecute()
     (/var/www/siteuser/www/sinay-s.ru/libraries/src/Application/CMSApplication.php:306)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/var/www/siteuser/www/sinay-s.ru/includes/app.php:58)
  at require_once('/var/www/siteuser/www/sinay-s.ru/includes/app.php')
     (/var/www/siteuser/www/sinay-s.ru/index.php:32)