iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: http://www.letras.ufrj.br/posverna/mestrado/SantosVM.pdf
Argument 1 passed to DebugBar\DebugBar::addCollector() must implement interface DebugBar\DataCollector\DataCollectorInterface, null given, called in /var/www/html/plugins/system/debug/src/Extension/Debug.php on line 303 (500 Whoops, looks like something went wrong.)

RouteNotFoundException TypeError

HTTP 500 Whoops, looks like something went wrong.

Argument 1 passed to DebugBar\DebugBar::addCollector() must implement interface DebugBar\DataCollector\DataCollectorInterface, null given, called in /var/www/html/plugins/system/debug/src/Extension/Debug.php on line 303

Exceptions 2

TypeError

  1.      * @param DataCollectorInterface $collector
  2.      *
  3.      * @throws DebugBarException
  4.      * @return $this
  5.      */
  6.     public function addCollector(DataCollectorInterface $collector)
  7.     {
  8.         if ($collector->getName() === '__meta') {
  9.             throw new DebugBarException("'__meta' is a reserved name and cannot be used as a collector name");
  10.         }
  11.         if (isset($this->collectors[$collector->getName()])) {
DebugBar->addCollector(null) in /var/www/html/plugins/system/debug/src/Extension/Debug.php (line 303)
  1.             if ($this->params->get('session'1)) {
  2.                 $this->debugBar->addCollector(new SessionCollector($this->paramstrue));
  3.             }
  4.             if ($this->params->get('profile'1)) {
  5.                 $this->debugBar->addCollector((new ProfileCollector($this->params))->setRequestEndTime($endTime));
  6.             }
  7.             if ($this->params->get('queries'1)) {
  8.                 // Remember session form token for possible future usage.
  9.                 $formToken Session::getFormToken();
  1.                 if ($event->isStopped())
  2.                 {
  3.                     return $event;
  4.                 }
  5.                 $listener($event);
  6.             }
  7.         }
  8.         return $event;
  9.     }
  1.         catch (\UnexpectedValueException $exception)
  2.         {
  3.             return null;
  4.         }
  5.         return $dispatcher->dispatch($eventName$event ?: new Event\ApplicationEvent($eventName$this));
  6.     }
  7.     /**
  8.      * Method to run the application routines.
  9.      *
  1.         $this->dispatchEvent(ApplicationEvents::BEFORE_RESPOND);
  2.         // Set appropriate headers
  3.         $this->respond();
  4.         $this->dispatchEvent(ApplicationEvents::AFTER_RESPOND);
  5.         // Close the application after the redirect.
  6.         $this->close();
  7.     }
AbstractWebApplication->redirect('https://letras.hom.tic.ufrj.br/index.php', 303) in /var/www/html/libraries/src/Application/CMSApplication.php (line 975)
  1.         if (\count($this->messageQueue)) {
  2.             $this->getSession()->set('application.queue'$this->messageQueue);
  3.         }
  4.         // Hand over processing to the parent now
  5.         parent::redirect($url$status);
  6.     }
  7.     /**
  8.      * Rendering is the process of pushing the document buffers into the template
  9.      * placeholders, retrieving data from the document and pushing it into
CMSApplication->redirect('index.php') in /var/www/html/libraries/src/Exception/ExceptionHandler.php (line 94)
  1.             // Flag if we are on cli
  2.             $isCli $app->isClient('cli');
  3.             // If site is offline and it's a 404 error, just go to index (to see offline message, instead of 404)
  4.             if (!$isCli && $error->getCode() == '404' && $app->get('offline') == 1) {
  5.                 $app->redirect('index.php');
  6.             }
  7.             /*
  8.              * Try and determine the format to render the error page in
  9.              *
ExceptionHandler::render(object(RouteNotFoundException)) in /var/www/html/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(RouteNotFoundException)) in /var/www/html/libraries/src/Application/CMSApplication.php (line 323)
  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 /var/www/html/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('/var/www/html/includes/app.php') in /var/www/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 dirname(__FILE__) . '/includes/app.php';

Joomla\CMS\Router\Exception\ RouteNotFoundException

Página não encontrada

  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 /var/www/html/libraries/src/Application/SiteApplication.php (line 736)
  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 /var/www/html/libraries/src/Application/CMSApplication.php (line 294)
  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/html/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('/var/www/html/includes/app.php') in /var/www/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 dirname(__FILE__) . '/includes/app.php';

Stack Traces 2

[2/2] TypeError
TypeError:
Argument 1 passed to DebugBar\DebugBar::addCollector() must implement interface DebugBar\DataCollector\DataCollectorInterface, null given, called in /var/www/html/plugins/system/debug/src/Extension/Debug.php on line 303

  at /var/www/html/libraries/vendor/maximebf/debugbar/src/DebugBar/DebugBar.php:59
  at DebugBar\DebugBar->addCollector(null)
     (/var/www/html/plugins/system/debug/src/Extension/Debug.php:303)
  at Joomla\Plugin\System\Debug\Extension\Debug->onAfterRespond(object(ApplicationEvent))
     (/var/www/html/libraries/vendor/joomla/event/src/Dispatcher.php:486)
  at Joomla\Event\Dispatcher->dispatch('application.after_respond', object(ApplicationEvent))
     (/var/www/html/libraries/vendor/joomla/application/src/AbstractApplication.php:94)
  at Joomla\Application\AbstractApplication->dispatchEvent('application.after_respond')
     (/var/www/html/libraries/vendor/joomla/application/src/AbstractWebApplication.php:520)
  at Joomla\Application\AbstractWebApplication->redirect('https://letras.hom.tic.ufrj.br/index.php', 303)
     (/var/www/html/libraries/src/Application/CMSApplication.php:975)
  at Joomla\CMS\Application\CMSApplication->redirect('index.php')
     (/var/www/html/libraries/src/Exception/ExceptionHandler.php:94)
  at Joomla\CMS\Exception\ExceptionHandler::render(object(RouteNotFoundException))
     (/var/www/html/libraries/src/Exception/ExceptionHandler.php:72)
  at Joomla\CMS\Exception\ExceptionHandler::handleException(object(RouteNotFoundException))
     (/var/www/html/libraries/src/Application/CMSApplication.php:323)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/var/www/html/includes/app.php:61)
  at require_once('/var/www/html/includes/app.php')
     (/var/www/html/index.php:32)                
[1/2] RouteNotFoundException
Joomla\CMS\Router\Exception\RouteNotFoundException:
Página não encontrada

  at /var/www/html/libraries/src/Router/Router.php:153
  at Joomla\CMS\Router\Router->parse(object(Uri), true)
     (/var/www/html/libraries/src/Application/SiteApplication.php:736)
  at Joomla\CMS\Application\SiteApplication->route()
     (/var/www/html/libraries/src/Application/SiteApplication.php:224)
  at Joomla\CMS\Application\SiteApplication->doExecute()
     (/var/www/html/libraries/src/Application/CMSApplication.php:294)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/var/www/html/includes/app.php:61)
  at require_once('/var/www/html/includes/app.php')
     (/var/www/html/index.php:32)