' . $this->db->quoteName('e.extension_id') ) ->where( [ $this->db->quoteName('m.published') . ' = 1', $this->db->quoteName('m.parent_id') . ' > 0', $this->db->quoteName('m.client_id') . ' = 0', ] ) ->extendWhere( 'AND', [ $this->db->quoteName('m.publish_up') . ' IS NULL', $this->db->quoteName('m.publish_up') . ' <= :currentDate1', ], 'OR' ) ->bind(':currentDate1', $currentDate) ->extendWhere( 'AND', [ $this->db->quoteName('m.publish_down') . ' IS NULL', $this->db->quoteName('m.publish_down') . ' >= :currentDate2', ], 'OR' ) ->bind(':currentDate2', $currentDate) ->order($this->db->quoteName('m.lft')); $items = []; $iterator = $this->db->setQuery($query)->getIterator(); foreach ($iterator as $item) { $items[$item->id] = new MenuItem((array) $item); } return $items; }; try { /** @var CallbackController $cache */ $cache = $this->getCacheControllerFactory()->createCacheController('callback', ['defaultgroup' => 'com_menus']); $this->items = $cache->get($loader, [], md5(\get_class($this)), false); } catch (CacheExceptionInterface $e) { try { $this->items = $loader(); } catch (ExecutionFailureException $databaseException) { $this->app->enqueueMessage(Text::sprintf('JERROR_LOADING_MENUS', $databaseException->getMessage()), 'warning'); return false; } } catch (ExecutionFailureException $e) { $this->app->enqueueMessage(Text::sprintf('JERROR_LOADING_MENUS', $e->getMessage()), 'warning'); return false; } foreach ($this->items as &$item) { // Get parent information. $parent_tree = []; if (isset($this->items[$item->parent_id])) { $item->setParent($this->items[$item->parent_id]); $parent_tree = $this->items[$item->parent_id]->tree; } // Create tree. $parent_tree[] = $item->id; $item->tree = $parent_tree; // Create the query array. $url = str_replace('index.php?', '', $item->link); $url = str_replace('&', '&', $url); parse_str($url, $item->query); } return true; } /** * Gets menu items by attribute * * @param string $attributes The field name * @param string $values The value of the field * @param boolean $firstonly If true, only returns the first item found * * @return MenuItem|MenuItem[] An array of menu item objects or a single object if the $firstonly parameter is true * * @since 1.6 */ public function getItems($attributes, $values, $firstonly = false) { $attributes = (array) $attributes; $values = (array) $values; if ($this->app->isClient('site')) { // Filter by language if not set if (($key = array_search('language', $attributes)) === false) { if (Multilanguage::isEnabled()) { $attributes[] = 'language'; $values[] = [Factory::getLanguage()->getTag(), '*']; } } elseif ($values[$key] === null) { unset($attributes[$key], $values[$key]); } // Filter by access level if not set if (($key = array_search('access', $attributes)) === false) { $attributes[] = 'access'; $values[] = $this->user->getAuthorisedViewLevels(); } elseif ($values[$key] === null) { unset($attributes[$key], $values[$key]); } } // Reset arrays or we get a notice if some values were unset $attributes = array_values($attributes); $values = array_values($values); return parent::getItems($attributes, $values, $firstonly); } /** * Get menu item by id * * @param string $language The language code. * * @return MenuItem|null The item object or null when not found for given language * * @since 1.6 */ public function getDefault($language = '*') { // Get menu items first to ensure defaults have been populated $items = $this->getMenu(); if (\array_key_exists($language, $this->default) && $this->app->isClient('site') && $this->app->getLanguageFilter()) { return $items[$this->default[$language]]; } if (\array_key_exists('*', $this->default)) { return $items[$this->default['*']]; } } }
Warning: Class "Joomla\CMS\Menu\SiteMenu" not found in /hp/cr/aa/vf/www/libraries/loader.php on line 576
' . $this->db->quoteName('e.extension_id') ) ->where( [ $this->db->quoteName('m.published') . ' = 1', $this->db->quoteName('m.parent_id') . ' > 0', $this->db->quoteName('m.client_id') . ' = 0', ] ) ->extendWhere( 'AND', [ $this->db->quoteName('m.publish_up') . ' IS NULL', $this->db->quoteName('m.publish_up') . ' <= :currentDate1', ], 'OR' ) ->bind(':currentDate1', $currentDate) ->extendWhere( 'AND', [ $this->db->quoteName('m.publish_down') . ' IS NULL', $this->db->quoteName('m.publish_down') . ' >= :currentDate2', ], 'OR' ) ->bind(':currentDate2', $currentDate) ->order($this->db->quoteName('m.lft')); $items = []; $iterator = $this->db->setQuery($query)->getIterator(); foreach ($iterator as $item) { $items[$item->id] = new MenuItem((array) $item); } return $items; }; try { /** @var CallbackController $cache */ $cache = $this->getCacheControllerFactory()->createCacheController('callback', ['defaultgroup' => 'com_menus']); $this->items = $cache->get($loader, [], md5(\get_class($this)), false); } catch (CacheExceptionInterface $e) { try { $this->items = $loader(); } catch (ExecutionFailureException $databaseException) { $this->app->enqueueMessage(Text::sprintf('JERROR_LOADING_MENUS', $databaseException->getMessage()), 'warning'); return false; } } catch (ExecutionFailureException $e) { $this->app->enqueueMessage(Text::sprintf('JERROR_LOADING_MENUS', $e->getMessage()), 'warning'); return false; } foreach ($this->items as &$item) { // Get parent information. $parent_tree = []; if (isset($this->items[$item->parent_id])) { $item->setParent($this->items[$item->parent_id]); $parent_tree = $this->items[$item->parent_id]->tree; } // Create tree. $parent_tree[] = $item->id; $item->tree = $parent_tree; // Create the query array. $url = str_replace('index.php?', '', $item->link); $url = str_replace('&', '&', $url); parse_str($url, $item->query); } return true; } /** * Gets menu items by attribute * * @param string $attributes The field name * @param string $values The value of the field * @param boolean $firstonly If true, only returns the first item found * * @return MenuItem|MenuItem[] An array of menu item objects or a single object if the $firstonly parameter is true * * @since 1.6 */ public function getItems($attributes, $values, $firstonly = false) { $attributes = (array) $attributes; $values = (array) $values; if ($this->app->isClient('site')) { // Filter by language if not set if (($key = array_search('language', $attributes)) === false) { if (Multilanguage::isEnabled()) { $attributes[] = 'language'; $values[] = [Factory::getLanguage()->getTag(), '*']; } } elseif ($values[$key] === null) { unset($attributes[$key], $values[$key]); } // Filter by access level if not set if (($key = array_search('access', $attributes)) === false) { $attributes[] = 'access'; $values[] = $this->user->getAuthorisedViewLevels(); } elseif ($values[$key] === null) { unset($attributes[$key], $values[$key]); } } // Reset arrays or we get a notice if some values were unset $attributes = array_values($attributes); $values = array_values($values); return parent::getItems($attributes, $values, $firstonly); } /** * Get menu item by id * * @param string $language The language code. * * @return MenuItem|null The item object or null when not found for given language * * @since 1.6 */ public function getDefault($language = '*') { // Get menu items first to ensure defaults have been populated $items = $this->getMenu(); if (\array_key_exists($language, $this->default) && $this->app->isClient('site') && $this->app->getLanguageFilter()) { return $items[$this->default[$language]]; } if (\array_key_exists('*', $this->default)) { return $items[$this->default['*']]; } } }
Warning: Class "Joomla\CMS\Menu\SiteMenu" not found in /hp/cr/aa/vf/www/libraries/loader.php on line 576
Fehler beim Laden des Menüs: site (500 Whoops, looks like something went wrong.)

