Exception Exception

HTTP 500 Whoops, looks like something went wrong.

Article introuvable

Exceptions 2

Exception

  1.                 $db->setQuery($query);
  2.                 $data $db->loadObject();
  3.                 if (empty($data)) {
  4.                     throw new \Exception(Text::_('COM_CONTENT_ERROR_ARTICLE_NOT_FOUND'), 404);
  5.                 }
  6.                 // Check for published state if filter set.
  7.                 if ((is_numeric($published) || is_numeric($archived)) && ($data->state != $published && $data->state != $archived)) {
  8.                     throw new \Exception(Text::_('COM_CONTENT_ERROR_ARTICLE_NOT_FOUND'), 404);
  1.         // Add article data
  2.         if ($view == 'article' && $id 0) {
  3.             $additionalSchemas $cache->get(function ($id) use ($component$baseId) {
  4.                 $model $component->createModel('Article''Site');
  5.                 $article $model->getItem($id);
  6.                 if (empty($article->id)) {
  7.                     return;
  8.                 }
Joomla->Joomla\Plugin\Content\Joomla\Extension\{closure}() in /home/vava2883/public_html/libraries/src/Cache/Controller/CallbackController.php (line 120)
  1.         $coptions['nomodules'] = $woptions['nomodules'] ?? 1;
  2.         ob_start();
  3.         ob_implicit_flush(false);
  4.         $result \call_user_func_array($callback$referenceArgs);
  5.         $output ob_get_clean();
  6.         $data = ['result' => $result];
  7.         if ($wrkarounds) {
  1.                 $articleSchema $this->createArticleSchema($article);
  2.                 $articleSchema['isPartOf'] = ['@id' => $baseId 'WebPage/base'];
  3.                 return [$articleSchema];
  4.             }, [$id]);
  5.         } elseif (\in_array($view, ['category''featured''archive'])) {
  6.             $additionalSchemas $cache->get(function ($view$id) use ($component$baseId$app$db) {
  7.                 $menu $app->getMenu()->getActive();
  8.                 $schemaId $baseId 'com_content/' $view . ($view == 'category' '/' $id '');
  1.         $schema  $event->getSchema();
  2.         [$extension$view$id] = explode('.'$context);
  3.         if ($extension === 'com_content' && $this->params->get('schema_content'1)) {
  4.             $this->injectContentSchema($context$schema);
  5.         } elseif ($extension === 'com_contact' && $this->params->get('schema_contact'1)) {
  6.             $this->injectContactSchema($context$schema);
  7.         }
  8.     }
  1.             foreach ($this->listeners[$event->getName()] as $listener) {
  2.                 if ($event->isStopped()) {
  3.                     return $event;
  4.                 }
  5.                 $listener($event);
  6.             }
  7.         }
  8.         return $event;
  9.     }
  1.             'subject' => $schema,
  2.             'context' => $context '.' $itemId,
  3.         ]);
  4.         PluginHelper::importPlugin('schemaorg'nulltrue$dispatcher);
  5.         $dispatcher->dispatch('onSchemaBeforeCompileHead'$event);
  6.         $data $schema->get('@graph');
  7.         foreach ($data as $key => $entry) {
  8.             $data[$key] = $this->cleanupSchema($entry);
  1.             foreach ($this->listeners[$event->getName()] as $listener) {
  2.                 if ($event->isStopped()) {
  3.                     return $event;
  4.                 }
  5.                 $listener($event);
  6.             }
  7.         }
  8.         return $event;
  9.     }
  1.         }
  2.         // Trigger the onBeforeCompileHead event
  3.         $app->getDispatcher()->dispatch(
  4.             'onBeforeCompileHead',
  5.             new BeforeCompileHeadEvent('onBeforeCompileHead', ['subject' => $app'document' => $this->_doc])
  6.         );
  7.         // Add Script Options as inline asset
  8.         $scriptOptions $this->_doc->getScriptOptions();
  1.             $cbuffer[$hash] = $tmpdata;
  2.             $cache->store($cbuffer'cbuffer_' $type);
  3.         } else {
  4.             $this->setBuffer($renderer->render($name$attribsnull), $type$name$title);
  5.         }
  6.         return parent::$_buffer[$type][$name][$title];
  7.     }
  1.         $replace = [];
  2.         $with    = [];
  3.         foreach ($this->_template_tags as $jdoc => $args) {
  4.             $replace[] = $jdoc;
  5.             $with[]    = $this->getBuffer($args['type'], $args['name'], $args['attribs']);
  6.         }
  7.         return str_replace($replace$with$this->_template);
  8.     }
  9. }
