{
if ($collector->getName() === '__meta') {
throw new DebugBarException("'__meta' is a reserved name and cannot be used as a collector name");
}
if (isset($this->collectors[$collector->getName()])) {
throw new DebugBarException("'{$collector->getName()}' is already a registered collector");
}
$this->collectors[$collector->getName()] = $collector;
return $this;
}
}
// Load language.
$this->loadLanguage();
$this->debugBar->addCollector(new InfoCollector($this->params, $this->debugBar->getCurrentRequestId()));
$this->debugBar->addCollector(new UserCollector());
if (JDEBUG) {
if ($this->params->get('memory', 1)) {
$this->debugBar->addCollector(new MemoryCollector());
if ($event->isStopped())
{
return $event;
}
$listener($event);
}
}
return $event;
}
// Send the application response.
$this->respond();
// Trigger the onAfterRespond event.
$this->getDispatcher()->dispatch('onAfterRespond');
}
/**
* Check if the user is required to reset their password.
*
// Set the application as global app
\Joomla\CMS\Factory::$application = $app;
// Execute the application.
$app->execute();
* define() is used rather than "const" to not error for PHP 5.2 and lower
*/
define('_JEXEC', 1);
// Run the application - All executable code should be triggered through this file
require_once dirname(__FILE__) . '/includes/app.php';
DebugBarException
|
---|
DebugBar\DebugBarException: 'info' is already a registered collector at /home/sites/midlandwebservices.co.uk/public_html/libraries/vendor/maximebf/debugbar/src/DebugBar/DebugBar.php:65 at DebugBar\DebugBar->addCollector(object(InfoCollector)) (/home/sites/midlandwebservices.co.uk/public_html/plugins/system/debug/debug.php:294) at PlgSystemDebug->onAfterRespond(object(Event)) (/home/sites/midlandwebservices.co.uk/public_html/libraries/vendor/joomla/event/src/Dispatcher.php:486) at Joomla\Event\Dispatcher->dispatch('onAfterRespond') (/home/sites/midlandwebservices.co.uk/public_html/libraries/src/Application/CMSApplication.php:332) at Joomla\CMS\Application\CMSApplication->execute() (/home/sites/midlandwebservices.co.uk/public_html/includes/app.php:61) at require_once('/home/sites/midlandwebservices.co.uk/public_html/includes/app.php') (/home/sites/midlandwebservices.co.uk/public_html/index.php:32) |