InvalidArgumentException InvalidArgumentException

HTTP 500 Whoops, looks like something went wrong.

Fehler beim Laden des Menüs: site

Exceptions 2

InvalidArgumentException

  1.     {
  2.         // Create a Menu object
  3.         $classname __NAMESPACE__ '\\' ucfirst(strtolower($client)) . 'Menu';
  4.         if (!class_exists($classname)) {
  5.             throw new \InvalidArgumentException(Text::sprintf('JLIB_APPLICATION_ERROR_MENU_LOAD'$client), 500);
  6.         }
  7.         if (!array_key_exists('db'$options)) {
  8.             $options['db'] = $this->getDatabase();
  9.         }
MenuFactory->createMenu('site', array('app' => object(SiteApplication))) in /hp/cr/aa/vf/www/libraries/src/Application/CMSApplication.php (line 523)
  1.         if ($this->menuFactory === null) {
  2.             @trigger_error('Menu factory must be set in 5.0'E_USER_DEPRECATED);
  3.             $this->menuFactory $this->getContainer()->get(MenuFactoryInterface::class);
  4.         }
  5.         $this->menus[$name] = $this->menuFactory->createMenu($name$options);
  6.         // Make sure the abstract menu has the instance too, is needed for BC and will be removed with version 5
  7.         AbstractMenu::$instances[$name] = $this->menus[$name];
  8.         return $this->menus[$name];
  1.             return $this->template->template;
  2.         }
  3.         // Get the id of the active menu item
  4.         $menu $this->getMenu();
  5.         $item $menu->getActive();
  6.         if (!$item) {
  7.             $item $menu->getItem($this->input->getInt('Itemid'null));
  8.         }
