if ($this->passed || $this->app instanceof AdministratorApplication || !$this->isPagination()) {
return;
}
$this->passed = true;
$xtPaginationHelper = new XTPaginationHelper();
if ($this->params->get('enhance_description_with_page', 1)) {
$xtPaginationHelper->enhanceDescriptionWithPage();
}
}
// 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;
}
// 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
*
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 __DIR__ . '/includes/app.php';
$container->extend(MVCFactoryInterface::class, [$this, 'extendMVCFactoryProvider']);
$container->set(
ComponentInterface::class,
function (Container $container) {
$component = new JchOptimizeComponent(
$container->get(ComponentDispatcherFactoryInterface::class)
);
$component->setRegistry($container->get(Registry::class));
$component->setMVCFactory($container->get(MVCFactoryInterface::class));
}
return $this->instance;
}
return $callable($this->container);
}
/**
* Get the factory
*
}
throw new KeyNotFoundException(sprintf("Resource '%s' has not been registered with the container.", $resourceName));
}
return $this->resources[$key]->getInstance();
}
/**
* Check if specified resource exists.
*
'container' => $container,
]
)
);
$extension = $container->get($type);
if ($extension instanceof BootableExtensionInterface) {
$extension->boot($container);
}
$component = str_starts_with($component, 'com_') ? substr($component, 4) : $component;
// Path to look for services
$path = JPATH_ADMINISTRATOR . '/components/com_' . $component;
return $this->loadExtension(ComponentInterface::class, $component, $path);
}
/**
* Boots the module with the given name.
*
$config = (array)PluginHelper::getPlugin('system', 'jchoptimize');
$subject = $container->get(DispatcherInterface::class);
$app = Factory::getApplication();
//Boot component before initializing plugin to register required autoload classes
$component = $app->bootComponent('com_jchoptimize');
if ($component instanceof JchOptimizeComponent) {
$config['params'] = $component->getContainer()->get(Registry::class);
}
}
return $this->instance;
}
return $callable($this->container);
}
/**
* Get the factory
*
}
throw new KeyNotFoundException(sprintf("Resource '%s' has not been registered with the container.", $resourceName));
}
return $this->resources[$key]->getInstance();
}
/**
* Check if specified resource exists.
*
'container' => $container,
]
)
);
$extension = $container->get($type);
if ($extension instanceof BootableExtensionInterface) {
$extension->boot($container);
}
$plugin = str_starts_with($plugin, 'plg_') ? substr($plugin, 4) : $plugin;
// Path to look for services
$path = JPATH_SITE . '/plugins/' . $type . '/' . $plugin;
return $this->loadExtension(PluginInterface::class, $plugin . ':' . $type, $path);
}
/**
* Loads the extension.
*
return;
}
$plugins[$hash] = true;
$plugin = Factory::getApplication()->bootPlugin($plugin->name, $plugin->type);
if ($dispatcher && $plugin instanceof DispatcherAwareInterface) {
$plugin->setDispatcher($dispatcher);
}
$plugins = static::load();
// Get the specified plugin(s).
foreach ($plugins as $value) {
if ($value->type === $type && ($plugin === null || $value->name === $plugin)) {
static::import($value, $autocreate, $dispatcher);
$results = true;
}
}
// Bail out early if we're not using default args
// Load the behaviour plugins
PluginHelper::importPlugin('behaviour', null, true, $this->getDispatcher());
// Trigger the onAfterInitialise event.
PluginHelper::importPlugin('system', null, true, $this->getDispatcher());
$this->dispatchEvent(
'onAfterInitialise',
new AfterInitialiseEvent('onAfterInitialise', ['subject' => $this])
);
}
$options['language'] = 'en-GB';
}
}
// Finish initialisation
parent::initialiseApp($options);
}
/**
* Load the library language files for the application
*
* @since 3.2
*/
protected function doExecute()
{
// Initialise the application
$this->initialiseApp();
// Mark afterInitialise in the profiler.
JDEBUG ? $this->profiler->mark('afterInitialise') : null;
// Route the application
$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 "XTPaginationHelper" from namespace "Extly\Pagination". Did you forget a "use" statement for another namespace? at /home/sellga6/public_html/plugins/system/xtperfectseopagination/xtperfectseopagination.php:61 at PlgSystemXTPerfectSEOPagination->onBeforeCompileHead(object(SiteApplication), object(ErrorDocument)) (/home/sellga6/public_html/libraries/src/Plugin/CMSPlugin.php:311) at Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}(object(BeforeCompileHeadEvent)) (/home/sellga6/public_html/libraries/vendor/joomla/event/src/Dispatcher.php:454) at Joomla\Event\Dispatcher->dispatch('onBeforeCompileHead', object(BeforeCompileHeadEvent)) (/home/sellga6/public_html/libraries/src/Document/Renderer/Html/MetasRenderer.php:62) at Joomla\CMS\Document\Renderer\Html\MetasRenderer->render(null, array(), null) (/home/sellga6/public_html/libraries/src/Document/Renderer/Html/HeadRenderer.php:38) at Joomla\CMS\Document\Renderer\Html\HeadRenderer->render(null, array(), null) (/home/sellga6/public_html/libraries/src/Document/HtmlDocument.php:575) at Joomla\CMS\Document\HtmlDocument->getBuffer('head', null, array()) (/home/sellga6/public_html/libraries/src/Document/HtmlDocument.php:894) at Joomla\CMS\Document\HtmlDocument->_renderTemplate() (/home/sellga6/public_html/libraries/src/Document/HtmlDocument.php:647) at Joomla\CMS\Document\HtmlDocument->render(false, array('template' => 'astroid_template_two', 'directory' => '/home/sellga6/public_html/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/home/sellga6/public_html/libraries/src/Document/ErrorDocument.php:139) at Joomla\CMS\Document\ErrorDocument->render(false, array('template' => 'astroid_template_two', 'directory' => '/home/sellga6/public_html/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) (/home/sellga6/public_html/libraries/src/Error/Renderer/HtmlRenderer.php:70) at Joomla\CMS\Error\Renderer\HtmlRenderer->render(object(Error)) (/home/sellga6/public_html/libraries/src/Exception/ExceptionHandler.php:136) at Joomla\CMS\Exception\ExceptionHandler::render(object(Error)) (/home/sellga6/public_html/libraries/src/Exception/ExceptionHandler.php:73) at Joomla\CMS\Exception\ExceptionHandler::handleException(object(Error)) (/home/sellga6/public_html/libraries/src/Application/CMSApplication.php:334) at Joomla\CMS\Application\CMSApplication->execute() (/home/sellga6/public_html/includes/app.php:58) at require_once('/home/sellga6/public_html/includes/app.php') (/home/sellga6/public_html/index.php:32) |
[1/2]
Error
|
---|
Error: Class "CodeAlfa\Component\JchOptimize\Administrator\Extension\JchOptimizeComponent" not found at /home/sellga6/public_html/administrator/components/com_jchoptimize/services/provider.php:43 at Joomla\DI\ServiceProviderInterface@anonymous /home/sellga6/public_html/administrator/components/com_jchoptimize/services/provider.php:31$b9->{closure}(object(Container)) (/home/sellga6/public_html/libraries/vendor/joomla/di/src/ContainerResource.php:172) at Joomla\DI\ContainerResource->getInstance() (/home/sellga6/public_html/libraries/vendor/joomla/di/src/Container.php:95) at Joomla\DI\Container->get('Joomla\\CMS\\Extension\\ComponentInterface') (/home/sellga6/public_html/libraries/src/Extension/ExtensionManagerTrait.php:177) at Joomla\CMS\Application\CMSApplication->loadExtension('Joomla\\CMS\\Extension\\ComponentInterface', 'jchoptimize', '/home/sellga6/public_html/administrator/components/com_jchoptimize') (/home/sellga6/public_html/libraries/src/Extension/ExtensionManagerTrait.php:51) at Joomla\CMS\Application\CMSApplication->bootComponent('jchoptimize') (/home/sellga6/public_html/plugins/system/jchoptimize/services/provider.php:39) at Joomla\DI\ServiceProviderInterface@anonymous /home/sellga6/public_html/plugins/system/jchoptimize/services/provider.php:28$b8->{closure}(object(Container)) (/home/sellga6/public_html/libraries/vendor/joomla/di/src/ContainerResource.php:172) at Joomla\DI\ContainerResource->getInstance() (/home/sellga6/public_html/libraries/vendor/joomla/di/src/Container.php:95) at Joomla\DI\Container->get('Joomla\\CMS\\Extension\\PluginInterface') (/home/sellga6/public_html/libraries/src/Extension/ExtensionManagerTrait.php:177) at Joomla\CMS\Application\CMSApplication->loadExtension('Joomla\\CMS\\Extension\\PluginInterface', 'jchoptimize:system', '/home/sellga6/public_html/plugins/system/jchoptimize') (/home/sellga6/public_html/libraries/src/Extension/ExtensionManagerTrait.php:99) at Joomla\CMS\Application\CMSApplication->bootPlugin('jchoptimize', 'system') (/home/sellga6/public_html/libraries/src/Plugin/PluginHelper.php:232) at Joomla\CMS\Plugin\PluginHelper::import(object(stdClass), true, object(Dispatcher)) (/home/sellga6/public_html/libraries/src/Plugin/PluginHelper.php:192) at Joomla\CMS\Plugin\PluginHelper::importPlugin('system', null, true, object(Dispatcher)) (/home/sellga6/public_html/libraries/src/Application/CMSApplication.php:812) at Joomla\CMS\Application\CMSApplication->initialiseApp(array('language' => 'en-GB')) (/home/sellga6/public_html/libraries/src/Application/SiteApplication.php:638) at Joomla\CMS\Application\SiteApplication->initialiseApp() (/home/sellga6/public_html/libraries/src/Application/SiteApplication.php:237) at Joomla\CMS\Application\SiteApplication->doExecute() (/home/sellga6/public_html/libraries/src/Application/CMSApplication.php:304) at Joomla\CMS\Application\CMSApplication->execute() (/home/sellga6/public_html/includes/app.php:58) at require_once('/home/sellga6/public_html/includes/app.php') (/home/sellga6/public_html/index.php:32) |