Warning: Attempt to read property "query" on null in /www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/libraries/src/Router/SiteRouter.php on line 313

Warning: Trying to access array offset on null in /www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/libraries/src/Router/SiteRouter.php on line 313

Warning: Attempt to read property "query" on null in /www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/libraries/src/Router/SiteRouter.php on line 313

Warning: Trying to access array offset on null in /www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/libraries/src/Router/SiteRouter.php on line 313
Joomla\Module\Menu\Site\Helper\MenuHelper::getDefaultItem(): Return value must be of type object, null returned (500 Whoops, looks like something went wrong.)

MissingComponentException TypeError

HTTP 500 Whoops, looks like something went wrong.

Joomla\Module\Menu\Site\Helper\MenuHelper::getDefaultItem(): Return value must be of type object, null returned

Exceptions 2

TypeError

  1. // Look for the home menu
  2. if (Multilanguage::isEnabled()) {
  3. return $menu->getDefault($app->getLanguage()->getTag());
  4. }
  5. return $menu->getDefault();
  6. }
  7. /**
  8. * Get a list of the menu items.
  1. */
  2. public function getActiveItem(CMSApplicationInterface $app): object
  3. {
  4. $menu = $app->getMenu();
  5. return $menu->getActive() ?: $this->getDefaultItem($app);
  6. }
  7. /**
  8. * Get default menu item (home page) for current language.
  9. *
  1. $base = false;
  2. }
  3. // Use active menu item if no base found
  4. if (!$base) {
  5. $base = $this->getActiveItem($app);
  6. }
  7. return $base;
  8. }
MenuHelper->getBaseItem(object(Registry), object(SiteApplication)) in /www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/modules/mod_menu/src/Helper/MenuHelper.php (line 47)
  1. public function getItems(Registry &$params, CMSApplicationInterface $app): array
  2. {
  3. $menu = $app->getMenu();
  4. // Get active menu item
  5. $base = $this->getBaseItem($params, $app);
  6. $levels = $app->getIdentity()->getAuthorisedViewLevels();
  7. asort($levels);
  8. // Compose cache key
  9. $cacheKey = 'menu_items' . $params . implode(',', $levels) . '.' . $base->id;
MenuHelper->getItems(object(Registry), object(SiteApplication)) in /www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/modules/mod_menu/src/Dispatcher/Dispatcher.php (line 61)
  1. {
  2. $data = parent::getLayoutData();
  3. $menuHelper = $this->getHelperFactory()->getHelper('MenuHelper');
  4. $data['list'] = $menuHelper->getItems($data['params'], $data['app']);
  5. $data['base'] = $menuHelper->getBaseItem($data['params'], $data['app']);
  6. $data['active'] = $menuHelper->getActiveItem($data['app']);
  7. $data['default'] = $menuHelper->getDefaultItem($data['app']);
  8. $data['active_id'] = $data['active']->id;
  9. $data['default_id'] = $data['default']->id;
  1. *
  2. * @since 5.4.0
  3. */
  4. public function dispatch()
  5. {
  6. $displayData = $this->getLayoutData();
  7. if (!$displayData['list']) {
  8. return;
  9. }
  1. $dispatcher = $app->bootModule($module->module, $app->getName())->getDispatcher($module, $app);
  2. // Check if we have a dispatcher
  3. if ($dispatcher) {
  4. ob_start();
  5. $dispatcher->dispatch();
  6. $module->content = ob_get_clean();
  7. }
  8. // Add the flag that the module content has been rendered
  9. $module->contentRendered = true;
ModuleHelper::renderRawModule(object(stdClass), object(Registry), array('name' => 'menu', 'style' => 'none')) in /www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/libraries/src/Helper/ModuleHelper.php (line 160)
  1. // Get module parameters
  2. $params = new Registry($module->params);
  3. // Render the module content
  4. static::renderRawModule($module, $params, $attribs);
  5. // Return early if only the content is required
  6. if (!empty($attribs['contentOnly'])) {
  7. return $module->content;
  8. }
ModuleHelper::renderModule(object(stdClass), array('name' => 'menu', 'style' => 'none')) in /www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/libraries/src/Document/Renderer/Html/ModuleRenderer.php (line 99)
  1. $module->contentRendered = true;
  2. return $module->content;
  3. }
  4. return ModuleHelper::renderModule($module, $attribs);
  5. }
  6. }
