{
$container->set(
PluginInterface::class,
function (Container $container) {
$dispatcher = $container->get(DispatcherInterface::class);
$plugin = new Contact(
$dispatcher,
(array) PluginHelper::getPlugin('content', 'contact')
);
$plugin->setApplication(Factory::getApplication());
$plugin->setDatabase($container->get(DatabaseInterface::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).
for ($i = 0, $t = \count($plugins); $i < $t; $i++) {
if ($plugins[$i]->type === $type && ($plugin === null || $plugins[$i]->name === $plugin)) {
static::import($plugins[$i], $autocreate, $dispatcher);
$results = true;
}
}
// Bail out early if we're not using default args
use Joomla\CMS\Helper\ModuleHelper;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Plugin\PluginHelper;
if ($params->def('prepare_content', 1)) {
PluginHelper::importPlugin('content');
$module->content = HTMLHelper::_('content.prepare', $module->content, '', 'mod_custom.content');
}
require ModuleHelper::getLayoutPath('mod_custom', $params->get('layout', 'default'));
unset($displayData);
} else {
extract($displayData);
}
include $path;
};
$loader($path, $this->getLayoutData());
}
}
}
include $path;
};
$loader($path, $this->getLayoutData());
}
}
$dispatcher = $app->bootModule($module->module, $app->getName())->getDispatcher($module, $app);
// Check if we have a dispatcher
if ($dispatcher) {
ob_start();
$dispatcher->dispatch();
$module->content = ob_get_clean();
}
// Add the flag that the module content has been rendered
$module->contentRendered = true;
// Get module parameters
$params = new Registry($module->params);
// Render the module content
static::renderRawModule($module, $params, $attribs);
// Return early if only the content is required
if (!empty($attribs['contentOnly'])) {
return $module->content;
}
$module->contentRendered = true;
return $module->content;
}
return ModuleHelper::renderModule($module, $attribs);
}
}
$user = Factory::getUser();
$frontediting = ($app->isClient('site') && $app->get('frontediting', 1) && !$user->guest);
$menusEditing = ($app->get('frontediting', 1) == 2) && $user->authorise('core.edit', 'com_menus');
foreach (ModuleHelper::getModules($position) as $mod) {
$moduleHtml = $renderer->render($mod, $params, $content);
if ($frontediting && trim($moduleHtml) != '' && $user->authorise('module.edit.frontend', 'com_modules.module.' . $mod->id)) {
$displayData = ['moduleHtml' => &$moduleHtml, 'module' => $mod, 'position' => $position, 'menusediting' => $menusEditing];
LayoutHelper::render('joomla.edit.frontediting_modules', $displayData);
}
$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,
// Reset the document object in the factory, this gives us a clean slate and lets everything render properly
Factory::$document = $renderer->getDocument();
Factory::getApplication()->loadDocument(Factory::$document);
$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->triggerEvent('onError', $event);
ExceptionHandler::handleException($event->getError());
}
// Trigger the onBeforeRespond event.
$this->getDispatcher()->dispatch('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';
{
$container->set(
PluginInterface::class,
function (Container $container) {
$dispatcher = $container->get(DispatcherInterface::class);
$plugin = new Fields(
$dispatcher,
(array) PluginHelper::getPlugin('content', 'fields')
);
return $plugin;
}
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).
for ($i = 0, $t = \count($plugins); $i < $t; $i++) {
if ($plugins[$i]->type === $type && ($plugin === null || $plugins[$i]->name === $plugin)) {
static::import($plugins[$i], $autocreate, $dispatcher);
$results = true;
}
}
// Bail out early if we're not using default args
if (Associations::isEnabled() && $item->params->get('show_associations')) {
$item->associations = AssociationHelper::displayAssociations($item->id);
}
// Process the content plugins.
PluginHelper::importPlugin('content');
$this->dispatchEvent(new Event('onContentPrepare', ['com_content.article', &$item, &$item->params, $offset]));
$item->event = new \stdClass();
$results = Factory::getApplication()->triggerEvent('onContentAfterTitle', ['com_content.article', &$item, &$item->params, $offset]);
$item->event->afterDisplayTitle = trim(implode("\n", $results));
$cache->get($view, 'display');
} catch (CacheExceptionInterface $exception) {
$view->display();
}
} else {
$view->display();
}
return $this;
}
$model->hit();
}
}
}
parent::display($cachable, $safeurlparams);
return $this;
}
}
}
// Record the actual task being fired
$this->doTask = $doTask;
return $this->$doTask();
}
/**
* Method to get a model object, loading it if required.
*
$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();
}
}
if (!static::isEnabled($option)) {
throw new MissingComponentException(Text::_('JLIB_APPLICATION_ERROR_COMPONENT_NOT_FOUND'), 404);
}
ob_start();
$app->bootComponent($option)->getDispatcher($app)->dispatch();
$contents = ob_get_clean();
// Revert the scope
$app->scope = $scope;
$document->setGenerator('Joomla! - Open Source Content Management - Version ' . JVERSION);
} else {
$document->setGenerator('Joomla! - Open Source Content Management');
}
$contents = ComponentHelper::renderComponent($component);
$document->setBuffer($contents, 'component');
// Trigger the onAfterDispatch event.
PluginHelper::importPlugin('system');
$this->triggerEvent('onAfterDispatch');
*/
$this->checkUserRequireReset('com_users', 'profile', 'edit', 'com_users/profile.save,com_users/profile.apply,com_users/user.logout');
}
// 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 dirname(__FILE__) . '/includes/app.php';
[2/2]
ClassNotFoundError
|
---|
Symfony\Component\ErrorHandler\Error\ClassNotFoundError: Attempted to load class "Contact" from namespace "Joomla\Plugin\Content\Contact\Extension". Did you forget a "use" statement for another namespace? at /home/marpie/public_html/03_eckstein/plugins/content/contact/services/provider.php:38 at Joomla\DI\ServiceProviderInterface@anonymous /home/marpie/public_html/03_eckstein/plugins/content/contact/services/provider.php:22$ec->{closure}() (/home/marpie/public_html/03_eckstein/libraries/vendor/joomla/di/src/ContainerResource.php:182) at Joomla\DI\ContainerResource->getInstance() (/home/marpie/public_html/03_eckstein/libraries/vendor/joomla/di/src/Container.php:96) at Joomla\DI\Container->get() (/home/marpie/public_html/03_eckstein/libraries/src/Extension/ExtensionManagerTrait.php:177) at Joomla\CMS\Application\CMSApplication->loadExtension() (/home/marpie/public_html/03_eckstein/libraries/src/Extension/ExtensionManagerTrait.php:99) at Joomla\CMS\Application\CMSApplication->bootPlugin() (/home/marpie/public_html/03_eckstein/libraries/src/Plugin/PluginHelper.php:232) at Joomla\CMS\Plugin\PluginHelper::import() (/home/marpie/public_html/03_eckstein/libraries/src/Plugin/PluginHelper.php:192) at Joomla\CMS\Plugin\PluginHelper::importPlugin() (/home/marpie/public_html/03_eckstein/modules/mod_custom/mod_custom.php:18) at include('/home/marpie/public_html/03_eckstein/modules/mod_custom/mod_custom.php') (/home/marpie/public_html/03_eckstein/libraries/src/Dispatcher/ModuleDispatcher.php:52) at Joomla\CMS\Dispatcher\ModuleDispatcher::Joomla\CMS\Dispatcher\{closure}() (/home/marpie/public_html/03_eckstein/libraries/src/Dispatcher/ModuleDispatcher.php:55) at Joomla\CMS\Dispatcher\ModuleDispatcher->dispatch() (/home/marpie/public_html/03_eckstein/libraries/src/Helper/ModuleHelper.php:281) at Joomla\CMS\Helper\ModuleHelper::renderRawModule() (/home/marpie/public_html/03_eckstein/libraries/src/Helper/ModuleHelper.php:161) at Joomla\CMS\Helper\ModuleHelper::renderModule() (/home/marpie/public_html/03_eckstein/libraries/src/Document/Renderer/Html/ModuleRenderer.php:99) at Joomla\CMS\Document\Renderer\Html\ModuleRenderer->render() (/home/marpie/public_html/03_eckstein/libraries/src/Document/Renderer/Html/ModulesRenderer.php:50) at Joomla\CMS\Document\Renderer\Html\ModulesRenderer->render() (/home/marpie/public_html/03_eckstein/libraries/src/Document/HtmlDocument.php:566) at Joomla\CMS\Document\HtmlDocument->getBuffer() (/home/marpie/public_html/03_eckstein/libraries/src/Document/HtmlDocument.php:853) at Joomla\CMS\Document\HtmlDocument->_renderTemplate() (/home/marpie/public_html/03_eckstein/libraries/src/Document/HtmlDocument.php:638) at Joomla\CMS\Document\HtmlDocument->render() (/home/marpie/public_html/03_eckstein/libraries/src/Document/ErrorDocument.php:139) at Joomla\CMS\Document\ErrorDocument->render() (/home/marpie/public_html/03_eckstein/libraries/src/Error/Renderer/HtmlRenderer.php:70) at Joomla\CMS\Error\Renderer\HtmlRenderer->render() (/home/marpie/public_html/03_eckstein/libraries/src/Exception/ExceptionHandler.php:126) at Joomla\CMS\Exception\ExceptionHandler::render() (/home/marpie/public_html/03_eckstein/libraries/src/Exception/ExceptionHandler.php:72) at Joomla\CMS\Exception\ExceptionHandler::handleException() (/home/marpie/public_html/03_eckstein/libraries/src/Application/CMSApplication.php:322) at Joomla\CMS\Application\CMSApplication->execute() (/home/marpie/public_html/03_eckstein/includes/app.php:61) at require_once('/home/marpie/public_html/03_eckstein/includes/app.php') (/home/marpie/public_html/03_eckstein/index.php:32) |
[1/2]
Error
|
---|
Error: Class "Joomla\Plugin\Content\Fields\Extension\Fields" not found at /home/marpie/public_html/03_eckstein/plugins/content/fields/services/provider.php:36 at Joomla\DI\ServiceProviderInterface@anonymous /home/marpie/public_html/03_eckstein/plugins/content/fields/services/provider.php:20$d6->{closure}() (/home/marpie/public_html/03_eckstein/libraries/vendor/joomla/di/src/ContainerResource.php:182) at Joomla\DI\ContainerResource->getInstance() (/home/marpie/public_html/03_eckstein/libraries/vendor/joomla/di/src/Container.php:96) at Joomla\DI\Container->get() (/home/marpie/public_html/03_eckstein/libraries/src/Extension/ExtensionManagerTrait.php:177) at Joomla\CMS\Application\CMSApplication->loadExtension() (/home/marpie/public_html/03_eckstein/libraries/src/Extension/ExtensionManagerTrait.php:99) at Joomla\CMS\Application\CMSApplication->bootPlugin() (/home/marpie/public_html/03_eckstein/libraries/src/Plugin/PluginHelper.php:232) at Joomla\CMS\Plugin\PluginHelper::import() (/home/marpie/public_html/03_eckstein/libraries/src/Plugin/PluginHelper.php:192) at Joomla\CMS\Plugin\PluginHelper::importPlugin() (/home/marpie/public_html/03_eckstein/components/com_content/src/View/Article/HtmlView.php:226) at Joomla\Component\Content\Site\View\Article\HtmlView->display() (/home/marpie/public_html/03_eckstein/libraries/src/MVC/Controller/BaseController.php:645) at Joomla\CMS\MVC\Controller\BaseController->display() (/home/marpie/public_html/03_eckstein/components/com_content/src/Controller/DisplayController.php:121) at Joomla\Component\Content\Site\Controller\DisplayController->display() (/home/marpie/public_html/03_eckstein/libraries/src/MVC/Controller/BaseController.php:678) at Joomla\CMS\MVC\Controller\BaseController->execute() (/home/marpie/public_html/03_eckstein/libraries/src/Dispatcher/ComponentDispatcher.php:143) at Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() (/home/marpie/public_html/03_eckstein/components/com_content/src/Dispatcher/Dispatcher.php:56) at Joomla\Component\Content\Site\Dispatcher\Dispatcher->dispatch() (/home/marpie/public_html/03_eckstein/libraries/src/Component/ComponentHelper.php:361) at Joomla\CMS\Component\ComponentHelper::renderComponent() (/home/marpie/public_html/03_eckstein/libraries/src/Application/SiteApplication.php:208) at Joomla\CMS\Application\SiteApplication->dispatch() (/home/marpie/public_html/03_eckstein/libraries/src/Application/SiteApplication.php:249) at Joomla\CMS\Application\SiteApplication->doExecute() (/home/marpie/public_html/03_eckstein/libraries/src/Application/CMSApplication.php:293) at Joomla\CMS\Application\CMSApplication->execute() (/home/marpie/public_html/03_eckstein/includes/app.php:61) at require_once('/home/marpie/public_html/03_eckstein/includes/app.php') (/home/marpie/public_html/03_eckstein/index.php:32) |