'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) {
}
array_unshift($additionalSchemas, $additionalSchema);
return $additionalSchemas;
}, [$view, $id]);
}
if (!empty($additionalSchemas)) {
$mySchema['@graph'] = array_merge($mySchema['@graph'], $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;
}
}
// Trigger the onBeforeCompileHead event
$app->getDispatcher()->dispatch(
'onBeforeCompileHead',
new BeforeCompileHeadEvent('onBeforeCompileHead', ['subject' => $app, 'document' => $this->_doc])
);
// Add Script Options as inline asset
$scriptOptions = $this->_doc->getScriptOptions();
* @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;
}
if(file_exists($head)) {
require_once($head);
}
}
$header_renderer = new JDocumentRendererHead($doc);
$header_contents = $header_renderer->render(null);
//background image
$error_bg = '';
$hascs_bg = '';
if ($err_bg = $params->get('error_bg')) {
// Store the file path
$this->_file = $directory . '/' . $filename;
// Get the file content
ob_start();
require $directory . '/' . $filename;
$contents = ob_get_clean();
}
return $contents;
}
$this->baseurl = Uri::base(true);
$this->params = $params['params'] ?? new Registry();
$this->template = $template;
// Load
$this->_template = $this->_loadTemplate($baseDir, $file);
return $this;
}
/**
*
* @since 1.7.0
*/
public function parse($params = [])
{
return $this->_fetchTemplate($params)->_parseTemplate();
}
/**
* Outputs the template to the browser.
*
public function render($caching = false, $params = [])
{
$this->_caching = $caching;
if (empty($this->_template)) {
$this->parse($params);
}
if (\array_key_exists('csp_nonce', $params) && $params['csp_nonce'] !== null) {
$this->cspNonce = $params['csp_nonce'];
}
$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,
]
);
}
}
'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();
}
return false;
}
protected static function showStandardError($error) {
\Joomla\CMS\Exception\ExceptionHandler::render($error);
if (self::isJ4()) {
echo Factory::getApplication()->toString();
}
}
if (!$enable) {
// Add the URL to our database
rsseoHelper::saveUrl($error->getCode());
self::showStandardError($error);
$app->close(0);
}
// Backend errors
if ($app->isClient('administrator')) {
/**
* Method to handle custom error pages on Joomla! 4
*/
public static function onError($error) {
self::handleError($error);
}
/**
* Method to handle custom error pages
*/
}
// Convert to indexed array for unpacking.
$arguments = array_values($arguments);
$result = $this->{$methodName}(...$arguments);
// Ignore null results
if ($result === null) {
return;
}
foreach ($this->listeners[$event->getName()] as $listener) {
if ($event->isStopped()) {
return $event;
}
$listener($event);
}
}
return $event;
}
$dispatcher = $this->getDispatcher();
} catch (\UnexpectedValueException $exception) {
return null;
}
return $dispatcher->dispatch($eventName, $event ?: new ApplicationEvent($eventName, $this));
}
/**
* Method to run the application routines.
*
'application' => $this,
]
);
// Trigger the onError event.
$this->dispatchEvent('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';
'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) {
}
array_unshift($additionalSchemas, $additionalSchema);
return $additionalSchemas;
}, [$view, $id]);
}
if (!empty($additionalSchemas)) {
$mySchema['@graph'] = array_merge($mySchema['@graph'], $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;
}
}
// Trigger the onBeforeCompileHead event
$app->getDispatcher()->dispatch(
'onBeforeCompileHead',
new BeforeCompileHeadEvent('onBeforeCompileHead', ['subject' => $app, 'document' => $this->_doc])
);
// Add Script Options as inline asset
$scriptOptions = $this->_doc->getScriptOptions();
* @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/betty71/domains/wduchuswietym.com/public_html/plugins/content/joomla/src/Extension/Joomla.php:323 at Joomla\Plugin\Content\Joomla\Extension\Joomla->Joomla\Plugin\Content\Joomla\Extension\{closure}('category', '118') (/home/betty71/domains/wduchuswietym.com/public_html/libraries/src/Cache/Controller/CallbackController.php:120) at Joomla\CMS\Cache\Controller\CallbackController->get(object(Closure), array('category', '118')) (/home/betty71/domains/wduchuswietym.com/public_html/plugins/content/joomla/src/Extension/Joomla.php:376) at Joomla\Plugin\Content\Joomla\Extension\Joomla->injectContentSchema('com_content.category.118', object(Registry)) (/home/betty71/domains/wduchuswietym.com/public_html/plugins/content/joomla/src/Extension/Joomla.php:240) at Joomla\Plugin\Content\Joomla\Extension\Joomla->onSchemaBeforeCompileHead(object(BeforeCompileHeadEvent)) (/home/betty71/domains/wduchuswietym.com/public_html/libraries/vendor/joomla/event/src/Dispatcher.php:454) at Joomla\Event\Dispatcher->dispatch('onSchemaBeforeCompileHead', object(BeforeCompileHeadEvent)) (/home/betty71/domains/wduchuswietym.com/public_html/plugins/system/schemaorg/src/Extension/Schemaorg.php:431) at Joomla\Plugin\System\Schemaorg\Extension\Schemaorg->onBeforeCompileHead(object(BeforeCompileHeadEvent)) (/home/betty71/domains/wduchuswietym.com/public_html/libraries/vendor/joomla/event/src/Dispatcher.php:454) at Joomla\Event\Dispatcher->dispatch('onBeforeCompileHead', object(BeforeCompileHeadEvent)) (/home/betty71/domains/wduchuswietym.com/public_html/libraries/src/Document/Renderer/Html/MetasRenderer.php:64) at Joomla\CMS\Document\Renderer\Html\MetasRenderer->render(null, array(), null) (/home/betty71/domains/wduchuswietym.com/public_html/libraries/src/Document/Renderer/Html/HeadRenderer.php:39) at Joomla\CMS\Document\Renderer\Html\HeadRenderer->render(null) (/home/betty71/domains/wduchuswietym.com/public_html/templates/shaper_travelia/error.php:63) at require('/home/betty71/domains/wduchuswietym.com/public_html/templates/shaper_travelia/error.php') (/home/betty71/domains/wduchuswietym.com/public_html/libraries/src/Document/HtmlDocument.php:731) at Joomla\CMS\Document\HtmlDocument->_loadTemplate('/home/betty71/domains/wduchuswietym.com/public_html/templates/shaper_travelia', 'error.php') (/home/betty71/domains/wduchuswietym.com/public_html/libraries/src/Document/HtmlDocument.php:785) at Joomla\CMS\Document\HtmlDocument->_fetchTemplate(array('template' => 'shaper_travelia', 'directory' => '/home/betty71/domains/wduchuswietym.com/public_html/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/home/betty71/domains/wduchuswietym.com/public_html/libraries/src/Document/HtmlDocument.php:622) at Joomla\CMS\Document\HtmlDocument->parse(array('template' => 'shaper_travelia', 'directory' => '/home/betty71/domains/wduchuswietym.com/public_html/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/home/betty71/domains/wduchuswietym.com/public_html/libraries/src/Document/HtmlDocument.php:640) at Joomla\CMS\Document\HtmlDocument->render(false, array('template' => 'shaper_travelia', 'directory' => '/home/betty71/domains/wduchuswietym.com/public_html/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/home/betty71/domains/wduchuswietym.com/public_html/libraries/src/Document/ErrorDocument.php:139) at Joomla\CMS\Document\ErrorDocument->render(false, array('template' => 'shaper_travelia', 'directory' => '/home/betty71/domains/wduchuswietym.com/public_html/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/home/betty71/domains/wduchuswietym.com/public_html/libraries/src/Error/Renderer/HtmlRenderer.php:78) at Joomla\CMS\Error\Renderer\HtmlRenderer->render(object(Error)) (/home/betty71/domains/wduchuswietym.com/public_html/libraries/src/Exception/ExceptionHandler.php:136) at Joomla\CMS\Exception\ExceptionHandler::render(object(Error)) (/home/betty71/domains/wduchuswietym.com/public_html/plugins/system/rsseo/rsseo.php:1956) at plgSystemRsseo::showStandardError(object(Error)) (/home/betty71/domains/wduchuswietym.com/public_html/plugins/system/rsseo/rsseo.php:1394) at plgSystemRsseo::handleError(object(Error)) (/home/betty71/domains/wduchuswietym.com/public_html/plugins/system/rsseo/rsseo.php:1373) at plgSystemRsseo::onError(object(Error), object(SiteApplication)) (/home/betty71/domains/wduchuswietym.com/public_html/libraries/src/Plugin/CMSPlugin.php:289) at Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}(object(ErrorEvent)) (/home/betty71/domains/wduchuswietym.com/public_html/libraries/vendor/joomla/event/src/Dispatcher.php:454) at Joomla\Event\Dispatcher->dispatch('onError', object(ErrorEvent)) (/home/betty71/domains/wduchuswietym.com/public_html/libraries/vendor/joomla/application/src/AbstractApplication.php:99) at Joomla\Application\AbstractApplication->dispatchEvent('onError', object(ErrorEvent)) (/home/betty71/domains/wduchuswietym.com/public_html/libraries/src/Application/CMSApplication.php:334) at Joomla\CMS\Application\CMSApplication->execute() (/home/betty71/domains/wduchuswietym.com/public_html/includes/app.php:58) at require_once('/home/betty71/domains/wduchuswietym.com/public_html/includes/app.php') (/home/betty71/domains/wduchuswietym.com/public_html/index.php:32) |
[1/2]
Error
|
---|
Error: Call to a member function getParams() on null at /home/betty71/domains/wduchuswietym.com/public_html/plugins/content/joomla/src/Extension/Joomla.php:323 at Joomla\Plugin\Content\Joomla\Extension\Joomla->Joomla\Plugin\Content\Joomla\Extension\{closure}('category', '118') (/home/betty71/domains/wduchuswietym.com/public_html/libraries/src/Cache/Controller/CallbackController.php:120) at Joomla\CMS\Cache\Controller\CallbackController->get(object(Closure), array('category', '118')) (/home/betty71/domains/wduchuswietym.com/public_html/plugins/content/joomla/src/Extension/Joomla.php:376) at Joomla\Plugin\Content\Joomla\Extension\Joomla->injectContentSchema('com_content.category.118', object(Registry)) (/home/betty71/domains/wduchuswietym.com/public_html/plugins/content/joomla/src/Extension/Joomla.php:240) at Joomla\Plugin\Content\Joomla\Extension\Joomla->onSchemaBeforeCompileHead(object(BeforeCompileHeadEvent)) (/home/betty71/domains/wduchuswietym.com/public_html/libraries/vendor/joomla/event/src/Dispatcher.php:454) at Joomla\Event\Dispatcher->dispatch('onSchemaBeforeCompileHead', object(BeforeCompileHeadEvent)) (/home/betty71/domains/wduchuswietym.com/public_html/plugins/system/schemaorg/src/Extension/Schemaorg.php:431) at Joomla\Plugin\System\Schemaorg\Extension\Schemaorg->onBeforeCompileHead(object(BeforeCompileHeadEvent)) (/home/betty71/domains/wduchuswietym.com/public_html/libraries/vendor/joomla/event/src/Dispatcher.php:454) at Joomla\Event\Dispatcher->dispatch('onBeforeCompileHead', object(BeforeCompileHeadEvent)) (/home/betty71/domains/wduchuswietym.com/public_html/libraries/src/Document/Renderer/Html/MetasRenderer.php:64) at Joomla\CMS\Document\Renderer\Html\MetasRenderer->render(null, array(), null) (/home/betty71/domains/wduchuswietym.com/public_html/libraries/src/Document/Renderer/Html/HeadRenderer.php:39) at Joomla\CMS\Document\Renderer\Html\HeadRenderer->render(null, array(), null) (/home/betty71/domains/wduchuswietym.com/public_html/libraries/src/Document/HtmlDocument.php:575) at Joomla\CMS\Document\HtmlDocument->getBuffer('head', null, array()) (/home/betty71/domains/wduchuswietym.com/public_html/libraries/src/Document/HtmlDocument.php:894) at Joomla\CMS\Document\HtmlDocument->_renderTemplate() (/home/betty71/domains/wduchuswietym.com/public_html/libraries/src/Document/HtmlDocument.php:647) at Joomla\CMS\Document\HtmlDocument->render(false, array('template' => 'shaper_travelia', 'file' => 'index.php', 'params' => object(Registry), 'csp_nonce' => null, 'templateInherits' => null, 'directory' => '/home/betty71/domains/wduchuswietym.com/public_html/templates')) (/home/betty71/domains/wduchuswietym.com/public_html/libraries/src/Application/CMSApplication.php:1073) at Joomla\CMS\Application\CMSApplication->render() (/home/betty71/domains/wduchuswietym.com/public_html/libraries/src/Application/SiteApplication.php:732) at Joomla\CMS\Application\SiteApplication->render() (/home/betty71/domains/wduchuswietym.com/public_html/libraries/src/Application/CMSApplication.php:311) at Joomla\CMS\Application\CMSApplication->execute() (/home/betty71/domains/wduchuswietym.com/public_html/includes/app.php:58) at require_once('/home/betty71/domains/wduchuswietym.com/public_html/includes/app.php') (/home/betty71/domains/wduchuswietym.com/public_html/index.php:32) |