$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);
{
$model = JModelLegacy::getInstance('Article', 'ContentModel');
}
// Make sure we have a valid item data
if (!is_object($model) || !$item = $model->getItem())
{
return;
}
// Image
$this->log('View ' . $view . ' is not supported');
return;
}
// Yeah. Let's call the method.
$payload = $this->$method();
// We need a valid array
if (!is_array($payload))
{
$this->log('Invalid Payload Array');
{
return;
}
// Let's check if the plugin supports the current component's view.
if (!$payload = $this->getPayload())
{
return;
}
// Now, let's see if we have valid snippets for the active page. If not abort.
}
// 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'];
}
}
public static function event($name, $arguments = [])
{
\JPluginHelper::importPlugin('gsd');
\JPluginHelper::importPlugin('system');
return \JFactory::getApplication()->triggerEvent($name, $arguments);
}
/**
* Get list with all available plugins
*
$this->getCustomCode(),
$this->getJSONBreadcrumbs()
];
// Load and trigger plugins
Helper::event('onGSDBeforeRender', array(&$data));
// Convert data array to string
$markup = implode("\n", array_filter($data));
// Return if markup is empty
*
* @return void
*/
public function onBeforeCompileHead()
{
$this->init();
}
/**
* Adds Google Structured Markup to the document in JSON Format
*
}
// 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'];
}
}
$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;
}
'file' => 'index.php',
'directory' => JPATH_THEMES,
'debug' => JDEBUG,
'csp_nonce' => $this->app->get('csp_nonce'),
'templateInherits' => $template->parent,
'params' => $template->params,
]
);
$this->app->setBody($data);
$this->renderDocument(
$rule,
$error,
$this->getSuggested(
$rule,
$page
)
);
}
$renderer = $this->factory->getA(
'Weeblr\Forseo\Platform\Helpers\Errorpages\\' . $platformType . 'renderer'
);
$renderer->render(
$applicableRule,
$error,
$page
);
die();
{
$this->factory->getA(Helper\Errorpage::class)
->render(
$rules,
$error,
$this->currentPage
);
}
}
/**
{
$params[0] = call_user_func_array($callbackRecord['callback'], $params);
}
else
{
call_user_func_array($callbackRecord['callback'], $params);
}
}
}
$newValue = null;
{
return Factory::get()->getThe('platform')->executeHook($filter, $params);
}
else
{
Factory::get()->getThe('platform')->executeHook($filter, $params);
}
}
/**
* Whether a given hook has callbacks registered.
*
* @return mixed|null
*/
public function run(...$args)
{
$this->execute(false, $args);
}
/**
* Execute all callbacks registered for a hook id
* in order of priority, only on first call.
*
* @return void
*
*/
$this->factory->getThe('hook')->run(
'forseo_on_404_error',
$error
);
// die to end processing for now. Display custom 404 error page in the future.
// remember to run Replacers, Analytics and any other relevant rules.
// can only be done if we have a real Document so not on default CMS rendering.
public function handleError(PlatformEvent\ErrorEvent $event)
{
// pass on to 4SEO: if handled, it won't return.
call_user_func_array(
$this->appHandler,
[$event->getError()]
);
}
}
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';
Exception
|
---|
Exception: Artículo no encontrado at /home/www/tdcred.com/components/com_content/src/Model/ArticleModel.php:218 at Joomla\Component\Content\Site\Model\ArticleModel->getItem() (/home/www/tdcred.com/plugins/gsd/content/content.php:55) at plgGSDContent->viewArticle() (/home/www/tdcred.com/administrator/components/com_gsd/GSD/PluginBase.php:395) at GSD\PluginBase->getPayload() (/home/www/tdcred.com/administrator/components/com_gsd/GSD/PluginBase.php:225) at GSD\PluginBase->onGSDBeforeRender(array(' <script type="application/ld+json" data-type="gsd"> { "@context": "https://schema.org", "@type": "WebSite", "url": "https://www.tdcred.com/", "name": "tdcred.com"} </script>', null, null, null, '', ' <script type="application/ld+json" data-type="gsd"> { "@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [ { "@type": "ListItem", "position": 1, "name": "Inicio", "item": "https://www.tdcred.com/" }, { "@type": "ListItem", "position": 2, "name": "No se encontró la página", "item": "https://www.tdcred.com/component/content/article/club-atletico-la-falda" } ]} </script>')) (/home/www/tdcred.com/libraries/src/Plugin/CMSPlugin.php:284) at Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}(object(Event)) (/home/www/tdcred.com/libraries/vendor/joomla/event/src/Dispatcher.php:486) at Joomla\Event\Dispatcher->dispatch('onGSDBeforeRender', object(Event)) (/home/www/tdcred.com/libraries/src/Application/EventAware.php:111) at Joomla\CMS\Application\WebApplication->triggerEvent('onGSDBeforeRender', array(array(' <script type="application/ld+json" data-type="gsd"> { "@context": "https://schema.org", "@type": "WebSite", "url": "https://www.tdcred.com/", "name": "tdcred.com"} </script>', null, null, null, '', ' <script type="application/ld+json" data-type="gsd"> { "@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [ { "@type": "ListItem", "position": 1, "name": "Inicio", "item": "https://www.tdcred.com/" }, { "@type": "ListItem", "position": 2, "name": "No se encontró la página", "item": "https://www.tdcred.com/component/content/article/club-atletico-la-falda" } ]} </script>'))) (/home/www/tdcred.com/administrator/components/com_gsd/GSD/Helper.php:451) at GSD\Helper::event('onGSDBeforeRender', array(array(' <script type="application/ld+json" data-type="gsd"> { "@context": "https://schema.org", "@type": "WebSite", "url": "https://www.tdcred.com/", "name": "tdcred.com"} </script>', null, null, null, '', ' <script type="application/ld+json" data-type="gsd"> { "@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [ { "@type": "ListItem", "position": 1, "name": "Inicio", "item": "https://www.tdcred.com/" }, { "@type": "ListItem", "position": 2, "name": "No se encontró la página", "item": "https://www.tdcred.com/component/content/article/club-atletico-la-falda" } ]} </script>'))) (/home/www/tdcred.com/plugins/system/gsd/gsd.php:85) at plgSystemGSD->init() (/home/www/tdcred.com/plugins/system/gsd/gsd.php:54) at plgSystemGSD->onBeforeCompileHead() (/home/www/tdcred.com/libraries/src/Plugin/CMSPlugin.php:284) at Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}(object(Event)) (/home/www/tdcred.com/libraries/vendor/joomla/event/src/Dispatcher.php:486) at Joomla\Event\Dispatcher->dispatch('onBeforeCompileHead', object(Event)) (/home/www/tdcred.com/libraries/src/Application/EventAware.php:111) at Joomla\CMS\Application\WebApplication->triggerEvent('onBeforeCompileHead') (/home/www/tdcred.com/libraries/src/Document/Renderer/Html/MetasRenderer.php:61) at Joomla\CMS\Document\Renderer\Html\MetasRenderer->render(null, array(), null) (/home/www/tdcred.com/libraries/src/Document/HtmlDocument.php:566) at Joomla\CMS\Document\HtmlDocument->getBuffer('metas', null, array()) (/home/www/tdcred.com/libraries/src/Document/HtmlDocument.php:853) at Joomla\CMS\Document\HtmlDocument->_renderTemplate() (/home/www/tdcred.com/libraries/src/Document/HtmlDocument.php:638) at Joomla\CMS\Document\HtmlDocument->render(false, array('template' => 'nuron', 'file' => 'index.php', 'directory' => '/home/www/tdcred.com/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry))) (/home/www/tdcred.com/plugins/system/forseo/platform/helpers/errorpages/j4renderer.php:100) at Weeblr\Forseo\Platform\Helpers\Errorpages\J4renderer->renderDocument(object(Rule), object(Exception), array('/canales/naranja/club-atletico-la-falda-cumple-101-de-vida-institucional' => 'Club Atlético La Falda cumple 101 de vida institucional', '/canales/magenta/exitosa-cena-de-club-atletico-la-falda-en-hotel-fatsa' => 'Exitosa cena de Club Atlético La Falda en Hotel FATSA', '/canales/naranja/club-atletico-la-falda-remontando-una-adversa-situacion-financiera' => 'Club Atlético La Falda: remontando una adversa situación financiera', '/canales/magenta/flota-circo-tolteca-en-club-atletico-la-falda' => 'Comuniones del sabado 11 en Parroquia Santísimo Sacramento')) (/home/www/tdcred.com/plugins/system/forseo/platform/helpers/errorpages/renderer.php:103) at Weeblr\Forseo\Platform\Helpers\Errorpages\Renderer->render(object(Rule), object(Exception), object(Page)) (/home/www/tdcred.com/plugins/system/forseo/vendor/weeblr/forseo/helper/errorpage.php:62) at Weeblr\Forseo\Helper\Errorpage->render(array(object(Rule), object(Rule)), object(Exception), object(Page)) (/home/www/tdcred.com/plugins/system/forseo/vendor/weeblr/forseo/controller/pagedatacollector.php:928) at Weeblr\Forseo\Controller\Pagedatacollector->onError(object(Exception)) at call_user_func_array(array(object(Pagedatacollector), 'onError'), array(object(Exception))) (/home/www/tdcred.com/plugins/system/forseo/vendor/weeblr/wblib/v2/packages/platform/joomla/platform.php:1911) at Weeblr\Wblib\Forseo\Platform\JoomlaPlatform->executeHook(false, array(object(Exception))) (/home/www/tdcred.com/plugins/system/forseo/vendor/weeblr/wblib/v2/packages/system/hook.php:173) at Weeblr\Wblib\Forseo\System\Hook->execute(false, array('forseo_on_404_error', object(Exception))) (/home/www/tdcred.com/plugins/system/forseo/vendor/weeblr/wblib/v2/packages/system/hook.php:116) at Weeblr\Wblib\Forseo\System\Hook->run('forseo_on_404_error', object(Exception)) (/home/www/tdcred.com/plugins/system/forseo/vendor/weeblr/forseo/controller/error.php:141) at Weeblr\Forseo\Controller\Error->errorHandler(object(Exception)) at call_user_func_array(array(object(Error), 'errorHandler'), array(object(Exception))) (/home/www/tdcred.com/plugins/system/forseo/platform/errorhandlerj4.php:82) at Weeblr\Forseo\Platform\Errorhandlerj4->handleError(object(ErrorEvent)) (/home/www/tdcred.com/libraries/vendor/joomla/event/src/Dispatcher.php:486) at Joomla\Event\Dispatcher->dispatch('onError', object(ErrorEvent)) (/home/www/tdcred.com/libraries/src/Application/EventAware.php:111) at Joomla\CMS\Application\WebApplication->triggerEvent('onError', object(ErrorEvent)) (/home/www/tdcred.com/libraries/src/Application/CMSApplication.php:320) at Joomla\CMS\Application\CMSApplication->execute() (/home/www/tdcred.com/includes/app.php:61) at require_once('/home/www/tdcred.com/includes/app.php') (/home/www/tdcred.com/index.php:32) |