SiteApplication->getTemplate(true) in /hp/cr/aa/vf/www/libraries/src/Error/Renderer/HtmlRenderer.php (line 50)
  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
HtmlRenderer->render(object(InvalidArgumentException)) in /hp/cr/aa/vf/www/libraries/src/Exception/ExceptionHandler.php (line 126)
  1.             // Reset the document object in the factory, this gives us a clean slate and lets everything render properly
  2.             Factory::$document $renderer->getDocument();
  3.             Factory::getApplication()->loadDocument(Factory::$document);
  4.             $data $renderer->render($error);
  5.             // If nothing was rendered, just use the message from the Exception
  6.             if (empty($data)) {
  7.                 $data $error->getMessage();
  8.             }
ExceptionHandler::render(object(InvalidArgumentException)) in /hp/cr/aa/vf/www/libraries/src/Exception/ExceptionHandler.php (line 72)
  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(InvalidArgumentException)) in /hp/cr/aa/vf/www/libraries/src/Application/CMSApplication.php (line 322)
  1.             );
  2.             // Trigger the onError event.
  3.             $this->triggerEvent('onError'$event);
  4.             ExceptionHandler::handleException($event->getError());
  5.         }
  6.         // Trigger the onBeforeRespond event.
  7.         $this->getDispatcher()->dispatch('onBeforeRespond');
CMSApplication->execute() in /hp/cr/aa/vf/www/includes/app.php (line 61)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/hp/cr/aa/vf/www/includes/app.php') in /hp/cr/aa/vf/www/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';

InvalidArgumentException

