欧宝官方体育APP下载_欢迎进入

RouteNotFoundException UndefinedMethodError

HTTP 500 Whoops, looks like something went wrong.

Attempted to call an undefined method named "getModulein" of class "Joomla\CMS\Helper\ModuleHelper".
Did you mean to call e.g. "getModule", "getModuleList" or "getModules"?

Exceptions 2

Symfony\Component\ErrorHandler\Error\ UndefinedMethodError

  1. //语言筛选
  2. $headerText $params->get('header_text');
  3. $footerText $params->get('footer_text');
  4. $languageslist=array();
  5. if(ModuleHelper::getModulein('eclanguages')){
  6.    $languageslist       EclanguagesHelper::getList($params);
  7.    if(count($languageslist)){
  8.       $menu        $app->getMenu();
  9.       $active        $menu->getActive();
  10.       $lang_code Factory::getLanguage()->getTag();
  1.                 unset($displayData);
  2.             } else {
  3.                 extract($displayData);
  4.             }
  5.             include $path;
  6.         };
  7.         $loader($path$this->getLayoutData());
  8.     }
  9. }
ModuleDispatcher::Joomla\CMS\Dispatcher\{closure}(array('102'), null) in /data/user/htdocs/libraries/src/Dispatcher/ModuleDispatcher.php (line 51)
  1.             }
  2.             include $path;
  3.         };
  4.         $loader($path$this->getLayoutData());
  5.     }
  6. }
ModuleDispatcher->dispatch() in /data/user/htdocs/libraries/src/Helper/ModuleHelper.php (line 272)
  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' => 'header', 'style' => 'none')) in /data/user/htdocs/libraries/src/Helper/ModuleHelper.php (line 157)
  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' => 'header', 'style' => 'none')) in /data/user/htdocs/libraries/src/Document/Renderer/Html/ModuleRenderer.php (line 95)
  1.             $module->contentRendered true;
  2.             return $module->content;
  3.         }
  4.         return ModuleHelper::renderModule($module$attribs);
  5.     }
  6. }
ModuleRenderer->render(object(stdClass), array('name' => 'header', 'style' => 'none'), null) in /data/user/htdocs/libraries/src/Document/Renderer/Html/ModulesRenderer.php (line 46)
  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 = array('moduleHtml' => &$moduleHtml'module' => $mod'position' => $position'menusediting' => $menusEditing);
  8.                 LayoutHelper::render('joomla.edit.frontediting_modules'$displayData);
  9.             }
ModulesRenderer->render('header', array('name' => 'header', 'style' => 'none'), null) in /data/user/htdocs/libraries/src/Document/HtmlDocument.php (line 561)
  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.     }
HtmlDocument->getBuffer('modules', 'header', array('name' => 'header', 'style' => 'none')) in /data/user/htdocs/libraries/src/Document/HtmlDocument.php (line 843)
  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. }
HtmlDocument->_renderTemplate() in /data/user/htdocs/libraries/src/Document/HtmlDocument.php (line 629)
  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' => 'default', 'directory' => '/data/user/htdocs/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) in /data/user/htdocs/libraries/src/Document/ErrorDocument.php (line 135)
  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' => 'default', 'directory' => '/data/user/htdocs/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) in /data/user/htdocs/libraries/src/Error/Renderer/HtmlRenderer.php (line 74)
  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. }
HtmlRenderer->render(object(RouteNotFoundException)) in /data/user/htdocs/libraries/src/Exception/ExceptionHandler.php (line 117)
  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(RouteNotFoundException)) in /data/user/htdocs/libraries/src/Exception/ExceptionHandler.php (line 68)
  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(RouteNotFoundException)) in /data/user/htdocs/libraries/src/Application/CMSApplication.php (line 319)
  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 /data/user/htdocs/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('/data/user/htdocs/includes/app.php') in /data/user/htdocs/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';

Joomla\CMS\Router\Exception\ RouteNotFoundException

页面未找到

  1.         $this->processParseRules($uriself::PROCESS_AFTER);
  2.         // Check if all parts of the URL have been parsed.
  3.         // Otherwise we have an invalid URL
  4.         if (\strlen($uri->getPath()) > 0) {
  5.             throw new RouteNotFoundException(Text::_('JERROR_PAGE_NOT_FOUND'));
  6.         }
  7.         if ($setVars) {
  8.             $this->setVars($uri->getQuery(true));
Router->parse(object(Uri), true) in /data/user/htdocs/libraries/src/Application/SiteApplication.php (line 732)
  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 /data/user/htdocs/libraries/src/Application/CMSApplication.php (line 290)
  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 /data/user/htdocs/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('/data/user/htdocs/includes/app.php') in /data/user/htdocs/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] UndefinedMethodError