HtmlDocument->_renderTemplate() in /home/vava2883/public_html/libraries/src/Document/HtmlDocument.php (line 647)
  1.         if (\array_key_exists('csp_nonce'$params) && $params['csp_nonce'] !== null) {
  2.             $this->cspNonce $params['csp_nonce'];
  3.         }
  4.         $data $this->_renderTemplate();
  5.         parent::render($caching$params);
  6.         return $data;
  7.     }
  1.         $this->debug $params['debug'] ?? false;
  2.         $this->error $this->_error;
  3.         $params['file'] = 'error.php';
  4.         return parent::render($cache$params);
  5.     }
  6.     /**
  7.      * Render the backtrace
  8.      *
  1.                 'template'         => $template->template,
  2.                 'directory'        => JPATH_THEMES,
  3.                 'debug'            => JDEBUG,
  4.                 'csp_nonce'        => $app->get('csp_nonce'),
  5.                 'templateInherits' => $template->parent,
  6.                 'params'           => $template->params,
  7.             ]
  8.         );
  9.     }
  10. }
  1.                     'subject'  => $app,
  2.                     'document' => $renderer->getDocument(),
  3.                 ])
  4.             );
  5.             $data $renderer->render($error);
  6.             // If nothing was rendered, just use the message from the Exception
  7.             if (empty($data)) {
  8.                 $data $error->getMessage();
  9.             }
  1.      * @since   3.10.0
  2.      */
  3.     public static function handleException(\Throwable $error)
  4.     {
  5.         static::logException($error);
  6.         static::render($error);
  7.     }
  8.     /**
  9.      * Render the error page based on an exception.
  10.      *
ExceptionHandler::handleException() in /home/vava2883/public_html/libraries/src/Application/CMSApplication.php (line 336)
  1.             );
  2.             // Trigger the onError event.
  3.             $this->dispatchEvent('onError'$event);
  4.             ExceptionHandler::handleException($event->getError());
  5.         }
  6.         // Trigger the onBeforeRespond event.
  7.         $this->dispatchEvent(
  8.             'onBeforeRespond',
CMSApplication->execute() in /home/vava2883/public_html/includes/app.php (line 58)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/home/vava2883/public_html/includes/app.php') in /home/vava2883/public_html/index.php (line 32)
  1.  * define() is used rather than "const" to not error for PHP 5.2 and lower
  2.  */
  3. define('_JEXEC'1);
  4. // Run the application - All executable code should be triggered through this file
  5. require_once dirname(__FILE__) . '/includes/app.php';

Exception

