// Always count redirect hits
$redirect->hits++;
try
{
$db->updateObject('#__redirect_links', $redirect, 'id');
}
catch (Exception $e)
{
// We don't log issues for now
}
if ($event->isStopped())
{
return $event;
}
$listener($event);
}
}
return $event;
}
else
{
throw new \InvalidArgumentException('The arguments must either be an event or an array');
}
$result = $dispatcher->dispatch($eventName, $event);
// TODO - There are still test cases where the result isn't defined, temporarily leave the isset check in place
return !isset($result['result']) || \is_null($result['result']) ? [] : $result['result'];
}
}
'application' => $this,
]
);
// Trigger the onError event.
$this->triggerEvent('onError', $event);
ExceptionHandler::handleException($event->getError());
}
// Send the application response.
// 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';
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) |