ModuleRenderer->render(object(stdClass), array('name' => 'menu', 'style' => 'none'), null) in /www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/libraries/src/Document/Renderer/Html/ModulesRenderer.php (line 51)
  1. $user = Factory::getUser();
  2. $frontediting = ($app->isClient('site') && $app->get('frontediting', 1) && !$user->guest);
  3. $menusEditing = ($app->get('frontediting', 1) == 2) && $user->authorise('core.edit', 'com_menus');
  4. foreach (ModuleHelper::getModules($position) as $mod) {
  5. $moduleHtml = $renderer->render($mod, $params, $content);
  6. if ($frontediting && trim($moduleHtml) != '' && $user->authorise('module.edit.frontend', 'com_modules.module.' . $mod->id)) {
  7. $displayData = ['moduleHtml' => &$moduleHtml, 'module' => $mod, 'position' => $position, 'menusediting' => $menusEditing];
  8. LayoutHelper::render('joomla.edit.frontediting_modules', $displayData);
  9. }
ModulesRenderer->render('menu', array('name' => 'menu', 'style' => 'none'), null) in /www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/libraries/src/Document/HtmlDocument.php (line 578)
  1. $cbuffer[$hash] = $tmpdata;
  2. $cache->store($cbuffer, 'cbuffer_' . $type);
  3. } else {
  4. $this->setBuffer($renderer->render($name, $attribs, null), $type, $name, $title);
  5. }
  6. return parent::$_buffer[$type][$name][$title];
  7. }
HtmlDocument->getBuffer('modules', 'menu', array('name' => 'menu', 'style' => 'none')) in /www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/libraries/src/Document/HtmlDocument.php (line 897)
  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. }