Article introuvable

  1.                 $db->setQuery($query);
  2.                 $data $db->loadObject();
  3.                 if (empty($data)) {
  4.                     throw new \Exception(Text::_('COM_CONTENT_ERROR_ARTICLE_NOT_FOUND'), 404);
  5.                 }
  6.                 // Check for published state if filter set.
  7.                 if ((is_numeric($published) || is_numeric($archived)) && ($data->state != $published && $data->state != $archived)) {
  8.                     throw new \Exception(Text::_('COM_CONTENT_ERROR_ARTICLE_NOT_FOUND'), 404);
  1.             $method 'get' ucfirst($property);
  2.             // Does the method exist?
  3.             if (method_exists($this->_models[$model], $method)) {
  4.                 // The method exists, let's call it and return what we get
  5.                 return $this->_models[$model]->$method();
  6.             }
  7.         }
  8.         return $this->legacyGet($property$default);
  9.     }
  1.         }
  2.         $app  Factory::getApplication();
  3.         $user $this->getCurrentUser();
  4.         $this->item  $this->get('Item');
  5.         $this->print $app->getInput()->getBool('print'false);
  6.         $this->state $this->get('State');
  7.         $this->user  $user;
  8.         // Check for errors.
  1.                 $cache->get($view'display');
  2.             } catch (CacheExceptionInterface $exception) {
  3.                 $view->display();
  4.             }
  5.         } else {
  6.             $view->display();
  7.         }
  8.         return $this;
  9.     }
  1.                     $model->hit();
  2.                 }
  3.             }
  4.         }
  5.         parent::display($cachable$safeurlparams);
  6.         return $this;
  7.     }
  8. }
  1.         }
  2.         // Record the actual task being fired
  3.         $this->doTask $doTask;
  4.         return $this->$doTask();
  5.     }
  6.     /**
  7.      * Method to get a model object, loading it if required.
  8.      *
  1.             $config['name'] = strtolower($this->input->get('controller'));
  2.         }
  3.         // Execute the task for this component
  4.         $controller $this->getController($controllerucfirst($this->app->getName()), $config);
  5.         $controller->execute($task);
  6.         $controller->redirect();
  7.     }
  8.     /**
  9.      * Get a controller from the component
  1.                 return;
  2.             }
  3.         }
  4.         parent::dispatch();
  5.     }
  6. }
  1.         if (!static::isEnabled($option)) {
  2.             throw new MissingComponentException(Text::_('JLIB_APPLICATION_ERROR_COMPONENT_NOT_FOUND'), 404);
  3.         }
  4.         ob_start();
  5.         $app->bootComponent($option)->getDispatcher($app)->dispatch();
  6.         $contents ob_get_clean();
  7.         // Revert the scope
  8.         $app->scope $scope;
  1.         $this->dispatchEvent(
  2.             'onAfterInitialiseDocument',
  3.             new AfterInitialiseDocumentEvent('onAfterInitialiseDocument', ['subject' => $this'document' => $document])
  4.         );
  5.         $contents ComponentHelper::renderComponent($component);
  6.         $document->setBuffer($contents, ['type' => 'component']);
  7.         // Trigger the onAfterDispatch event.
  8.         $this->dispatchEvent(
  9.             'onAfterDispatch',
  1.              */
  2.             $this->checkUserRequireReset('com_users''profile''edit''com_users/profile.save,com_users/profile.apply,com_users/user.logout');
  3.         }
  4.         // Dispatch the application
  5.         $this->dispatch();
  6.         // Mark afterDispatch in the profiler.
  7.         JDEBUG $this->profiler->mark('afterDispatch') : null;
  8.     }
  1.             $this->sanityCheckSystemVariables();
  2.             $this->setupLogging();
  3.             $this->createExtensionNamespaceMap();
  4.             // Perform application routines.
  5.             $this->doExecute();
  6.             // If we have an application document object, render it.
  7.             if ($this->document instanceof \Joomla\CMS\Document\Document) {
  8.                 // Render the application output.
  9.                 $this->render();
CMSApplication->execute() in /home/vava2883/public_html/includes/app.php (line 58)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/home/vava2883/public_html/includes/app.php') in /home/vava2883/public_html/index.php (line 32)
  1.  * define() is used rather than "const" to not error for PHP 5.2 and lower
  2.  */
  3. define('_JEXEC'1);
  4. // Run the application - All executable code should be triggered through this file
  5. require_once dirname(__FILE__) . '/includes/app.php';

Stack Traces 2

[2/2] Exception
Exception:
Article introuvable

  at /home/vava2883/public_html/components/com_content/src/Model/ArticleModel.php:218
  at Joomla\Component\Content\Site\Model\ArticleModel->getItem()
     (/home/vava2883/public_html/plugins/content/joomla/src/Extension/Joomla.php:294)
  at Joomla\Plugin\Content\Joomla\Extension\Joomla->Joomla\Plugin\Content\Joomla\Extension\{closure}()
     (/home/vava2883/public_html/libraries/src/Cache/Controller/CallbackController.php:120)
  at Joomla\CMS\Cache\Controller\CallbackController->get()
     (/home/vava2883/public_html/plugins/content/joomla/src/Extension/Joomla.php:307)
  at Joomla\Plugin\Content\Joomla\Extension\Joomla->injectContentSchema()
     (/home/vava2883/public_html/plugins/content/joomla/src/Extension/Joomla.php:240)
  at Joomla\Plugin\Content\Joomla\Extension\Joomla->onSchemaBeforeCompileHead()
     (/home/vava2883/public_html/libraries/vendor/joomla/event/src/Dispatcher.php:454)
  at Joomla\Event\Dispatcher->dispatch()
     (/home/vava2883/public_html/plugins/system/schemaorg/src/Extension/Schemaorg.php:431)
  at Joomla\Plugin\System\Schemaorg\Extension\Schemaorg->onBeforeCompileHead()
     (/home/vava2883/public_html/libraries/vendor/joomla/event/src/Dispatcher.php:454)
  at Joomla\Event\Dispatcher->dispatch()
     (/home/vava2883/public_html/libraries/src/Document/Renderer/Html/MetasRenderer.php:64)
  at Joomla\CMS\Document\Renderer\Html\MetasRenderer->render()
     (/home/vava2883/public_html/libraries/src/Document/HtmlDocument.php:575)
  at Joomla\CMS\Document\HtmlDocument->getBuffer()
     (/home/vava2883/public_html/libraries/src/Document/HtmlDocument.php:894)
  at Joomla\CMS\Document\HtmlDocument->_renderTemplate()
     (/home/vava2883/public_html/libraries/src/Document/HtmlDocument.php:647)
  at Joomla\CMS\Document\HtmlDocument->render()
     (/home/vava2883/public_html/libraries/src/Document/ErrorDocument.php:139)
  at Joomla\CMS\Document\ErrorDocument->render()
     (/home/vava2883/public_html/libraries/src/Error/Renderer/HtmlRenderer.php:78)
  at Joomla\CMS\Error\Renderer\HtmlRenderer->render()
     (/home/vava2883/public_html/libraries/src/Exception/ExceptionHandler.php:136)
  at Joomla\CMS\Exception\ExceptionHandler::render()
     (/home/vava2883/public_html/libraries/src/Exception/ExceptionHandler.php:73)
  at Joomla\CMS\Exception\ExceptionHandler::handleException()
     (/home/vava2883/public_html/libraries/src/Application/CMSApplication.php:336)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/home/vava2883/public_html/includes/app.php:58)
  at require_once('/home/vava2883/public_html/includes/app.php')
     (/home/vava2883/public_html/index.php:32)                
