Notice: Undefined variable: db in /home/miramar/public_html/plugins/system/redirect/redirect.php on line 243
Call to a member function updateObject() on null (500 Whoops, looks like something went wrong.)

Error

HTTP 500 Whoops, looks like something went wrong.

Call to a member function updateObject() on null

Exception

Error

  1.                 // Always count redirect hits
  2.                 $redirect->hits++;
  3.                 try
  4.                 {
  5.                     $db->updateObject('#__redirect_links'$redirect'id');
  6.                 }
  7.                 catch (Exception $e)
  8.                 {
  9.                     // We don't log issues for now
  10.                 }
  1.                 if ($event->isStopped())
  2.                 {
  3.                     return $event;
  4.                 }
  5.                 $listener($event);
  6.             }
  7.         }
  8.         return $event;
  9.     }
Dispatcher->dispatch('onError', object(ErrorEvent)) in /home/miramar/public_html/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('onError', object(ErrorEvent)) in /home/miramar/public_html/libraries/src/Application/CMSApplication.php (line 309)
  1.                     'application' => $this,
  2.                 ]
  3.             );
  4.             // Trigger the onError event.
  5.             $this->triggerEvent('onError'$event);
  6.             ExceptionHandler::handleException($event->getError());
  7.         }
  8.         // Send the application response.
CMSApplication->execute() in /home/miramar/public_html/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/miramar/public_html/includes/app.php') in /home/miramar/public_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 Trace

Error
Error:
Call to a member function updateObject() on null

  at /home/miramar/public_html/plugins/system/redirect/redirect.php:243
  at PlgSystemRedirect->handleError(object(ErrorEvent))
     (/home/miramar/public_html/libraries/vendor/joomla/event/src/Dispatcher.php:486)
  at Joomla\Event\Dispatcher->dispatch('onError', object(ErrorEvent))
     (/home/miramar/public_html/libraries/src/Application/EventAware.php:111)
  at Joomla\CMS\Application\WebApplication->triggerEvent('onError', object(ErrorEvent))
     (/home/miramar/public_html/libraries/src/Application/CMSApplication.php:309)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/home/miramar/public_html/includes/app.php:63)
  at require_once('/home/miramar/public_html/includes/app.php')
     (/home/miramar/public_html/index.php:32)