Response: HTTP/1.1 500 Internal Server Error Date: Sat, 15 Mar 2025 14:09:28 GMT Server: Apache/2.4.41 (Ubuntu) X-Debug-Exception: Attempted%20to%20load%20class%20%22OutputChannelExtension%22%20from%20namespace%20%22Web2PrintToolsBundle%5CTwig%22.%0ADid%20you%20forget%20a%20%22use%22%20statement%20for%20another%20namespace%3F X-Debug-Exception-File: %2Fvar%2Fwww%2Fhtml%2Fvar%2Fcache%2Fdev%2FContainerZl3XrRr%2FApp_KernelDevDebugContainer.php:1530 Connection: close Transfer-Encoding: chunked Content-Type: text/html; charset=UTF-8
$instance->addExtension(new \Twig\DeferredExtension\DeferredExtension());
$instance->addExtension(new \Twig\Extra\String\StringExtension(($this->privates['slugger'] ?? ($this->privates['slugger'] = new \Symfony\Component\String\Slugger\AsciiSlugger('en')))));
$instance->addExtension(new \Pimcore\Twig\Extension\AdminExtension($h));
$instance->addExtension(new \CustomerManagementFrameworkBundle\Twig\Extension\CmfFrontendUtilsExtension($f, ($this->services['CustomerManagementFrameworkBundle\\Helper\\JsConfigService'] ?? ($this->services['CustomerManagementFrameworkBundle\\Helper\\JsConfigService'] = new \CustomerManagementFrameworkBundle\Helper\JsConfigService())), ($this->services['CustomerManagementFrameworkBundle\\SegmentManager\\SegmentManagerInterface'] ?? $this->getSegmentManagerInterfaceService()), ($this->services['cmf.customer_exporter_manager'] ?? $this->load('getCmf_CustomerExporterManagerService'))));
$instance->addExtension(new \CustomerManagementFrameworkBundle\Twig\Extension\CmfUrlUtilsExtension($h, $a, ($this->services['CustomerManagementFrameworkBundle\\CustomerView\\CustomerViewInterface'] ?? $this->getCustomerViewInterfaceService()), ($this->services['cmf.link-activity-definition.linkgenerator'] ?? $this->load('getCmf_Linkactivitydefinition_LinkgeneratorService'))));
$instance->addExtension(new \Web2PrintToolsBundle\Twig\OutputChannelExtension());
$instance->addExtension(new \FormBuilderBundle\Twig\Extension\StaticFormExtension(($this->services['FormBuilderBundle\\Assembler\\FormAssembler'] ?? $this->getFormAssemblerService())));
$instance->addExtension(new \FormBuilderBundle\Twig\Extension\FlashMessageExtension(($this->services['FormBuilderBundle\\Session\\FlashBagManagerInterface'] ?? $this->getFlashBagManagerInterfaceService())));
$instance->addExtension(new \Http\HttplugBundle\Collector\Twig\HttpMessageMarkupExtension($i, $j));
$instance->addExtension(new \HWI\Bundle\OAuthBundle\Twig\Extension\OAuthExtension(new \HWI\Bundle\OAuthBundle\Templating\Helper\OAuthHelper(($this->privates['hwi_oauth.security.oauth_utils'] ?? $this->getHwiOauth_Security_OauthUtilsService()), $a)));
$instance->addGlobal('app', $p);
*
* @return \Pimcore\Bundle\CoreBundle\EventListener\Frontend\GlobalTemplateVariablesListener
*/
protected function getGlobalTemplateVariablesListenerService()
{
$this->privates['Pimcore\\Bundle\\CoreBundle\\EventListener\\Frontend\\GlobalTemplateVariablesListener'] = $instance = new \Pimcore\Bundle\CoreBundle\EventListener\Frontend\GlobalTemplateVariablesListener(($this->services['Pimcore\\Http\\Request\\Resolver\\DocumentResolver'] ?? $this->getDocumentResolverService()), ($this->services['Pimcore\\Http\\Request\\Resolver\\EditmodeResolver'] ?? $this->getEditmodeResolverService()), ($this->services['.container.private.twig'] ?? $this->get_Container_Private_TwigService()));
$instance->setLogger(($this->privates['monolog.logger'] ?? $this->getMonolog_LoggerService()));
$instance->setPimcoreContextResolver(($this->services['Pimcore\\Http\\Request\\Resolver\\PimcoreContextResolver'] ?? $this->getPimcoreContextResolverService()));
return $instance;
}, 1 => 'onKernelController'], 15);
$instance->addListener('kernel.response', [0 => function () {
return ($this->privates['Pimcore\\Bundle\\CoreBundle\\EventListener\\Frontend\\GlobalTemplateVariablesListener'] ?? $this->getGlobalTemplateVariablesListenerService());
}, 1 => 'onKernelResponse'], 0);
$instance->addListener('kernel.request', [0 => function () {
return ($this->privates['Pimcore\\Bundle\\CoreBundle\\EventListener\\Frontend\\GlobalTemplateVariablesListener'] ?? $this->getGlobalTemplateVariablesListenerService());
}, 1 => 'onKernelRequest'], 700);
$instance->addListener('kernel.response', [0 => function () {
return ($this->privates['Pimcore\\Bundle\\CoreBundle\\EventListener\\Frontend\\HardlinkCanonicalListener'] ?? $this->getHardlinkCanonicalListenerService());
}, 1 => 'onKernelResponse'], 0);
$instance->addListener('kernel.request', [0 => function () {
$this->sorted[$eventName] = [];
foreach ($this->listeners[$eventName] as &$listeners) {
foreach ($listeners as $k => &$listener) {
if (\is_array($listener) && isset($listener[0]) && $listener[0] instanceof \Closure && 2 >= \count($listener)) {
$listener[0] = $listener[0]();
$listener[1] = $listener[1] ?? '__invoke';
}
$this->sorted[$eventName][] = $listener;
}
}
if (empty($this->listeners[$eventName])) {
return [];
}
if (!isset($this->sorted[$eventName])) {
$this->sortListeners($eventName);
}
return $this->sorted[$eventName];
}
$this->orphanedEvents[$this->currentRequestHash][] = $eventName;
return;
}
foreach ($this->dispatcher->getListeners($eventName) as $listener) {
$priority = $this->getListenerPriority($eventName, $listener);
$wrappedListener = new WrappedListener($listener instanceof WrappedListener ? $listener->getWrappedListener() : $listener, null, $this->stopwatch, $this);
$this->wrappedListeners[$eventName][] = $wrappedListener;
$this->dispatcher->removeListener($eventName, $listener);
$this->dispatcher->addListener($eventName, $wrappedListener, $priority);
if (null !== $this->logger && $event instanceof StoppableEventInterface && $event->isPropagationStopped()) {
$this->logger->debug(sprintf('The "%s" event is already stopped. No listeners have been called.', $eventName));
}
$this->preProcess($eventName);
try {
$this->beforeDispatch($eventName, $event);
try {
$e = $this->stopwatch->start($eventName, 'section');
try {
{
$this->requestStack->push($request);
// request
$event = new RequestEvent($this, $request, $type);
$this->dispatcher->dispatch($event, KernelEvents::REQUEST);
if ($event->hasResponse()) {
return $this->filterResponse($event->getResponse(), $request, $type);
}
public function handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$kernel = \Pimcore\Bootstrap::kernel();
// reset current request - will be read from request stack from now on
Tool::setCurrentRequest(null);
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
ClassNotFoundError
|
---|
Symfony\Component\ErrorHandler\Error\ClassNotFoundError: Attempted to load class "OutputChannelExtension" from namespace "Web2PrintToolsBundle\Twig". Did you forget a "use" statement for another namespace? at /var/www/html/var/cache/dev/ContainerZl3XrRr/App_KernelDevDebugContainer.php:1530 at ContainerZl3XrRr\App_KernelDevDebugContainer->get_Container_Private_TwigService() (/var/www/html/var/cache/dev/ContainerZl3XrRr/App_KernelDevDebugContainer.php:4278) at ContainerZl3XrRr\App_KernelDevDebugContainer->getGlobalTemplateVariablesListenerService() (/var/www/html/var/cache/dev/ContainerZl3XrRr/App_KernelDevDebugContainer.php:3146) at ContainerZl3XrRr\App_KernelDevDebugContainer->ContainerZl3XrRr\{closure}() (/var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php:245) at Symfony\Component\EventDispatcher\EventDispatcher->sortListeners() (/var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php:76) at Symfony\Component\EventDispatcher\EventDispatcher->getListeners() (/var/www/html/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:293) at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->preProcess() (/var/www/html/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:148) at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch() (/var/www/html/vendor/symfony/http-kernel/HttpKernel.php:128) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (/var/www/html/vendor/symfony/http-kernel/HttpKernel.php:74) at Symfony\Component\HttpKernel\HttpKernel->handle() (/var/www/html/vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle() (/var/www/html/public/index.php:36) |