$db->setQuery($query);
$data = $db->loadObject();
if (empty($data)) {
throw new \Exception(Text::_('COM_CONTENT_ERROR_ARTICLE_NOT_FOUND'), 404);
}
// Check for published state if filter set.
if ((is_numeric($published) || is_numeric($archived)) && ($data->state != $published && $data->state != $archived)) {
throw new \Exception(Text::_('COM_CONTENT_ERROR_ARTICLE_NOT_FOUND'), 404);
$this->prepareDebugInfo('', '<p><strong>Com_content area</strong> article</p>');
$model = $app->bootComponent('com_content')
->getMVCFactory()
->createModel('Article', 'Site', ['ignore_request' => false]);
$article = $model->getItem($id);
$article->jcfields = FieldsHelper::getFields("com_content.article", $article, true);
!JDEBUG ?: Profiler::getInstance('Application')->mark('<strong>plg WT SEO Meta templates - com_content provider plugin</strong>: After load article');
$this->prepareDebugInfo('', '<p><strong>Com_content Title</strong>: ' . $article->title . '</p>');
$this->prepareDebugInfo('', '<p><strong>Com_content Meta desc:</strong> ' . $article->metadesc . '</p>');
if ($event->isStopped())
{
return $event;
}
$listener($event);
}
}
return $event;
}
// получаем переменные от сторонних плагинов
!JDEBUG ?: Profiler::getInstance('Application')->mark('<strong>plg WT SEO Meta templates</strong>: Before additional plugins import');
$event = AbstractEvent::create('onWt_seo_meta_templatesAddVariables', [
'subject' => $this
]);
$app->getDispatcher()->dispatch($event->getName(), $event);
$result = $event->getArgument('result');
!JDEBUG ?: Profiler::getInstance('Application')->mark('<strong>plg WT SEO Meta templates</strong>: After additional plugins import');
$allVariables = [];
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'];
}
}
$asset->onAttachCallback($this->_doc);
}
}
// Trigger the onBeforeCompileHead event
$app->triggerEvent('onBeforeCompileHead');
// Add Script Options as inline asset
$scriptOptions = $this->_doc->getScriptOptions();
if ($scriptOptions) {
$cbuffer[$hash] = $tmpdata;
$cache->store($cbuffer, 'cbuffer_' . $type);
} else {
$this->setBuffer($renderer->render($name, $attribs, null), $type, $name, $title);
}
return parent::$_buffer[$type][$name][$title];
}
$replace = [];
$with = [];
foreach ($this->_template_tags as $jdoc => $args) {
$replace[] = $jdoc;
$with[] = $this->getBuffer($args['type'], $args['name'], $args['attribs']);
}
return str_replace($replace, $with, $this->_template);
}
}
if (\array_key_exists('csp_nonce', $params) && $params['csp_nonce'] !== null) {
$this->cspNonce = $params['csp_nonce'];
}
$data = $this->_renderTemplate();
parent::render($caching, $params);
return $data;
}
$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();
}
{
$db->insertObject('#__redirect_links', $data, 'id');
}
catch (Exception $e)
{
ExceptionHandler::render(new Exception(Text::_('PLG_SYSTEM_ADVANCEDREDIRECT_ERROR_DATABASE'), 500, $e));
}
}
// AdvancedRedirect Code Start
if ($params->get('redirect_mode', 'auto') === 'static')
*
* @since 1.0.5
*/
public function onError($error)
{
self::doErrorHandling($error);
}
/**
* Method to handle an error condition from JError.
*
}
// 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'];
}
}
'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';
{
$db->insertObject('#__redirect_links', $data, 'id');
}
catch (Exception $e)
{
ExceptionHandler::render(new Exception(Text::_('PLG_SYSTEM_ADVANCEDREDIRECT_ERROR_DATABASE'), 500, $e));
}
}
// AdvancedRedirect Code Start
if ($params->get('redirect_mode', 'auto') === 'static')
*
* @since 1.0.5
*/
public function onError($error)
{
self::doErrorHandling($error);
}
/**
* Method to handle an error condition from JError.
*
}
// 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'];
}
}
'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';
throw new ExecutionFailureException($this->query, $this->statement->error, $this->statement->errno);
}
}
catch (\Throwable $e)
{
throw new ExecutionFailureException($this->query, $e->getMessage(), $e->getCode(), $e);
}
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' => Factory::getDate()->toSql()
);
try
{
$db->insertObject('#__redirect_links', $data, 'id');
}
catch (Exception $e)
{
ExceptionHandler::render(new Exception(Text::_('PLG_SYSTEM_ADVANCEDREDIRECT_ERROR_DATABASE'), 500, $e));
}
*
* @since 1.0.5
*/
public function onError($error)
{
self::doErrorHandling($error);
}
/**
* Method to handle an error condition from JError.
*
}
// 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'];
}
}
'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';
}
}
try
{
if (!$this->statement->execute())
{
throw new ExecutionFailureException($this->query, $this->statement->error, $this->statement->errno);
}
}
catch (\Throwable $e)
}
}
try
{
if (!$this->statement->execute())
{
throw new ExecutionFailureException($this->query, $this->statement->error, $this->statement->errno);
}
}
catch (\Throwable $e)
$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' => Factory::getDate()->toSql()
);
try
{
$db->insertObject('#__redirect_links', $data, 'id');
}
catch (Exception $e)
{
ExceptionHandler::render(new Exception(Text::_('PLG_SYSTEM_ADVANCEDREDIRECT_ERROR_DATABASE'), 500, $e));
}
*
* @since 1.0.5
*/
public function onError($error)
{
self::doErrorHandling($error);
}
/**
* Method to handle an error condition from JError.
*
}
// 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'];
}
}
'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';
[4/4]
Exception
|
---|
Exception: Материал не найден. at /home/i/inoysam/farfrom.ru/public_html/components/com_content/src/Model/ArticleModel.php:218 at Joomla\Component\Content\Site\Model\ArticleModel->getItem(23) (/home/i/inoysam/farfrom.ru/public_html/plugins/system/wt_seo_meta_templates_content/src/Extension/Wt_seo_meta_templates_content.php:284) at Joomla\Plugin\System\Wt_seo_meta_templates_content\Extension\Wt_seo_meta_templates_content->onWt_seo_meta_templatesAddVariables(object(GenericEvent)) (/home/i/inoysam/farfrom.ru/public_html/libraries/vendor/joomla/event/src/Dispatcher.php:486) at Joomla\Event\Dispatcher->dispatch('onWt_seo_meta_templatesAddVariables', object(GenericEvent)) (/home/i/inoysam/farfrom.ru/public_html/plugins/system/wt_seo_meta_templates/src/Extension/Wt_seo_meta_templates.php:57) at Joomla\Plugin\System\Wt_seo_meta_templates\Extension\Wt_seo_meta_templates->onBeforeCompileHead(object(GenericEvent)) (/home/i/inoysam/farfrom.ru/public_html/libraries/vendor/joomla/event/src/Dispatcher.php:486) at Joomla\Event\Dispatcher->dispatch('onBeforeCompileHead', object(Event)) (/home/i/inoysam/farfrom.ru/public_html/libraries/src/Application/EventAware.php:111) at Joomla\CMS\Application\WebApplication->triggerEvent('onBeforeCompileHead') (/home/i/inoysam/farfrom.ru/public_html/libraries/src/Document/Renderer/Html/MetasRenderer.php:61) at Joomla\CMS\Document\Renderer\Html\MetasRenderer->render(null, array(), null) (/home/i/inoysam/farfrom.ru/public_html/libraries/src/Document/HtmlDocument.php:565) at Joomla\CMS\Document\HtmlDocument->getBuffer('metas', null, array()) (/home/i/inoysam/farfrom.ru/public_html/libraries/src/Document/HtmlDocument.php:833) at Joomla\CMS\Document\HtmlDocument->_renderTemplate() (/home/i/inoysam/farfrom.ru/public_html/libraries/src/Document/HtmlDocument.php:637) at Joomla\CMS\Document\HtmlDocument->render(false, array('template' => 'cassiopeia', 'directory' => '/home/i/inoysam/farfrom.ru/public_html/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/home/i/inoysam/farfrom.ru/public_html/libraries/src/Document/ErrorDocument.php:139) at Joomla\CMS\Document\ErrorDocument->render(false, array('template' => 'cassiopeia', 'directory' => '/home/i/inoysam/farfrom.ru/public_html/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/home/i/inoysam/farfrom.ru/public_html/libraries/src/Error/Renderer/HtmlRenderer.php:78) at Joomla\CMS\Error\Renderer\HtmlRenderer->render(object(Exception)) (/home/i/inoysam/farfrom.ru/public_html/libraries/src/Exception/ExceptionHandler.php:126) at Joomla\CMS\Exception\ExceptionHandler::render(object(Exception)) (/home/i/inoysam/farfrom.ru/public_html/plugins/system/advancedredirect/advancedredirect.php:345) at PlgSystemAdvancedRedirect::doErrorHandling(object(Exception)) (/home/i/inoysam/farfrom.ru/public_html/plugins/system/advancedredirect/advancedredirect.php:87) at PlgSystemAdvancedRedirect->onError(object(Exception), object(SiteApplication)) (/home/i/inoysam/farfrom.ru/public_html/libraries/src/Plugin/CMSPlugin.php:289) at Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}(object(ErrorEvent)) (/home/i/inoysam/farfrom.ru/public_html/libraries/vendor/joomla/event/src/Dispatcher.php:486) at Joomla\Event\Dispatcher->dispatch('onError', object(ErrorEvent)) (/home/i/inoysam/farfrom.ru/public_html/libraries/src/Application/EventAware.php:111) at Joomla\CMS\Application\WebApplication->triggerEvent('onError', object(ErrorEvent)) (/home/i/inoysam/farfrom.ru/public_html/libraries/src/Application/CMSApplication.php:320) at Joomla\CMS\Application\CMSApplication->execute() (/home/i/inoysam/farfrom.ru/public_html/includes/app.php:61) at require_once('/home/i/inoysam/farfrom.ru/public_html/includes/app.php') (/home/i/inoysam/farfrom.ru/public_html/index.php:32) |
[3/4]
Exception
|
---|
Exception: An database error occurred. at /home/i/inoysam/farfrom.ru/public_html/plugins/system/advancedredirect/advancedredirect.php:345 at PlgSystemAdvancedRedirect::doErrorHandling(object(Exception)) (/home/i/inoysam/farfrom.ru/public_html/plugins/system/advancedredirect/advancedredirect.php:87) at PlgSystemAdvancedRedirect->onError(object(Exception), object(SiteApplication)) (/home/i/inoysam/farfrom.ru/public_html/libraries/src/Plugin/CMSPlugin.php:289) at Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}(object(ErrorEvent)) (/home/i/inoysam/farfrom.ru/public_html/libraries/vendor/joomla/event/src/Dispatcher.php:486) at Joomla\Event\Dispatcher->dispatch('onError', object(ErrorEvent)) (/home/i/inoysam/farfrom.ru/public_html/libraries/src/Application/EventAware.php:111) at Joomla\CMS\Application\WebApplication->triggerEvent('onError', object(ErrorEvent)) (/home/i/inoysam/farfrom.ru/public_html/libraries/src/Application/CMSApplication.php:320) at Joomla\CMS\Application\CMSApplication->execute() (/home/i/inoysam/farfrom.ru/public_html/includes/app.php:61) at require_once('/home/i/inoysam/farfrom.ru/public_html/includes/app.php') (/home/i/inoysam/farfrom.ru/public_html/index.php:32) |
[2/4]
ExecutionFailureException
|
---|
Joomla\Database\Exception\ExecutionFailureException: Field 'modified_date' doesn't have a default value at /home/i/inoysam/farfrom.ru/public_html/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:442 at Joomla\Database\Mysqli\MysqliStatement->execute() (/home/i/inoysam/farfrom.ru/public_html/libraries/vendor/joomla/database/src/DatabaseDriver.php:675) at Joomla\Database\DatabaseDriver->execute() (/home/i/inoysam/farfrom.ru/public_html/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:817) at Joomla\Database\Mysqli\MysqliDriver->insertObject('#__redirect_links', object(stdClass), 'id') (/home/i/inoysam/farfrom.ru/public_html/plugins/system/advancedredirect/advancedredirect.php:341) at PlgSystemAdvancedRedirect::doErrorHandling(object(Exception)) (/home/i/inoysam/farfrom.ru/public_html/plugins/system/advancedredirect/advancedredirect.php:87) at PlgSystemAdvancedRedirect->onError(object(Exception), object(SiteApplication)) (/home/i/inoysam/farfrom.ru/public_html/libraries/src/Plugin/CMSPlugin.php:289) at Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}(object(ErrorEvent)) (/home/i/inoysam/farfrom.ru/public_html/libraries/vendor/joomla/event/src/Dispatcher.php:486) at Joomla\Event\Dispatcher->dispatch('onError', object(ErrorEvent)) (/home/i/inoysam/farfrom.ru/public_html/libraries/src/Application/EventAware.php:111) at Joomla\CMS\Application\WebApplication->triggerEvent('onError', object(ErrorEvent)) (/home/i/inoysam/farfrom.ru/public_html/libraries/src/Application/CMSApplication.php:320) at Joomla\CMS\Application\CMSApplication->execute() (/home/i/inoysam/farfrom.ru/public_html/includes/app.php:61) at require_once('/home/i/inoysam/farfrom.ru/public_html/includes/app.php') (/home/i/inoysam/farfrom.ru/public_html/index.php:32) |
[1/4]
mysqli_sql_exception
|
---|
mysqli_sql_exception: Field 'modified_date' doesn't have a default value at /home/i/inoysam/farfrom.ru/public_html/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:435 at mysqli_stmt->execute() (/home/i/inoysam/farfrom.ru/public_html/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:435) at Joomla\Database\Mysqli\MysqliStatement->execute() (/home/i/inoysam/farfrom.ru/public_html/libraries/vendor/joomla/database/src/DatabaseDriver.php:675) at Joomla\Database\DatabaseDriver->execute() (/home/i/inoysam/farfrom.ru/public_html/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:817) at Joomla\Database\Mysqli\MysqliDriver->insertObject('#__redirect_links', object(stdClass), 'id') (/home/i/inoysam/farfrom.ru/public_html/plugins/system/advancedredirect/advancedredirect.php:341) at PlgSystemAdvancedRedirect::doErrorHandling(object(Exception)) (/home/i/inoysam/farfrom.ru/public_html/plugins/system/advancedredirect/advancedredirect.php:87) at PlgSystemAdvancedRedirect->onError(object(Exception), object(SiteApplication)) (/home/i/inoysam/farfrom.ru/public_html/libraries/src/Plugin/CMSPlugin.php:289) at Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}(object(ErrorEvent)) (/home/i/inoysam/farfrom.ru/public_html/libraries/vendor/joomla/event/src/Dispatcher.php:486) at Joomla\Event\Dispatcher->dispatch('onError', object(ErrorEvent)) (/home/i/inoysam/farfrom.ru/public_html/libraries/src/Application/EventAware.php:111) at Joomla\CMS\Application\WebApplication->triggerEvent('onError', object(ErrorEvent)) (/home/i/inoysam/farfrom.ru/public_html/libraries/src/Application/CMSApplication.php:320) at Joomla\CMS\Application\CMSApplication->execute() (/home/i/inoysam/farfrom.ru/public_html/includes/app.php:61) at require_once('/home/i/inoysam/farfrom.ru/public_html/includes/app.php') (/home/i/inoysam/farfrom.ru/public_html/index.php:32) |