Fehler beim Laden des Menüs: site

  1.     {
  2.         // Create a Menu object
  3.         $classname __NAMESPACE__ '\\' ucfirst(strtolower($client)) . 'Menu';
  4.         if (!class_exists($classname)) {
  5.             throw new \InvalidArgumentException(Text::sprintf('JLIB_APPLICATION_ERROR_MENU_LOAD'$client), 500);
  6.         }
  7.         if (!array_key_exists('db'$options)) {
  8.             $options['db'] = $this->getDatabase();
  9.         }
MenuFactory->createMenu('site', array('app' => object(SiteApplication))) in /hp/cr/aa/vf/www/libraries/src/Application/CMSApplication.php (line 523)
  1.         if ($this->menuFactory === null) {
  2.             @trigger_error('Menu factory must be set in 5.0'E_USER_DEPRECATED);
  3.             $this->menuFactory $this->getContainer()->get(MenuFactoryInterface::class);
  4.         }
  5.         $this->menus[$name] = $this->menuFactory->createMenu($name$options);
  6.         // Make sure the abstract menu has the instance too, is needed for BC and will be removed with version 5
  7.         AbstractMenu::$instances[$name] = $this->menus[$name];
  8.         return $this->menus[$name];
CMSApplication->getMenu() in /hp/cr/aa/vf/www/libraries/src/Router/SiteRouter.php (line 68)
  1.      * @since   3.4
  2.      */
  3.     public function __construct(CMSApplication $app nullAbstractMenu $menu null)
  4.     {
  5.         $this->app  $app ?: Factory::getContainer()->get(SiteApplication::class);
  6.         $this->menu $menu ?: $this->app->getMenu();
  7.         // Add core rules
  8.         if ((int) $this->app->get('force_ssl') === 2) {
  9.             $this->attachParseRule([$this'parseCheckSSL'], self::PROCESS_BEFORE);
  10.         }
SiteRouter->__construct(object(SiteApplication)) in /hp/cr/aa/vf/www/libraries/src/Service/Provider/Router.php (line 47)
  1.         $container->alias('SiteRouter'SiteRouter::class)
  2.             ->alias('JRouterSite'SiteRouter::class)
  3.             ->share(
  4.                 SiteRouter::class,
  5.                 function (Container $container) {
  6.                     return new SiteRouter($container->get(SiteApplication::class));
  7.                 },
  8.                 true
  9.             );
  10.         $container->alias('AdministratorRouter'AdministratorRouter::class)
in /hp/cr/aa/vf/www/libraries/vendor/joomla/di/src/ContainerResource.php -> Joomla\CMS\Service\Provider\{closure} (line 176)
  1.         if ($this->isShared())
  2.         {
  3.             if ($this->instance === null)
  4.             {
  5.                 $this->instance $callable($this->container);
  6.             }
  7.             return $this->instance;
  8.         }
  1.             }
  2.             throw new KeyNotFoundException(sprintf("Resource '%s' has not been registered with the container."$resourceName));
  3.         }
  4.         return $this->resources[$key]->getInstance();
  5.     }
  6.     /**
  7.      * Check if specified resource exists.
  8.      *
Container->get('Joomla\\CMS\\Router\\SiteRouter') in /hp/cr/aa/vf/www/libraries/src/Application/SiteApplication.php (line 746)
  1.         // Get the full request URI.
  2.         $uri = clone Uri::getInstance();
  3.         // It is not possible to inject the SiteRouter as it requires a SiteApplication
  4.         // and we would end in an infinite loop
  5.         $result $this->getContainer()->get(SiteRouter::class)->parse($uritrue);
  6.         $active $this->getMenu()->getActive();
  7.         if (
  8.             $active !== 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()) {
SiteApplication->doExecute() in /hp/cr/aa/vf/www/libraries/src/Application/CMSApplication.php (line 293)
  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 /hp/cr/aa/vf/www/includes/app.php (line 61)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/hp/cr/aa/vf/www/includes/app.php') in /hp/cr/aa/vf/www/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] InvalidArgumentException
InvalidArgumentException:
Fehler beim Laden des Menüs: site

  at /hp/cr/aa/vf/www/libraries/src/Menu/MenuFactory.php:48
  at Joomla\CMS\Menu\MenuFactory->createMenu('site', array('app' => object(SiteApplication)))
     (/hp/cr/aa/vf/www/libraries/src/Application/CMSApplication.php:523)
  at Joomla\CMS\Application\CMSApplication->getMenu()
     (/hp/cr/aa/vf/www/libraries/src/Application/SiteApplication.php:418)
  at Joomla\CMS\Application\SiteApplication->getTemplate(true)
     (/hp/cr/aa/vf/www/libraries/src/Error/Renderer/HtmlRenderer.php:50)
  at Joomla\CMS\Error\Renderer\HtmlRenderer->render(object(InvalidArgumentException))
     (/hp/cr/aa/vf/www/libraries/src/Exception/ExceptionHandler.php:126)
  at Joomla\CMS\Exception\ExceptionHandler::render(object(InvalidArgumentException))
     (/hp/cr/aa/vf/www/libraries/src/Exception/ExceptionHandler.php:72)
  at Joomla\CMS\Exception\ExceptionHandler::handleException(object(InvalidArgumentException))
     (/hp/cr/aa/vf/www/libraries/src/Application/CMSApplication.php:322)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/hp/cr/aa/vf/www/includes/app.php:61)
  at require_once('/hp/cr/aa/vf/www/includes/app.php')
     (/hp/cr/aa/vf/www/index.php:32)                
[1/2] InvalidArgumentException
InvalidArgumentException:
Fehler beim Laden des Menüs: site

  at /hp/cr/aa/vf/www/libraries/src/Menu/MenuFactory.php:48
  at Joomla\CMS\Menu\MenuFactory->createMenu('site', array('app' => object(SiteApplication)))
     (/hp/cr/aa/vf/www/libraries/src/Application/CMSApplication.php:523)
  at Joomla\CMS\Application\CMSApplication->getMenu()
     (/hp/cr/aa/vf/www/libraries/src/Router/SiteRouter.php:68)
  at Joomla\CMS\Router\SiteRouter->__construct(object(SiteApplication))
     (/hp/cr/aa/vf/www/libraries/src/Service/Provider/Router.php:47)
  at Joomla\CMS\Service\Provider\Router->Joomla\CMS\Service\Provider\{closure}(object(Container))
     (/hp/cr/aa/vf/www/libraries/vendor/joomla/di/src/ContainerResource.php:176)
  at Joomla\DI\ContainerResource->getInstance()
     (/hp/cr/aa/vf/www/libraries/vendor/joomla/di/src/Container.php:96)
  at Joomla\DI\Container->get('Joomla\\CMS\\Router\\SiteRouter')
     (/hp/cr/aa/vf/www/libraries/src/Application/SiteApplication.php:746)
  at Joomla\CMS\Application\SiteApplication->route()
     (/hp/cr/aa/vf/www/libraries/src/Application/SiteApplication.php:232)
  at Joomla\CMS\Application\SiteApplication->doExecute()
     (/hp/cr/aa/vf/www/libraries/src/Application/CMSApplication.php:293)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/hp/cr/aa/vf/www/includes/app.php:61)
  at require_once('/hp/cr/aa/vf/www/includes/app.php')
     (/hp/cr/aa/vf/www/index.php:32)