English
Joomla\Plugin\System\Debug\DataCollector\QueryCollector::__construct(): Argument #2 ($queryMonitor) must be of type Joomla\Database\Monitor\DebugMonitor, null given, called in /home/gamerush/public_html/joomla4/plugins/system/debug/debug.php on line 289 (500 Whoops, looks like something went wrong.)

TypeError

HTTP 500 Whoops, looks like something went wrong.

Joomla\Plugin\System\Debug\DataCollector\QueryCollector::__construct(): Argument #2 ($queryMonitor) must be of type Joomla\Database\Monitor\DebugMonitor, null given, called in /home/gamerush/public_html/joomla4/plugins/system/debug/debug.php on line 289

Exception

TypeError

  1.      * @param   array         $profiles      Profile data.
  2.      * @param   array         $explains      Explain data
  3.      *
  4.      * @since 4.0.0
  5.      */
  6.     public function __construct(Registry $paramsDebugMonitor $queryMonitor, array $profiles, array $explains)
  7.     {
  8.         $this->queryMonitor $queryMonitor;
  9.         parent::__construct($params);
QueryCollector->__construct(object(Registry), null, array(), array()) in /home/gamerush/public_html/joomla4/plugins/system/debug/debug.php (line 289)
  1.             if ($this->params->get('queries'1))
  2.             {
  3.                 // Call $db->disconnect() here to trigger the onAfterDisconnect() method here in this class!
  4.                 $this->db->disconnect();
  5.                 $this->debugBar->addCollector(new QueryCollector($this->params$this->queryMonitor$this->sqlShowProfileEach$this->explains));
  6.             }
  7.             if ($this->showLogs)
  8.             {
  9.                 $this->collectLogs();
  1.                 }
  2.                 // Convert to indexed array for unpacking.
  3.                 $arguments \array_values($arguments);
  4.                 $result $this->{$methodName}(...$arguments);
  5.                 // Ignore null results
  6.                 if ($result === null)
  7.                 {
  8.                     return;
  1.                 if ($event->isStopped())
  2.                 {
  3.                     return $event;
  4.                 }
  5.                 $listener($event);
  6.             }
  7.         }
  8.         return $event;
  9.     }
Dispatcher->dispatch('onAfterRespond', object(Event)) in /home/gamerush/public_html/joomla4/libraries/src/Application/EventAware.php (line 111)
  1.         else
  2.         {
  3.             throw new \InvalidArgumentException('The arguments must either be an event or an array');
  4.         }
  5.         $result $dispatcher->dispatch($eventName$event);
  6.         // TODO - There are still test cases where the result isn't defined, temporarily leave the isset check in place
  7.         return !isset($result['result']) || \is_null($result['result']) ? [] : $result['result'];
  8.     }
  9. }
WebApplication->triggerEvent('onAfterRespond') in /home/gamerush/public_html/joomla4/libraries/src/Application/CMSApplication.php (line 318)
  1.         // Send the application response.
  2.         $this->respond();
  3.         // Trigger the onAfterRespond event.
  4.         $this->triggerEvent('onAfterRespond');
  5.     }
  6.     /**
  7.      * Check if the user is required to reset their password.
  8.      *
CMSApplication->execute() in /home/gamerush/public_html/joomla4/includes/app.php (line 63)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/home/gamerush/public_html/joomla4/includes/app.php') in /home/gamerush/public_html/joomla4/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 Trace

TypeError
TypeError:
Joomla\Plugin\System\Debug\DataCollector\QueryCollector::__construct(): Argument #2 ($queryMonitor) must be of type Joomla\Database\Monitor\DebugMonitor, null given, called in /home/gamerush/public_html/joomla4/plugins/system/debug/debug.php on line 289

  at /home/gamerush/public_html/joomla4/plugins/system/debug/src/DataCollector/QueryCollector.php:83
  at Joomla\Plugin\System\Debug\DataCollector\QueryCollector->__construct(object(Registry), null, array(), array())
     (/home/gamerush/public_html/joomla4/plugins/system/debug/debug.php:289)
  at PlgSystemDebug->onAfterRespond()
     (/home/gamerush/public_html/joomla4/libraries/src/Plugin/CMSPlugin.php:285)
  at Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}(object(Event))
     (/home/gamerush/public_html/joomla4/libraries/vendor/joomla/event/src/Dispatcher.php:486)
  at Joomla\Event\Dispatcher->dispatch('onAfterRespond', object(Event))
     (/home/gamerush/public_html/joomla4/libraries/src/Application/EventAware.php:111)
  at Joomla\CMS\Application\WebApplication->triggerEvent('onAfterRespond')
     (/home/gamerush/public_html/joomla4/libraries/src/Application/CMSApplication.php:318)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/home/gamerush/public_html/joomla4/includes/app.php:63)
  at require_once('/home/gamerush/public_html/joomla4/includes/app.php')
     (/home/gamerush/public_html/joomla4/index.php:32)