[1/2] Exception
Exception:
Article introuvable

  at /home/vava2883/public_html/components/com_content/src/Model/ArticleModel.php:218
  at Joomla\Component\Content\Site\Model\ArticleModel->getItem()
     (/home/vava2883/public_html/libraries/src/MVC/View/AbstractView.php:159)
  at Joomla\CMS\MVC\View\AbstractView->get()
     (/home/vava2883/public_html/components/com_content/src/View/Article/HtmlView.php:110)
  at Joomla\Component\Content\Site\View\Article\HtmlView->display()
     (/home/vava2883/public_html/libraries/src/MVC/Controller/BaseController.php:697)
  at Joomla\CMS\MVC\Controller\BaseController->display()
     (/home/vava2883/public_html/components/com_content/src/Controller/DisplayController.php:122)
  at Joomla\Component\Content\Site\Controller\DisplayController->display()
     (/home/vava2883/public_html/libraries/src/MVC/Controller/BaseController.php:730)
  at Joomla\CMS\MVC\Controller\BaseController->execute()
     (/home/vava2883/public_html/libraries/src/Dispatcher/ComponentDispatcher.php:143)
  at Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch()
     (/home/vava2883/public_html/components/com_content/src/Dispatcher/Dispatcher.php:56)
  at Joomla\Component\Content\Site\Dispatcher\Dispatcher->dispatch()
     (/home/vava2883/public_html/libraries/src/Component/ComponentHelper.php:361)
  at Joomla\CMS\Component\ComponentHelper::renderComponent()
     (/home/vava2883/public_html/libraries/src/Application/SiteApplication.php:218)
  at Joomla\CMS\Application\SiteApplication->dispatch()
     (/home/vava2883/public_html/libraries/src/Application/SiteApplication.php:261)
  at Joomla\CMS\Application\SiteApplication->doExecute()
     (/home/vava2883/public_html/libraries/src/Application/CMSApplication.php:306)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/home/vava2883/public_html/includes/app.php:58)
  at require_once('/home/vava2883/public_html/includes/app.php')
     (/home/vava2883/public_html/index.php:32)