Symfony\Component\ErrorHandler\Error\UndefinedMethodError:
Attempted to call an undefined method named "getModulein" of class "Joomla\CMS\Helper\ModuleHelper".
Did you mean to call e.g. "getModule", "getModuleList" or "getModules"?

  at /data/user/htdocs/modules/mod_echeader/mod_echeader.php:159
  at include()
     (/data/user/htdocs/libraries/src/Dispatcher/ModuleDispatcher.php:48)
  at Joomla\CMS\Dispatcher\ModuleDispatcher::Joomla\CMS\Dispatcher\{closure}(array('102'), null)
     (/data/user/htdocs/libraries/src/Dispatcher/ModuleDispatcher.php:51)
  at Joomla\CMS\Dispatcher\ModuleDispatcher->dispatch()
     (/data/user/htdocs/libraries/src/Helper/ModuleHelper.php:272)
  at Joomla\CMS\Helper\ModuleHelper::renderRawModule(object(stdClass), object(Registry), array('name' => 'header', 'style' => 'none'))
     (/data/user/htdocs/libraries/src/Helper/ModuleHelper.php:157)
  at Joomla\CMS\Helper\ModuleHelper::renderModule(object(stdClass), array('name' => 'header', 'style' => 'none'))
     (/data/user/htdocs/libraries/src/Document/Renderer/Html/ModuleRenderer.php:95)
  at Joomla\CMS\Document\Renderer\Html\ModuleRenderer->render(object(stdClass), array('name' => 'header', 'style' => 'none'), null)
     (/data/user/htdocs/libraries/src/Document/Renderer/Html/ModulesRenderer.php:46)
  at Joomla\CMS\Document\Renderer\Html\ModulesRenderer->render('header', array('name' => 'header', 'style' => 'none'), null)
     (/data/user/htdocs/libraries/src/Document/HtmlDocument.php:561)
  at Joomla\CMS\Document\HtmlDocument->getBuffer('modules', 'header', array('name' => 'header', 'style' => 'none'))
     (/data/user/htdocs/libraries/src/Document/HtmlDocument.php:843)
  at Joomla\CMS\Document\HtmlDocument->_renderTemplate()
     (/data/user/htdocs/libraries/src/Document/HtmlDocument.php:629)
  at Joomla\CMS\Document\HtmlDocument->render(false, array('template' => 'default', 'directory' => '/data/user/htdocs/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php'))
     (/data/user/htdocs/libraries/src/Document/ErrorDocument.php:135)
  at Joomla\CMS\Document\ErrorDocument->render(false, array('template' => 'default', 'directory' => '/data/user/htdocs/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php'))
     (/data/user/htdocs/libraries/src/Error/Renderer/HtmlRenderer.php:74)
  at Joomla\CMS\Error\Renderer\HtmlRenderer->render(object(RouteNotFoundException))
     (/data/user/htdocs/libraries/src/Exception/ExceptionHandler.php:117)
  at Joomla\CMS\Exception\ExceptionHandler::render(object(RouteNotFoundException))
     (/data/user/htdocs/libraries/src/Exception/ExceptionHandler.php:68)
  at Joomla\CMS\Exception\ExceptionHandler::handleException(object(RouteNotFoundException))
     (/data/user/htdocs/libraries/src/Application/CMSApplication.php:319)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/data/user/htdocs/includes/app.php:61)
  at require_once('/data/user/htdocs/includes/app.php')
     (/data/user/htdocs/index.php:32)                
[1/2] RouteNotFoundException
Joomla\CMS\Router\Exception\RouteNotFoundException:
页面未找到

  at /data/user/htdocs/libraries/src/Router/Router.php:149
  at Joomla\CMS\Router\Router->parse(object(Uri), true)
     (/data/user/htdocs/libraries/src/Application/SiteApplication.php:732)
  at Joomla\CMS\Application\SiteApplication->route()
     (/data/user/htdocs/libraries/src/Application/SiteApplication.php:220)
  at Joomla\CMS\Application\SiteApplication->doExecute()
     (/data/user/htdocs/libraries/src/Application/CMSApplication.php:290)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/data/user/htdocs/includes/app.php:61)
  at require_once('/data/user/htdocs/includes/app.php')
     (/data/user/htdocs/index.php:32)                
Baidu
sogou