'isPartOf' => ['@id' => $baseId . 'WebPage/base'],
'name' => htmlentities($menu->title),
'blogPost' => [],
];
if ($menu->getParams()->get('menu-meta_description')) {
$additionalSchema['description'] = htmlentities($menu->getParams()->get('menu-meta_description'));
}
$model = $component->createModel($view, 'Site');
$coptions['nomodules'] = $woptions['nomodules'] ?? 1;
ob_start();
ob_implicit_flush(false);
$result = \call_user_func_array($callback, $referenceArgs);
$output = ob_get_clean();
$data = ['result' => $result];
if ($wrkarounds) {
$articleSchema['isPartOf'] = ['@id' => $baseId . 'WebPage/base'];
return [$articleSchema];
}, [$id]);
} elseif (\in_array($view, ['category', 'featured', 'archive'])) {
$additionalSchemas = $cache->get(function ($view, $id) use ($component, $baseId, $app, $db) {
$menu = $app->getMenu()->getActive();
$schemaId = $baseId . 'com_content/' . $view . ($view == 'category' ? '/' . $id : '');
$additionalSchemas = [];
$schema = $event->getSchema();
[$extension, $view, $id] = explode('.', $context);
if ($extension === 'com_content' && $this->params->get('schema_content', 1)) {
$this->injectContentSchema($context, $schema);
} elseif ($extension === 'com_contact' && $this->params->get('schema_contact', 1)) {
$this->injectContactSchema($context, $schema);
}
}
foreach ($this->listeners[$event->getName()] as $listener) {
if ($event->isStopped()) {
return $event;
}
$listener($event);
}
}
return $event;
}
'subject' => $schema,
'context' => $context . '.' . $itemId,
]);
PluginHelper::importPlugin('schemaorg', null, true, $dispatcher);
$dispatcher->dispatch('onSchemaBeforeCompileHead', $event);
$data = $schema->get('@graph');
foreach ($data as $key => $entry) {
$data[$key] = $this->cleanupSchema($entry);
foreach ($this->listeners[$event->getName()] as $listener) {
if ($event->isStopped()) {
return $event;
}
$listener($event);
}
}
return $event;
}
$asset->onAttachCallback($this->_doc);
}
}
// Trigger the onBeforeCompileHead event
$app->getDispatcher()->dispatch(
'onBeforeCompileHead',
new BeforeCompileHeadEvent('onBeforeCompileHead', ['subject' => $app, 'document' => $this->_doc])
);
// Add Script Options as inline asset
$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
*
ob_end_clean();
}
$this->getDocument()->setTitle(Text::_('Error') . ': ' . $error->getCode());
return $this->getDocument()->render(
false,
[
'template' => $template->template,
'directory' => JPATH_THEMES,
'debug' => JDEBUG,
'subject' => $app,
'document' => $renderer->getDocument(),
])
);
$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->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 dirname(__FILE__) . '/includes/app.php';
'isPartOf' => ['@id' => $baseId . 'WebPage/base'],
'name' => htmlentities($menu->title),
'blogPost' => [],
];
if ($menu->getParams()->get('menu-meta_description')) {
$additionalSchema['description'] = htmlentities($menu->getParams()->get('menu-meta_description'));
}
$model = $component->createModel($view, 'Site');
$coptions['nomodules'] = $woptions['nomodules'] ?? 1;
ob_start();
ob_implicit_flush(false);
$result = \call_user_func_array($callback, $referenceArgs);
$output = ob_get_clean();
$data = ['result' => $result];
if ($wrkarounds) {
$articleSchema['isPartOf'] = ['@id' => $baseId . 'WebPage/base'];
return [$articleSchema];
}, [$id]);
} elseif (\in_array($view, ['category', 'featured', 'archive'])) {
$additionalSchemas = $cache->get(function ($view, $id) use ($component, $baseId, $app, $db) {
$menu = $app->getMenu()->getActive();
$schemaId = $baseId . 'com_content/' . $view . ($view == 'category' ? '/' . $id : '');
$additionalSchemas = [];
$schema = $event->getSchema();
[$extension, $view, $id] = explode('.', $context);
if ($extension === 'com_content' && $this->params->get('schema_content', 1)) {
$this->injectContentSchema($context, $schema);
} elseif ($extension === 'com_contact' && $this->params->get('schema_contact', 1)) {
$this->injectContactSchema($context, $schema);
}
}
foreach ($this->listeners[$event->getName()] as $listener) {
if ($event->isStopped()) {
return $event;
}
$listener($event);
}
}
return $event;
}
'subject' => $schema,
'context' => $context . '.' . $itemId,
]);
PluginHelper::importPlugin('schemaorg', null, true, $dispatcher);
$dispatcher->dispatch('onSchemaBeforeCompileHead', $event);
$data = $schema->get('@graph');
foreach ($data as $key => $entry) {
$data[$key] = $this->cleanupSchema($entry);
foreach ($this->listeners[$event->getName()] as $listener) {
if ($event->isStopped()) {
return $event;
}
$listener($event);
}
}
return $event;
}
$asset->onAttachCallback($this->_doc);
}
}
// Trigger the onBeforeCompileHead event
$app->getDispatcher()->dispatch(
'onBeforeCompileHead',
new BeforeCompileHeadEvent('onBeforeCompileHead', ['subject' => $app, 'document' => $this->_doc])
);
// Add Script Options as inline asset
* @since 3.5
*/
public function render($head, $params = [], $content = null)
{
$buffer = '';
$buffer .= $this->_doc->loadRenderer('metas')->render($head, $params, $content);
$buffer .= $this->_doc->loadRenderer('styles')->render($head, $params, $content);
$buffer .= $this->_doc->loadRenderer('scripts')->render($head, $params, $content);
return $buffer;
}
$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;
}
if ($this->isClient('site') && $this->get('caching') && $this->get('caching', 2) == 2 && !Factory::getUser()->get('id')) {
$caching = true;
}
// Render the document.
$data = $this->document->render($caching, $this->docOptions);
// Set the application output data.
$this->setBody($data);
// Trigger the onAfterRender event.
$this->set('themeInherits', $template->parent);
break;
}
parent::render();
}
/**
* Route the application.
*
$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();
}
// If gzip compression is enabled in configuration and the server is compliant, compress the output.
if ($this->get('gzip') && !ini_get('zlib.output_compression') && ini_get('output_handler') !== 'ob_gzhandler') {
$this->compress();
// 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';
[2/2]
Error
|
---|
Error: Call to a member function getParams() on null at /home/invideov/ivvjoomla5/plugins/content/joomla/src/Extension/Joomla.php:323 at Joomla\Plugin\Content\Joomla\Extension\Joomla->Joomla\Plugin\Content\Joomla\Extension\{closure}('category', '62') (/home/invideov/ivvjoomla5/libraries/src/Cache/Controller/CallbackController.php:120) at Joomla\CMS\Cache\Controller\CallbackController->get(object(Closure), array('category', '62')) (/home/invideov/ivvjoomla5/plugins/content/joomla/src/Extension/Joomla.php:309) at Joomla\Plugin\Content\Joomla\Extension\Joomla->injectContentSchema('com_content.category.62', object(Registry)) (/home/invideov/ivvjoomla5/plugins/content/joomla/src/Extension/Joomla.php:240) at Joomla\Plugin\Content\Joomla\Extension\Joomla->onSchemaBeforeCompileHead(object(BeforeCompileHeadEvent)) (/home/invideov/ivvjoomla5/libraries/vendor/joomla/event/src/Dispatcher.php:454) at Joomla\Event\Dispatcher->dispatch('onSchemaBeforeCompileHead', object(BeforeCompileHeadEvent)) (/home/invideov/ivvjoomla5/plugins/system/schemaorg/src/Extension/Schemaorg.php:431) at Joomla\Plugin\System\Schemaorg\Extension\Schemaorg->onBeforeCompileHead(object(BeforeCompileHeadEvent)) (/home/invideov/ivvjoomla5/libraries/vendor/joomla/event/src/Dispatcher.php:454) at Joomla\Event\Dispatcher->dispatch('onBeforeCompileHead', object(BeforeCompileHeadEvent)) (/home/invideov/ivvjoomla5/libraries/src/Document/Renderer/Html/MetasRenderer.php:62) at Joomla\CMS\Document\Renderer\Html\MetasRenderer->render(null, array(), null) (/home/invideov/ivvjoomla5/libraries/src/Document/HtmlDocument.php:575) at Joomla\CMS\Document\HtmlDocument->getBuffer('metas', null, array()) (/home/invideov/ivvjoomla5/libraries/src/Document/HtmlDocument.php:894) at Joomla\CMS\Document\HtmlDocument->_renderTemplate() (/home/invideov/ivvjoomla5/libraries/src/Document/HtmlDocument.php:647) at Joomla\CMS\Document\HtmlDocument->render(false, array('template' => 'ivv_accueil', 'directory' => '/home/invideov/ivvjoomla5/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/home/invideov/ivvjoomla5/libraries/src/Document/ErrorDocument.php:139) at Joomla\CMS\Document\ErrorDocument->render(false, array('template' => 'ivv_accueil', 'directory' => '/home/invideov/ivvjoomla5/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/home/invideov/ivvjoomla5/libraries/src/Error/Renderer/HtmlRenderer.php:70) at Joomla\CMS\Error\Renderer\HtmlRenderer->render(object(Error)) (/home/invideov/ivvjoomla5/libraries/src/Exception/ExceptionHandler.php:136) at Joomla\CMS\Exception\ExceptionHandler::render(object(Error)) (/home/invideov/ivvjoomla5/libraries/src/Exception/ExceptionHandler.php:73) at Joomla\CMS\Exception\ExceptionHandler::handleException(object(Error)) (/home/invideov/ivvjoomla5/libraries/src/Application/CMSApplication.php:336) at Joomla\CMS\Application\CMSApplication->execute() (/home/invideov/ivvjoomla5/includes/app.php:58) at require_once('/home/invideov/ivvjoomla5/includes/app.php') (/home/invideov/ivvjoomla5/index.php:32) |
[1/2]
Error
|
---|
Error: Call to a member function getParams() on null at /home/invideov/ivvjoomla5/plugins/content/joomla/src/Extension/Joomla.php:323 at Joomla\Plugin\Content\Joomla\Extension\Joomla->Joomla\Plugin\Content\Joomla\Extension\{closure}('category', '62') (/home/invideov/ivvjoomla5/libraries/src/Cache/Controller/CallbackController.php:120) at Joomla\CMS\Cache\Controller\CallbackController->get(object(Closure), array('category', '62')) (/home/invideov/ivvjoomla5/plugins/content/joomla/src/Extension/Joomla.php:309) at Joomla\Plugin\Content\Joomla\Extension\Joomla->injectContentSchema('com_content.category.62', object(Registry)) (/home/invideov/ivvjoomla5/plugins/content/joomla/src/Extension/Joomla.php:240) at Joomla\Plugin\Content\Joomla\Extension\Joomla->onSchemaBeforeCompileHead(object(BeforeCompileHeadEvent)) (/home/invideov/ivvjoomla5/libraries/vendor/joomla/event/src/Dispatcher.php:454) at Joomla\Event\Dispatcher->dispatch('onSchemaBeforeCompileHead', object(BeforeCompileHeadEvent)) (/home/invideov/ivvjoomla5/plugins/system/schemaorg/src/Extension/Schemaorg.php:431) at Joomla\Plugin\System\Schemaorg\Extension\Schemaorg->onBeforeCompileHead(object(BeforeCompileHeadEvent)) (/home/invideov/ivvjoomla5/libraries/vendor/joomla/event/src/Dispatcher.php:454) at Joomla\Event\Dispatcher->dispatch('onBeforeCompileHead', object(BeforeCompileHeadEvent)) (/home/invideov/ivvjoomla5/libraries/src/Document/Renderer/Html/MetasRenderer.php:62) at Joomla\CMS\Document\Renderer\Html\MetasRenderer->render(null, array(), null) (/home/invideov/ivvjoomla5/libraries/src/Document/Renderer/Html/HeadRenderer.php:39) at Joomla\CMS\Document\Renderer\Html\HeadRenderer->render(null, array(), null) (/home/invideov/ivvjoomla5/libraries/src/Document/HtmlDocument.php:575) at Joomla\CMS\Document\HtmlDocument->getBuffer('head', null, array()) (/home/invideov/ivvjoomla5/libraries/src/Document/HtmlDocument.php:894) at Joomla\CMS\Document\HtmlDocument->_renderTemplate() (/home/invideov/ivvjoomla5/libraries/src/Document/HtmlDocument.php:647) at Joomla\CMS\Document\HtmlDocument->render(false, array('template' => 'ivv_accueil', 'file' => 'index.php', 'params' => object(Registry), 'csp_nonce' => null, 'templateInherits' => null, 'directory' => '/home/invideov/ivvjoomla5/templates')) (/home/invideov/ivvjoomla5/libraries/src/Application/CMSApplication.php:1073) at Joomla\CMS\Application\CMSApplication->render() (/home/invideov/ivvjoomla5/libraries/src/Application/SiteApplication.php:732) at Joomla\CMS\Application\SiteApplication->render() (/home/invideov/ivvjoomla5/libraries/src/Application/CMSApplication.php:311) at Joomla\CMS\Application\CMSApplication->execute() (/home/invideov/ivvjoomla5/includes/app.php:58) at require_once('/home/invideov/ivvjoomla5/includes/app.php') (/home/invideov/ivvjoomla5/index.php:32) |