$webPageSchema['inLanguage'] = $app->getLanguage()->getTag();
// Support Breadcrumb Schema linking
try {
try {
$breadcrumbsAsset = $wa->getRegistry()->get('script', 'inline.breadcrumbs-schemaorg');
} catch (UnknownAssetException $e) {
// Fallback for older versions of the breadcrumbs module
$breadcrumbsAsset = $wa->getRegistry()->get('script', 'inline.mod_breadcrumbs-schemaorg');
trigger_deprecation(
'joomla/schemaorg',
foreach ($this->listeners[$event->getName()] as $listener) {
if ($event->isStopped()) {
return $event;
}
$listener($event);
}
}
return $event;
}
// Check for AttachBehavior
$onAttachCallCache = WebAssetManager::callOnAttachCallback($wa->getAssets('script', true), $this->_doc);
// Trigger the onBeforeCompileHead event
$app->getDispatcher()->dispatch(
'onBeforeCompileHead',
new BeforeCompileHeadEvent('onBeforeCompileHead', ['subject' => $app, 'document' => $this->_doc])
);
// Re-Check for AttachBehavior for newly added assets
*
* @since 3.5
*/
public function render($head, $params = [], $content = null)
{
return $this->_doc->loadRenderer('metas')->render($head, $params, $content)
. $this->_doc->loadRenderer('styles')->render($head, $params, $content)
. $this->_doc->loadRenderer('scripts')->render($head, $params, $content);
}
}
$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
*
);
// Trigger the onError event.
$this->dispatchEvent('onError', $event);
ExceptionHandler::handleException($event->getError());
}
// Trigger the onBeforeRespond event.
$this->dispatchEvent(
'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 __DIR__ . '/includes/app.php';
/**
* Content Component Article Model
*
* @since 1.5
*/
class ArticleModel extends ItemModel
{
/**
* Model context string.
*
* @var string
*
* @param string $file
* @return void
*/
self::$includeFile = \Closure::bind(static function($file) {
include $file;
}, null, null);
}
}
*/
public function loadClass($class)
{
if ($file = $this->findFile($class)) {
$includeFile = self::$includeFile;
$includeFile($file);
return true;
}
return null;
*
* @since 3.4
*/
public function loadClass($class)
{
if ($result = $this->loader->loadClass($class)) {
\JLoader::applyAliasFor($class);
}
return $result;
}
throw new \Exception(Text::sprintf('JLIB_APPLICATION_ERROR_UNHELD_ID', $id), 403);
}
if ($vName === 'article' && \in_array($this->input->getMethod(), ['GET', 'POST'])) {
// Get/Create the model
if ($model = $this->getModel($vName)) {
if (ComponentHelper::getParams('com_content')->get('record_hits', 1) == 1) {
$model->hit();
}
}
}
$config['name'] = strtolower($this->input->get('controller'));
}
// Execute the task for this component
$controller = $this->getController($controller, ucfirst($this->app->getName()), $config);
$controller->execute($task);
$controller->redirect();
}
/**
* Get a controller from the component
return;
}
}
parent::dispatch();
}
}
$this->dispatchEvent(
'onAfterInitialiseDocument',
new AfterInitialiseDocumentEvent('onAfterInitialiseDocument', ['subject' => $this, 'document' => $document])
);
$contents = ComponentHelper::renderComponent($component);
$document->setBuffer($contents, ['type' => 'component']);
// Trigger the onAfterDispatch event.
$this->dispatchEvent(
'onAfterDispatch',
['option' => 'com_users', 'task' => 'method.save'],
]);
}
// Dispatch the application
$this->dispatch();
// Mark afterDispatch in the profiler.
JDEBUG ? $this->profiler->mark('afterDispatch') : null;
}
$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 __DIR__ . '/includes/app.php';
[2/2]
ClassNotFoundError
|
---|
Symfony\Component\ErrorHandler\Error\ClassNotFoundError: Attempted to load class "UnknownAssetException" from namespace "Joomla\CMS\WebAsset\Exception". Did you forget a "use" statement for another namespace? at /www/htdocs/w00c9180/joomla5/libraries/src/WebAsset/WebAssetRegistry.php:135 at Joomla\CMS\WebAsset\WebAssetRegistry->get('script', 'inline.breadcrumbs-schemaorg') (/www/htdocs/w00c9180/joomla5/plugins/system/schemaorg/src/Extension/Schemaorg.php:393) at Joomla\Plugin\System\Schemaorg\Extension\Schemaorg->onBeforeCompileHead(object(BeforeCompileHeadEvent)) (/www/htdocs/w00c9180/joomla5/libraries/vendor/joomla/event/src/Dispatcher.php:454) at Joomla\Event\Dispatcher->dispatch('onBeforeCompileHead', object(BeforeCompileHeadEvent)) (/www/htdocs/w00c9180/joomla5/libraries/src/Document/Renderer/Html/MetasRenderer.php:62) at Joomla\CMS\Document\Renderer\Html\MetasRenderer->render(null, array(), null) (/www/htdocs/w00c9180/joomla5/libraries/src/Document/Renderer/Html/HeadRenderer.php:38) at Joomla\CMS\Document\Renderer\Html\HeadRenderer->render(null, array(), null) (/www/htdocs/w00c9180/joomla5/libraries/src/Document/HtmlDocument.php:575) at Joomla\CMS\Document\HtmlDocument->getBuffer('head', null, array()) (/www/htdocs/w00c9180/joomla5/libraries/src/Document/HtmlDocument.php:894) at Joomla\CMS\Document\HtmlDocument->_renderTemplate() (/www/htdocs/w00c9180/joomla5/libraries/src/Document/HtmlDocument.php:647) at Joomla\CMS\Document\HtmlDocument->render(false, array('template' => 'proaudio', 'directory' => '/www/htdocs/w00c9180/joomla5/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/www/htdocs/w00c9180/joomla5/libraries/src/Document/ErrorDocument.php:139) at Joomla\CMS\Document\ErrorDocument->render(false, array('template' => 'proaudio', 'directory' => '/www/htdocs/w00c9180/joomla5/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/www/htdocs/w00c9180/joomla5/libraries/src/Error/Renderer/HtmlRenderer.php:70) at Joomla\CMS\Error\Renderer\HtmlRenderer->render(object(Error)) (/www/htdocs/w00c9180/joomla5/libraries/src/Exception/ExceptionHandler.php:139) at Joomla\CMS\Exception\ExceptionHandler::render(object(Error)) (/www/htdocs/w00c9180/joomla5/libraries/src/Exception/ExceptionHandler.php:73) at Joomla\CMS\Exception\ExceptionHandler::handleException(object(Error)) (/www/htdocs/w00c9180/joomla5/libraries/src/Application/CMSApplication.php:334) at Joomla\CMS\Application\CMSApplication->execute() (/www/htdocs/w00c9180/joomla5/includes/app.php:58) at require_once('/www/htdocs/w00c9180/joomla5/includes/app.php') (/www/htdocs/w00c9180/joomla5/index.php:32) |
[1/2]
Error
|
---|
Error: Class "Joomla\CMS\MVC\Model\ItemModel" not found at /www/htdocs/w00c9180/joomla5/components/com_content/src/Model/ArticleModel.php:32 at include() (/www/htdocs/w00c9180/joomla5/libraries/vendor/composer/ClassLoader.php:576) at Composer\Autoload\{closure}('/www/htdocs/w00c9180/joomla5/components/com_content/src/Model/ArticleModel.php') (/www/htdocs/w00c9180/joomla5/libraries/vendor/composer/ClassLoader.php:427) at Composer\Autoload\ClassLoader->loadClass('Joomla\\Component\\Content\\Site\\Model\\ArticleModel') (/www/htdocs/w00c9180/joomla5/libraries/src/Autoload/ClassLoader.php:59) at Joomla\CMS\Autoload\ClassLoader->loadClass('Joomla\\Component\\Content\\Site\\Model\\ArticleModel') at class_exists('Joomla\\Component\\Content\\Site\\Model\\ArticleModel') (/www/htdocs/w00c9180/joomla5/libraries/src/MVC/Factory/MVCFactory.php:299) at Joomla\CMS\MVC\Factory\MVCFactory->getClassName('Model\\ArticleModel', 'site') (/www/htdocs/w00c9180/joomla5/libraries/src/MVC/Factory/MVCFactory.php:156) at Joomla\CMS\MVC\Factory\MVCFactory->createModel('article', 'site', array()) (/www/htdocs/w00c9180/joomla5/libraries/src/MVC/Controller/BaseController.php:574) at Joomla\CMS\MVC\Controller\BaseController->createModel('article', 'site', array()) (/www/htdocs/w00c9180/joomla5/libraries/src/MVC/Controller/BaseController.php:761) at Joomla\CMS\MVC\Controller\BaseController->getModel('article') (/www/htdocs/w00c9180/joomla5/components/com_content/src/Controller/DisplayController.php:115) at Joomla\Component\Content\Site\Controller\DisplayController->display() (/www/htdocs/w00c9180/joomla5/libraries/src/MVC/Controller/BaseController.php:730) at Joomla\CMS\MVC\Controller\BaseController->execute('display') (/www/htdocs/w00c9180/joomla5/libraries/src/Dispatcher/ComponentDispatcher.php:143) at Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() (/www/htdocs/w00c9180/joomla5/components/com_content/src/Dispatcher/Dispatcher.php:56) at Joomla\Component\Content\Site\Dispatcher\Dispatcher->dispatch() (/www/htdocs/w00c9180/joomla5/libraries/src/Component/ComponentHelper.php:361) at Joomla\CMS\Component\ComponentHelper::renderComponent('com_content') (/www/htdocs/w00c9180/joomla5/libraries/src/Application/SiteApplication.php:217) at Joomla\CMS\Application\SiteApplication->dispatch() (/www/htdocs/w00c9180/joomla5/libraries/src/Application/SiteApplication.php:271) at Joomla\CMS\Application\SiteApplication->doExecute() (/www/htdocs/w00c9180/joomla5/libraries/src/Application/CMSApplication.php:304) at Joomla\CMS\Application\CMSApplication->execute() (/www/htdocs/w00c9180/joomla5/includes/app.php:58) at require_once('/www/htdocs/w00c9180/joomla5/includes/app.php') (/www/htdocs/w00c9180/joomla5/index.php:32) |