// set translations
$this->language->load('tpl_warp', $this['path']->path('warp:systems/joomla'), null, true);
// is site ?
if ($this->application->isSite()) {
// set config
$this->config->set('language', $this->document->language);
$this->config->set('direction', $this->document->direction);
$this->config->set('site_url', rtrim(JURI::root(), '/'));
$warp['path']->register(dirname(__FILE__).'/layouts','layouts');
$warp['path']->register(dirname(__FILE__).'/js', 'js');
$warp['path']->register(dirname(__FILE__).'/css', 'css');
// init system
$warp['system']->init();
// no direct access
defined('_JEXEC') or die('Restricted access');
// include config
include_once(dirname(__FILE__).'/config.php');
// get warp
$warp = Warp::getInstance();
// set messages
// 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 = array())
{
return $this->_fetchTemplate($params)->_parseTemplate();
}
/**
* Outputs the template to the browser.
*
public function render($caching = false, $params = array())
{
$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';
);
try {
$this->db->insertObject('#__redirect_links', $data, 'id');
} catch (Exception $e) {
$event->setError(new Exception(Text::_('PLG_SYSTEM_REDIRECT_ERROR_UPDATING_DATABASE'), 500, $e));
return;
}
}
} else {
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'];
}
}
'application' => $this,
]
);
// Trigger the onError event.
$this->triggerEvent('onError', $event);
ExceptionHandler::handleException($event->getError());
}
// Trigger the onBeforeRespond event.
// 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';
}
}
if (!$this->statement->execute())
{
throw new ExecutionFailureException($this->query, $this->statement->error, $this->statement->errno);
}
if ($this->columnNames === null)
{
$meta = $this->statement->result_metadata();
$this->statement->bindParam($key, $obj->value, $obj->dataType);
}
try
{
$this->executed = $this->statement->execute();
// If there is a monitor registered, let it know we have finished this query
if ($this->monitor)
{
$this->monitor->stopQuery();
->insert($this->quoteName($table))
->columns($fields)
->values(implode(',', $values));
// Set the query and execute the insert.
$this->setQuery($query)->execute();
// Update the primary key if it exists.
$id = $this->insertid();
if ($key && $id && \is_string($key))
'created_date' => $nowDate,
'modified_date' => $nowDate,
);
try {
$this->db->insertObject('#__redirect_links', $data, 'id');
} catch (Exception $e) {
$event->setError(new Exception(Text::_('PLG_SYSTEM_REDIRECT_ERROR_UPDATING_DATABASE'), 500, $e));
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'];
}
}
'application' => $this,
]
);
// Trigger the onError event.
$this->triggerEvent('onError', $event);
ExceptionHandler::handleException($event->getError());
}
// Trigger the onBeforeRespond event.
// 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';
[3/3]
UndefinedMethodError
|
---|
Symfony\Component\ErrorHandler\Error\UndefinedMethodError: Attempted to call an undefined method named "isSite" of class "Joomla\CMS\Application\SiteApplication". at /customers/a/2/9/aadak.net/httpd.www/templates/yoo_downtown/warp/systems/joomla/helpers/system.php:86 at SystemWarpHelper->init() (/customers/a/2/9/aadak.net/httpd.www/templates/yoo_downtown/config.php:21) at include_once('/customers/a/2/9/aadak.net/httpd.www/templates/yoo_downtown/config.php') (/customers/a/2/9/aadak.net/httpd.www/templates/yoo_downtown/error.php:13) at require('/customers/a/2/9/aadak.net/httpd.www/templates/yoo_downtown/error.php') (/customers/a/2/9/aadak.net/httpd.www/libraries/src/Document/HtmlDocument.php:736) at Joomla\CMS\Document\HtmlDocument->_loadTemplate('/customers/a/2/9/aadak.net/httpd.www/templates/yoo_downtown', 'error.php') (/customers/a/2/9/aadak.net/httpd.www/libraries/src/Document/HtmlDocument.php:791) at Joomla\CMS\Document\HtmlDocument->_fetchTemplate(array('template' => 'yoo_downtown', 'directory' => '/customers/a/2/9/aadak.net/httpd.www/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/customers/a/2/9/aadak.net/httpd.www/libraries/src/Document/HtmlDocument.php:608) at Joomla\CMS\Document\HtmlDocument->parse(array('template' => 'yoo_downtown', 'directory' => '/customers/a/2/9/aadak.net/httpd.www/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/customers/a/2/9/aadak.net/httpd.www/libraries/src/Document/HtmlDocument.php:626) at Joomla\CMS\Document\HtmlDocument->render(false, array('template' => 'yoo_downtown', 'directory' => '/customers/a/2/9/aadak.net/httpd.www/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/customers/a/2/9/aadak.net/httpd.www/libraries/src/Document/ErrorDocument.php:139) at Joomla\CMS\Document\ErrorDocument->render(false, array('template' => 'yoo_downtown', 'directory' => '/customers/a/2/9/aadak.net/httpd.www/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/customers/a/2/9/aadak.net/httpd.www/libraries/src/Error/Renderer/HtmlRenderer.php:78) at Joomla\CMS\Error\Renderer\HtmlRenderer->render(object(Exception)) (/customers/a/2/9/aadak.net/httpd.www/libraries/src/Exception/ExceptionHandler.php:121) at Joomla\CMS\Exception\ExceptionHandler::render(object(Exception)) (/customers/a/2/9/aadak.net/httpd.www/libraries/src/Exception/ExceptionHandler.php:72) at Joomla\CMS\Exception\ExceptionHandler::handleException(object(Exception)) (/customers/a/2/9/aadak.net/httpd.www/libraries/src/Application/CMSApplication.php:323) at Joomla\CMS\Application\CMSApplication->execute() (/customers/a/2/9/aadak.net/httpd.www/includes/app.php:61) at require_once('/customers/a/2/9/aadak.net/httpd.www/includes/app.php') (/customers/a/2/9/aadak.net/httpd.www/index.php:32) |
[2/3]
Exception
|
---|
Exception: PLG_SYSTEM_REDIRECT_ERROR_UPDATING_DATABASE at /customers/a/2/9/aadak.net/httpd.www/plugins/system/redirect/redirect.php:261 at PlgSystemRedirect->handleError(object(ErrorEvent)) (/customers/a/2/9/aadak.net/httpd.www/libraries/vendor/joomla/event/src/Dispatcher.php:486) at Joomla\Event\Dispatcher->dispatch('onError', object(ErrorEvent)) (/customers/a/2/9/aadak.net/httpd.www/libraries/src/Application/EventAware.php:107) at Joomla\CMS\Application\WebApplication->triggerEvent('onError', object(ErrorEvent)) (/customers/a/2/9/aadak.net/httpd.www/libraries/src/Application/CMSApplication.php:321) at Joomla\CMS\Application\CMSApplication->execute() (/customers/a/2/9/aadak.net/httpd.www/includes/app.php:61) at require_once('/customers/a/2/9/aadak.net/httpd.www/includes/app.php') (/customers/a/2/9/aadak.net/httpd.www/index.php:32) |
[1/3]
ExecutionFailureException
|
---|
Joomla\Database\Exception\ExecutionFailureException: Field 'new_url' doesn't have a default value at /customers/a/2/9/aadak.net/httpd.www/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:435 at Joomla\Database\Mysqli\MysqliStatement->execute() (/customers/a/2/9/aadak.net/httpd.www/libraries/vendor/joomla/database/src/DatabaseDriver.php:675) at Joomla\Database\DatabaseDriver->execute() (/customers/a/2/9/aadak.net/httpd.www/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:776) at Joomla\Database\Mysqli\MysqliDriver->insertObject('#__redirect_links', object(stdClass), 'id') (/customers/a/2/9/aadak.net/httpd.www/plugins/system/redirect/redirect.php:259) at PlgSystemRedirect->handleError(object(ErrorEvent)) (/customers/a/2/9/aadak.net/httpd.www/libraries/vendor/joomla/event/src/Dispatcher.php:486) at Joomla\Event\Dispatcher->dispatch('onError', object(ErrorEvent)) (/customers/a/2/9/aadak.net/httpd.www/libraries/src/Application/EventAware.php:107) at Joomla\CMS\Application\WebApplication->triggerEvent('onError', object(ErrorEvent)) (/customers/a/2/9/aadak.net/httpd.www/libraries/src/Application/CMSApplication.php:321) at Joomla\CMS\Application\CMSApplication->execute() (/customers/a/2/9/aadak.net/httpd.www/includes/app.php:61) at require_once('/customers/a/2/9/aadak.net/httpd.www/includes/app.php') (/customers/a/2/9/aadak.net/httpd.www/index.php:32) |