HtmlDocument->render(false, array('template' => 'cassiopeia', 'directory' => '/www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) in /www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/libraries/src/Document/ErrorDocument.php (line 139)
  1. $this->debug = $params['debug'] ?? false;
  2. $this->error = $this->_error;
  3. $params['file'] = 'error.php';
  4. return parent::render($cache, $params);
  5. }
  6. /**
  7. * Render the backtrace
  8. *
ErrorDocument->render(false, array('template' => 'cassiopeia', 'directory' => '/www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) in /www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/libraries/src/Error/Renderer/HtmlRenderer.php (line 70)
  1. ob_end_clean();
  2. }
  3. $this->getDocument()->setTitle(Text::_('Error') . ': ' . $error->getCode());
  4. return $this->getDocument()->render(
  5. false,
  6. [
  7. 'template' => $template->template,
  8. 'directory' => JPATH_THEMES,
  9. 'debug' => JDEBUG,
HtmlRenderer->render(object(MissingComponentException)) in /www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/libraries/src/Exception/ExceptionHandler.php (line 142)
  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(MissingComponentException)) in /www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/libraries/src/Exception/ExceptionHandler.php (line 76)
  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(MissingComponentException)) in /www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/libraries/src/Application/CMSApplication.php (line 350)
  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('/www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/includes/app.php') in /www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/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';

Joomla\CMS\Component\Exception\ MissingComponentException

Komponente nicht gefunden

  1. $lang->load('tpl_' . $template, JPATH_BASE)
  2. || $lang->load('tpl_' . $template, JPATH_THEMES . "/$template");
  3. }
  4. if (empty($option)) {
  5. throw new MissingComponentException(Text::_('JLIB_APPLICATION_ERROR_COMPONENT_NOT_FOUND'), 404);
  6. }
  7. if (JDEBUG) {
  8. Profiler::getInstance('Application')->mark('beforeRenderComponent ' . $option);
  9. }
  1. $this->dispatchEvent(
  2. 'onAfterInitialiseDocument',
  3. new AfterInitialiseDocumentEvent('onAfterInitialiseDocument', ['subject' => $this, 'document' => $document])
  4. );
  5. $contents = ComponentHelper::renderComponent($component);
  6. $document->setBuffer($contents, ['type' => 'component']);
  7. // Trigger the onAfterDispatch event.
  8. $this->dispatchEvent(
  9. 'onAfterDispatch',
  1. ['option' => 'com_users', 'task' => 'method.save'],
  2. ]);
  3. }
  4. // Dispatch the application
  5. $this->dispatch();
  6. // Mark afterDispatch in the profiler.
  7. JDEBUG ? $this->profiler->mark('afterDispatch') : null;
  8. }
  1. // Mark beforeExecute in the profiler.
  2. JDEBUG ? $this->profiler->mark('beforeExecute event dispatched') : null;
  3. // Perform application routines.
  4. $this->doExecute();
  5. // If we have an application document object, render it.
  6. if ($this->document instanceof \Joomla\CMS\Document\Document) {
  7. // Render the application output.
  8. $this->render();
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application = $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/includes/app.php') in /www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/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] TypeError
TypeError:
Joomla\Module\Menu\Site\Helper\MenuHelper::getDefaultItem(): Return value must be of type object, null returned

  at /www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/modules/mod_menu/src/Helper/MenuHelper.php:246
  at Joomla\Module\Menu\Site\Helper\MenuHelper->getDefaultItem(object(SiteApplication))
     (/www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/modules/mod_menu/src/Helper/MenuHelper.php:225)
  at Joomla\Module\Menu\Site\Helper\MenuHelper->getActiveItem(object(SiteApplication))
     (/www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/modules/mod_menu/src/Helper/MenuHelper.php:206)
  at Joomla\Module\Menu\Site\Helper\MenuHelper->getBaseItem(object(Registry), object(SiteApplication))
     (/www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/modules/mod_menu/src/Helper/MenuHelper.php:47)
  at Joomla\Module\Menu\Site\Helper\MenuHelper->getItems(object(Registry), object(SiteApplication))
     (/www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/modules/mod_menu/src/Dispatcher/Dispatcher.php:61)
  at Joomla\Module\Menu\Site\Dispatcher\Dispatcher->getLayoutData()
     (/www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/modules/mod_menu/src/Dispatcher/Dispatcher.php:39)
  at Joomla\Module\Menu\Site\Dispatcher\Dispatcher->dispatch()
     (/www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/libraries/src/Helper/ModuleHelper.php:289)
  at Joomla\CMS\Helper\ModuleHelper::renderRawModule(object(stdClass), object(Registry), array('name' => 'menu', 'style' => 'none'))
     (/www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/libraries/src/Helper/ModuleHelper.php:160)
  at Joomla\CMS\Helper\ModuleHelper::renderModule(object(stdClass), array('name' => 'menu', 'style' => 'none'))
     (/www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/libraries/src/Document/Renderer/Html/ModuleRenderer.php:99)
  at Joomla\CMS\Document\Renderer\Html\ModuleRenderer->render(object(stdClass), array('name' => 'menu', 'style' => 'none'), null)
     (/www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/libraries/src/Document/Renderer/Html/ModulesRenderer.php:51)
  at Joomla\CMS\Document\Renderer\Html\ModulesRenderer->render('menu', array('name' => 'menu', 'style' => 'none'), null)
     (/www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/libraries/src/Document/HtmlDocument.php:578)
  at Joomla\CMS\Document\HtmlDocument->getBuffer('modules', 'menu', array('name' => 'menu', 'style' => 'none'))
     (/www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/libraries/src/Document/HtmlDocument.php:897)
  at Joomla\CMS\Document\HtmlDocument->_renderTemplate()
     (/www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/libraries/src/Document/HtmlDocument.php:650)
  at Joomla\CMS\Document\HtmlDocument->render(false, array('template' => 'cassiopeia', 'directory' => '/www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php'))
     (/www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/libraries/src/Document/ErrorDocument.php:139)
  at Joomla\CMS\Document\ErrorDocument->render(false, array('template' => 'cassiopeia', 'directory' => '/www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php'))
     (/www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/libraries/src/Error/Renderer/HtmlRenderer.php:70)
  at Joomla\CMS\Error\Renderer\HtmlRenderer->render(object(MissingComponentException))
     (/www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/libraries/src/Exception/ExceptionHandler.php:142)
  at Joomla\CMS\Exception\ExceptionHandler::render(object(MissingComponentException))
     (/www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/libraries/src/Exception/ExceptionHandler.php:76)
  at Joomla\CMS\Exception\ExceptionHandler::handleException(object(MissingComponentException))
     (/www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/libraries/src/Application/CMSApplication.php:350)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/includes/app.php:58)
  at require_once('/www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/includes/app.php')
     (/www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/index.php:51)                
[1/2] MissingComponentException
Joomla\CMS\Component\Exception\MissingComponentException:
Komponente nicht gefunden

  at /www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/libraries/src/Component/ComponentHelper.php:296
  at Joomla\CMS\Component\ComponentHelper::renderComponent(null)
     (/www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/libraries/src/Application/SiteApplication.php:217)
  at Joomla\CMS\Application\SiteApplication->dispatch()
     (/www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/libraries/src/Application/SiteApplication.php:271)
  at Joomla\CMS\Application\SiteApplication->doExecute()
     (/www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/libraries/src/Application/CMSApplication.php:320)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/includes/app.php:58)
  at require_once('/www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/includes/app.php')
     (/www/htdocs/w01374a6/subdomain-access/j6.datenablage.info/index.php:51)