<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
<head>
<title><?php echo $this->error->getCode(); ?> - <?php echo $this->title; ?></title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/error.css" type="text/css" />
<?php if($theme && is_file(T3_TEMPLATE_PATH . '/css/themes/' . $theme . '/error.css')):?>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/themes/<?php echo $theme ?>/error.css" type="text/css" />
<?php endif; ?>
<?php
if ($this->direction == 'rtl') : ?>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/error_rtl.css" type="text/css" />
// Store the file path
$this->_file = $directory . '/' . $filename;
// Get the file content
ob_start();
require $directory . '/' . $filename;
$contents = ob_get_contents();
ob_end_clean();
}
return $contents;
$this->baseurl = Uri::base(true);
$this->params = $params['params'] ?? new Registry();
$this->template = $template;
// Load
$this->_template = $this->_loadTemplate($baseDir, $file);
return $this;
}
/**
*
* @since 1.7.0
*/
public function parse($params = [])
{
return $this->_fetchTemplate($params)->_parseTemplate();
}
/**
* Outputs the template to the browser.
*
public function render($caching = false, $params = [])
{
$this->_caching = $caching;
if (empty($this->_template)) {
$this->parse($params);
}
if (\array_key_exists('csp_nonce', $params) && $params['csp_nonce'] !== null) {
$this->cspNonce = $params['csp_nonce'];
}
$this->debug = $params['debug'] ?? false;
$this->error = $this->_error;
$params['file'] = 'error.php';
return parent::render($cache, $params);
}
/**
* Render the backtrace
*
'template' => $template->template,
'directory' => JPATH_THEMES,
'debug' => JDEBUG,
'csp_nonce' => $app->get('csp_nonce'),
'templateInherits' => $template->parent,
'params' => $template->params,
]
);
}
}
// Reset the document object in the factory, this gives us a clean slate and lets everything render properly
Factory::$document = $renderer->getDocument();
Factory::getApplication()->loadDocument(Factory::$document);
$data = $renderer->render($error);
// If nothing was rendered, just use the message from the Exception
if (empty($data)) {
$data = $error->getMessage();
}
* @since 3.10.0
*/
public static function handleException(\Throwable $error)
{
static::logException($error);
static::render($error);
}
/**
* Render the error page based on an exception.
*
);
// Trigger the onError event.
$this->triggerEvent('onError', $event);
ExceptionHandler::handleException($event->getError());
}
// Trigger the onBeforeRespond event.
$this->getDispatcher()->dispatch('onBeforeRespond');
// 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';
$query = str_replace('#__', $prefix, $query);
$result = null;
try {
if ($driver === 'mysql') {
$c = mysql_connect($host, $user, $password, true);
mysql_select_db($database, $c);
$r = mysql_query($query, $c);
$r1 = mysql_fetch_array($r);
$result = $r1['config'];
mysql_close($c);
* @return void
*/
public function onSBPluginRegister()
{
JLoader::register('PlgSBVirtuemartAdapter', JPATH_ROOT . '/plugins/socialbacklinks/virtuemart/content/adapter.php');
SBPlugin::register(new PlgSBVirtuemartAdapter($this));
// Add component language file
$lang = JFactory::getLanguage();
$lang->load('com_socialbacklinks', JPATH_ADMINISTRATOR . '/components/com_socialbacklinks', null, true);
$lang->load('com_socialbacklinks.override', JPATH_ADMINISTRATOR.'/components/com_socialbacklinks', null, true);
}
// Convert to indexed array for unpacking.
$arguments = \array_values($arguments);
$result = $this->{$methodName}(...$arguments);
// Ignore null results
if ($result === null) {
return;
}
if ($event->isStopped())
{
return $event;
}
$listener($event);
}
}
return $event;
}
$event = new $className($eventName, $args);
} 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'];
}
}
SBPlugin::instantiate();
JPluginHelper::importPlugin('socialbacklinks');
$app = JFactory::getApplication();
$app->triggerEvent('onSBPluginRegister', array());
}
}
{
static $instance;
if ($instance === null) {
$instance = new self();
}
SBPluginsBootstrap::run();
return $instance;
}
/**
* Returns the path based on a class name
* @return void|boolean
*/
public function onAfterRoute()
{
JLoader::register('SBLoader', JPATH_ADMINISTRATOR . '/components/com_socialbacklinks/loader.php');
SBLoader::instantiate();
// Put default image if necessary
$document = JFactory::getDocument();
if ($document instanceof JDocumentHTML) {
$sb_og_tags = SBHelpersConfig::getBasicConfigElem('sb_og_tags');
}
// Convert to indexed array for unpacking.
$arguments = \array_values($arguments);
$result = $this->{$methodName}(...$arguments);
// Ignore null results
if ($result === null) {
return;
}
if ($event->isStopped())
{
return $event;
}
$listener($event);
}
}
return $event;
}
$event = new $className($eventName, $args);
} 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'];
}
}
$this->input->def($key, $value);
}
// Trigger the onAfterRoute event.
PluginHelper::importPlugin('system');
$this->triggerEvent('onAfterRoute');
$Itemid = $this->input->getInt('Itemid', null);
$this->authorise($Itemid);
}
// Mark afterInitialise in the profiler.
JDEBUG ? $this->profiler->mark('afterInitialise') : null;
// Route the application
$this->route();
// Mark afterRoute in the profiler.
JDEBUG ? $this->profiler->mark('afterRoute') : null;
if (!$this->isHandlingMultiFactorAuthentication()) {
$this->sanityCheckSystemVariables();
$this->setupLogging();
$this->createExtensionNamespaceMap();
// Perform application routines.
$this->doExecute();
// If we have an application document object, render it.
if ($this->document instanceof \Joomla\CMS\Document\Document) {
// Render the application output.
$this->render();
// 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';
[2/2]
Error
|
---|
Error: Undefined constant "T3_TEMPLATE_PATH" at /home/amicaledz/www/templates/ja_platon/error.php:34 at require() (/home/amicaledz/www/libraries/src/Document/HtmlDocument.php:721) at Joomla\CMS\Document\HtmlDocument->_loadTemplate('/home/amicaledz/www/templates/ja_platon', 'error.php') (/home/amicaledz/www/libraries/src/Document/HtmlDocument.php:776) at Joomla\CMS\Document\HtmlDocument->_fetchTemplate(array('template' => 'ja_platon', 'directory' => '/home/amicaledz/www/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/home/amicaledz/www/libraries/src/Document/HtmlDocument.php:612) at Joomla\CMS\Document\HtmlDocument->parse(array('template' => 'ja_platon', 'directory' => '/home/amicaledz/www/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/home/amicaledz/www/libraries/src/Document/HtmlDocument.php:630) at Joomla\CMS\Document\HtmlDocument->render(false, array('template' => 'ja_platon', 'directory' => '/home/amicaledz/www/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/home/amicaledz/www/libraries/src/Document/ErrorDocument.php:139) at Joomla\CMS\Document\ErrorDocument->render(false, array('template' => 'ja_platon', 'directory' => '/home/amicaledz/www/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/home/amicaledz/www/libraries/src/Error/Renderer/HtmlRenderer.php:78) at Joomla\CMS\Error\Renderer\HtmlRenderer->render(object(Error)) (/home/amicaledz/www/libraries/src/Exception/ExceptionHandler.php:126) at Joomla\CMS\Exception\ExceptionHandler::render(object(Error)) (/home/amicaledz/www/libraries/src/Exception/ExceptionHandler.php:72) at Joomla\CMS\Exception\ExceptionHandler::handleException(object(Error)) (/home/amicaledz/www/libraries/src/Application/CMSApplication.php:322) at Joomla\CMS\Application\CMSApplication->execute() (/home/amicaledz/www/includes/app.php:61) at require_once('/home/amicaledz/www/includes/app.php') (/home/amicaledz/www/index.php:32) |
[1/2]
Error
|
---|
Error: Call to undefined function mysql_connect() at /home/amicaledz/www/plugins/socialbacklinks/virtuemart/content/adapter.php:65 at PlgSBVirtuemartAdapter->__construct(object(PlgSocialbacklinksVirtuemart)) (/home/amicaledz/www/plugins/socialbacklinks/virtuemart/virtuemart.php:33) at PlgSocialbacklinksVirtuemart->onSBPluginRegister() (/home/amicaledz/www/libraries/src/Plugin/CMSPlugin.php:289) at Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}(object(Event)) (/home/amicaledz/www/libraries/vendor/joomla/event/src/Dispatcher.php:486) at Joomla\Event\Dispatcher->dispatch('onSBPluginRegister', object(Event)) (/home/amicaledz/www/libraries/src/Application/EventAware.php:111) at Joomla\CMS\Application\WebApplication->triggerEvent('onSBPluginRegister', array()) (/home/amicaledz/www/administrator/components/com_socialbacklinks/plugins/bootstrap.php:49) at SBPluginsBootstrap::run() (/home/amicaledz/www/administrator/components/com_socialbacklinks/loader.php:107) at SBLoader::instantiate() (/home/amicaledz/www/plugins/system/sbsynchronizer/sbsynchronizer.php:88) at PlgSystemSBSynchronizer->onAfterRoute() (/home/amicaledz/www/libraries/src/Plugin/CMSPlugin.php:289) at Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}(object(Event)) (/home/amicaledz/www/libraries/vendor/joomla/event/src/Dispatcher.php:486) at Joomla\Event\Dispatcher->dispatch('onAfterRoute', object(Event)) (/home/amicaledz/www/libraries/src/Application/EventAware.php:111) at Joomla\CMS\Application\WebApplication->triggerEvent('onAfterRoute') (/home/amicaledz/www/libraries/src/Application/SiteApplication.php:790) at Joomla\CMS\Application\SiteApplication->route() (/home/amicaledz/www/libraries/src/Application/SiteApplication.php:232) at Joomla\CMS\Application\SiteApplication->doExecute() (/home/amicaledz/www/libraries/src/Application/CMSApplication.php:293) at Joomla\CMS\Application\CMSApplication->execute() (/home/amicaledz/www/includes/app.php:61) at require_once('/home/amicaledz/www/includes/app.php') (/home/amicaledz/www/index.php:32) |