Exceptions
Exception
Error
$pageEntity = ProductQuery::create()->findPk($this->requestStack->getCurrentRequest()?->get('product_id'));break;default:return null;}return htmlspecialchars($pageEntity->setLocale($this->requestStack->getSession()->getLang()->getLocale())->getTitle());}/*** @throws PropelException*/
GoogleTagService->getPageName('product')
in
local/modules/GoogleTagManager/Service/GoogleTagService.php
(line 70)
$result['user']['umd'] = hash('md5', $user->getEmail());$result['user']['ush'] = hash('sha256', $user->getEmail());}if (in_array($pageType, ['category', 'product'])) {$result['google_tag_params']['ecomm_category'] = $this->getPageName($view);}if ($pageType === 'product') {$result['google_tag_params']['ecomm_prodid'] = $this->getPageProductRef($view);}
GoogleTagService->getTheliaPageViewParameters()
in
local/modules/GoogleTagManager/Hook/FrontHook.php
(line 64)
$gtmId = GoogleTagManager::getConfigValue(GoogleTagManager::GOOGLE_TAG_MANAGER_GMT_ID_CONFIG_KEY);if ("" !== $gtmId) {$view = $request?->get('_view');$event->add($this->render('datalayer/thelia-page-view.html', ['data' => $this->googleTagService->getTheliaPageViewParameters()]));if (in_array($view, ['category', 'brand', 'search'])) {$event->add($this->render('datalayer/view-item-list.html', ['eventName' => 'view_item_list']));}
in
vendor/symfony/event-dispatcher/Debug/WrappedListener.php
->
onMainHeadTop
(line 116)
$this->priority ??= $dispatcher->getListenerPriority($eventName, $this->listener);$e = $this->stopwatch->start($this->name, 'event_listener');try {($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);} finally {if ($e->isStarted()) {$e->stop();}}
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
__invoke
(line 220)
foreach ($listeners as $listener) {if ($stoppable && $event->isPropagationStopped()) {break;}$listener($event, $eventName, $this);}}/*** Sorts the internal list of listeners for the given event by priority.
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
callListeners
(line 56)
} else {$listeners = $this->getListeners($eventName);}if ($listeners) {$this->callListeners($listeners, $eventName, $event);}return $event;}
in
vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php
->
dispatch
(line 139)
try {$this->beforeDispatch($eventName, $event);try {$e = $this->stopwatch->start($eventName, 'section');try {$this->dispatcher->dispatch($event, $eventName);} finally {if ($e->isStarted()) {$e->stop();}}
TraceableEventDispatcher->dispatch(object(HookRenderEvent), 'hook.1.main.head-top')
in
local/modules/TheliaSmarty/Template/Plugins/Hook.php
(line 111)
}if (0 !== $module) {$eventName .= '.'.$module;}$this->getDispatcher()->dispatch($event, $eventName);$content = trim($event->dump());if ($this->debug && $smarty->getRequest()->get('SHOW_HOOK')) {$content = self::showHook(
Hook->processHookFunction(array('name' => 'main.head-top'), object(Smarty_Internal_Template))
in
local/modules/TheliaSmarty/Template/AbstractSmartyPlugin.php
(line 116)
$functionName = str_replace(self::WRAPPED_METHOD_PREFIX, '', $functionName);$params = $args[0] ?? [];$smarty = $args[1] ?? null;return $this->$functionName($params, $smarty);}throw new \BadMethodCallException("Smarty plugin method '$functionName' was not found.", $this, $functionName);}
in
var/cache/dev/smarty/compile/e1f7e4c649d2c5b08101af8de556427e612509b2_0.file.layout.tpl.php
->
__call
(line 172)
<?php$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_877301655693a89a804f5f5_46794601', "share-meta");?><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0], array( array('name'=>"main.head-top"),$_smarty_tpl ) );?><linkhref="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap"
in
vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php
content_693a89a8079055_15033296
(line 123)
if ($_template->startRenderCallbacks) {foreach ($_template->startRenderCallbacks as $callback) {call_user_func($callback, $_template);}}$unifunc($_template);foreach ($_template->endRenderCallbacks as $callback) {call_user_func($callback, $_template);}$_template->isRenderingCache = false;} catch (Exception $e) {
in
vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php
->
getRenderedTemplateCode
(line 114)
array_merge($_template->cached->file_dependency, $this->file_dependency);}if ($_template->source->handler->uncompiled) {$_template->source->handler->renderUncompiled($_template->source, $_template);} else {$this->getRenderedTemplateCode($_template);}if ($_template->caching && $this->has_nocache_code) {$_template->cached->hashes[ $this->nocache_hash ] = true;}if ($_template->smarty->debugging) {
in
vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php
->
render
(line 217)
$this->cached->render($this, $no_output_filter);} else {if (!isset($this->compiled) || $this->compiled->compile_id !== $this->compile_id) {$this->loadCompiled(true);}$this->compiled->render($this);}// display or fetchif ($display) {if ($this->caching && $this->smarty->cache_modified_check) {$this->smarty->ext->_cacheModify->cacheModifiedCheck(
in
vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php
->
render
(line 386)
}} else {if (isset($tpl->compiled)) {$tpl->compiled->render($tpl);} else {$tpl->render();}}}/**
in
vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php
->
_subTemplateRender
(line 115)
$this->state = 2;}if (isset($template) && (($tpl->parent->_isTplObj() && $tpl->parent->source->type !== 'extends')|| $tpl->smarty->extends_recursion)) {$tpl->_subTemplateRender($template,$tpl->cache_id,$tpl->compile_id,$tpl->caching ? 9999 : 0,$tpl->cache_lifetime,
in
var/cache/dev/smarty/compile/65921a06b1e5d0ffb804d544de2ecc52a9b16662_0.file.404.html.php
->
endChild
(line 58)
<?php$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_1364605119693a89a801d928_41854132', "javascript-initialization");?><?php $_smarty_tpl->inheritance->endChild($_smarty_tpl, "layout.tpl");}/* {block "body-class"} */class Block_2034845347693a89a8010182_87322535 extends Smarty_Internal_Block{public $subBlocks = array (
in
vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php
content_693a89a801e502_70737274
(line 123)
if ($_template->startRenderCallbacks) {foreach ($_template->startRenderCallbacks as $callback) {call_user_func($callback, $_template);}}$unifunc($_template);foreach ($_template->endRenderCallbacks as $callback) {call_user_func($callback, $_template);}$_template->isRenderingCache = false;} catch (Exception $e) {
in
vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php
->
getRenderedTemplateCode
(line 114)
array_merge($_template->cached->file_dependency, $this->file_dependency);}if ($_template->source->handler->uncompiled) {$_template->source->handler->renderUncompiled($_template->source, $_template);} else {$this->getRenderedTemplateCode($_template);}if ($_template->caching && $this->has_nocache_code) {$_template->cached->hashes[ $this->nocache_hash ] = true;}if ($_template->smarty->debugging) {
in
vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php
->
render
(line 217)
$this->cached->render($this, $no_output_filter);} else {if (!isset($this->compiled) || $this->compiled->compile_id !== $this->compile_id) {$this->loadCompiled(true);}$this->compiled->render($this);}// display or fetchif ($display) {if ($this->caching && $this->smarty->cache_modified_check) {$this->smarty->ext->_cacheModify->cacheModifiedCheck(
in
vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php
->
render
(line 238)
ob_start();$template->_mergeVars();if (!empty(Smarty::$global_tpl_vars)) {$template->tpl_vars = array_merge(Smarty::$global_tpl_vars, $template->tpl_vars);}$result = $template->render(false, $function);$template->_cleanUp();if ($saveVars) {$template->tpl_vars = $savedTplVars;$template->config_vars = $savedConfigVars;} else {
in
vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php
->
_execute
(line 116)
* @throws SmartyException* @return string rendered template output*/public function fetch($template = null, $cache_id = null, $compile_id = null, $parent = null){$result = $this->_execute($template, $cache_id, $compile_id, $parent, 0);return $result === null ? ob_get_clean() : $result;}/*** displays a Smarty template
Smarty_Internal_TemplateBase->fetch('file:404.html')
in
local/modules/TheliaSmarty/Template/SmartyParser.php
(line 512)
if (ConfigQuery::read('smarty_mute_undefined_or_null', 0)) {$this->muteUndefinedOrNullWarnings();}$output = $this->fetch($resourceType.':'.$resourceContent);if (!$compressOutput) {$this->registerFilter('output', [$this, 'trimWhitespaces']);}
SmartyParser->internalRenderer('file', '404.html', array('locale' => 'fr_FR', 'lang_code' => 'fr', 'lang_id' => 1, 'current_url' => 'https://pprd-anselmi.openstudio-lab.com/serviette-40x40-3c-1-8-saumon-p%C3%AAche-00n00--1.html', 'app' => object(stdClass)), true)
in
local/modules/TheliaSmarty/Template/SmartyParser.php
(line 540)
{if (false === $this->templateExists($realTemplateName) || false === $this->checkTemplate($realTemplateName)) {throw new ResourceNotFoundException(Translator::getInstance()->trans('Template file %file cannot be found.', ['%file' => $realTemplateName]));}return $this->internalRenderer('file', $realTemplateName, $parameters, $compressOutput);}private function checkTemplate($fileName){$templates = $this->getTemplateDir();
in
vendor/thelia/core/lib/Thelia/Action/HttpException.php
->
render
(line 90)
// Define the template thant shoud be used$this->parser->setTemplateDefinition($this->parser->getTemplateHelper()->getActiveFrontTemplate());$response = new Response($this->parser->render(ConfigQuery::getPageNotFoundView()), 404);$event->setResponse($response);}protected function displayException(ExceptionEvent $event): void
in
vendor/thelia/core/lib/Thelia/Action/HttpException.php
->
display404
(line 49)
return;}$exception = $event->getThrowable();if ($exception instanceof NotFoundHttpException) {$this->display404($event);}if ($exception instanceof AdminAccessDenied) {$this->displayAdminGeneralError($event);}
in
vendor/symfony/event-dispatcher/Debug/WrappedListener.php
->
checkHttpException
(line 116)
$this->priority ??= $dispatcher->getListenerPriority($eventName, $this->listener);$e = $this->stopwatch->start($this->name, 'event_listener');try {($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);} finally {if ($e->isStarted()) {$e->stop();}}
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
__invoke
(line 220)
foreach ($listeners as $listener) {if ($stoppable && $event->isPropagationStopped()) {break;}$listener($event, $eventName, $this);}}/*** Sorts the internal list of listeners for the given event by priority.
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
callListeners
(line 56)
} else {$listeners = $this->getListeners($eventName);}if ($listeners) {$this->callListeners($listeners, $eventName, $event);}return $event;}
in
vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php
->
dispatch
(line 139)
try {$this->beforeDispatch($eventName, $event);try {$e = $this->stopwatch->start($eventName, 'section');try {$this->dispatcher->dispatch($event, $eventName);} finally {if ($e->isStarted()) {$e->stop();}}
in
vendor/symfony/http-kernel/HttpKernel.php
->
dispatch
(line 239)
* Handles a throwable by trying to convert it to a Response.*/private function handleThrowable(\Throwable $e, Request $request, int $type): Response{$event = new ExceptionEvent($this, $request, $type, $e);$this->dispatcher->dispatch($event, KernelEvents::EXCEPTION);// a listener might have replaced the exception$e = $event->getThrowable();if (!$event->hasResponse()) {
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleThrowable
(line 91)
$this->finishRequest($request, $type);throw $e;}return $response = $this->handleThrowable($e, $request, $type);} finally {$this->requestStack->pop();if ($response instanceof StreamedResponse && $callback = $response->getCallback()) {$requestStack = $this->requestStack;
in
vendor/thelia/core/lib/Thelia/Core/TheliaHttpKernel.php
->
handle
(line 72)
*/public function handle(Request $request, $type = HttpKernelInterface::MAIN_REQUEST, $catch = true): \Symfony\Component\HttpFoundation\Response{$this->container->get('request.context')->fromRequest($request);$response = parent::handle($request, $type, $catch);return $response;}}
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 197)
$this->boot();++$this->requestStackSize;$this->resetServices = true;try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
in
vendor/thelia/core/lib/Thelia/Core/Thelia.php
->
handle
(line 455)
}}$this->boot();return parent::handle($request, $type, $catch);}/*** Load some configuration* Initialize all plugins.
Debug::enable();}$thelia = new App\Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);$request = Request::createFromGlobals();$response = $thelia->handle($request);$response->send();$thelia->terminate($request, $response);
Logs
No log messages
Stack Trace
|
Error
|
|---|
Error:
Call to a member function setLocale() on null
at local/modules/GoogleTagManager/Service/GoogleTagService.php:526
at GoogleTagManager\Service\GoogleTagService->getPageName('product')
(local/modules/GoogleTagManager/Service/GoogleTagService.php:70)
at GoogleTagManager\Service\GoogleTagService->getTheliaPageViewParameters()
(local/modules/GoogleTagManager/Hook/FrontHook.php:64)
at GoogleTagManager\Hook\FrontHook->onMainHeadTop(object(HookRenderEvent), 'hook.1.main.head-top', object(TraceableEventDispatcher))
(vendor/symfony/event-dispatcher/Debug/WrappedListener.php:116)
at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(HookRenderEvent), 'hook.1.main.head-top', object(TraceableEventDispatcher))
(vendor/symfony/event-dispatcher/EventDispatcher.php:220)
at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener), object(WrappedListener)), 'hook.1.main.head-top', object(HookRenderEvent))
(vendor/symfony/event-dispatcher/EventDispatcher.php:56)
at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(HookRenderEvent), 'hook.1.main.head-top')
(vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:139)
at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(HookRenderEvent), 'hook.1.main.head-top')
(local/modules/TheliaSmarty/Template/Plugins/Hook.php:111)
at TheliaSmarty\Template\Plugins\Hook->processHookFunction(array('name' => 'main.head-top'), object(Smarty_Internal_Template))
(local/modules/TheliaSmarty/Template/AbstractSmartyPlugin.php:116)
at TheliaSmarty\Template\AbstractSmartyPlugin->__call('processHookFunction', array(array('name' => 'main.head-top'), object(Smarty_Internal_Template)))
(var/cache/dev/smarty/compile/e1f7e4c649d2c5b08101af8de556427e612509b2_0.file.layout.tpl.php:172)
at content_693a89a8079055_15033296(object(Smarty_Internal_Template))
(vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php:123)
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(Smarty_Internal_Template))
(vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php:114)
at Smarty_Template_Compiled->render(object(Smarty_Internal_Template))
(vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:217)
at Smarty_Internal_Template->render()
(vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:386)
at Smarty_Internal_Template->_subTemplateRender('layout.tpl', null, null, 0, 3600, array(), 2, false, null, null)
(vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php:115)
at Smarty_Internal_Runtime_Inheritance->endChild(object(Smarty_Internal_Template), 'layout.tpl')
(var/cache/dev/smarty/compile/65921a06b1e5d0ffb804d544de2ecc52a9b16662_0.file.404.html.php:58)
at content_693a89a801e502_70737274(object(Smarty_Internal_Template))
(vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php:123)
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(Smarty_Internal_Template))
(vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php:114)
at Smarty_Template_Compiled->render(object(Smarty_Internal_Template))
(vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:217)
at Smarty_Internal_Template->render(false, 0)
(vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php:238)
at Smarty_Internal_TemplateBase->_execute(object(Smarty_Internal_Template), null, null, null, 0)
(vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php:116)
at Smarty_Internal_TemplateBase->fetch('file:404.html')
(local/modules/TheliaSmarty/Template/SmartyParser.php:512)
at TheliaSmarty\Template\SmartyParser->internalRenderer('file', '404.html', array('locale' => 'fr_FR', 'lang_code' => 'fr', 'lang_id' => 1, 'current_url' => 'https://pprd-anselmi.openstudio-lab.com/serviette-40x40-3c-1-8-saumon-p%C3%AAche-00n00--1.html', 'app' => object(stdClass)), true)
(local/modules/TheliaSmarty/Template/SmartyParser.php:540)
at TheliaSmarty\Template\SmartyParser->render('404.html')
(vendor/thelia/core/lib/Thelia/Action/HttpException.php:90)
at Thelia\Action\HttpException->display404(object(ExceptionEvent))
(vendor/thelia/core/lib/Thelia/Action/HttpException.php:49)
at Thelia\Action\HttpException->checkHttpException(object(ExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher))
(vendor/symfony/event-dispatcher/Debug/WrappedListener.php:116)
at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(ExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher))
(vendor/symfony/event-dispatcher/EventDispatcher.php:220)
at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.exception', object(ExceptionEvent))
(vendor/symfony/event-dispatcher/EventDispatcher.php:56)
at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(ExceptionEvent), 'kernel.exception')
(vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:139)
at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(ExceptionEvent), 'kernel.exception')
(vendor/symfony/http-kernel/HttpKernel.php:239)
at Symfony\Component\HttpKernel\HttpKernel->handleThrowable(object(NotFoundHttpException), object(Request), 1)
(vendor/symfony/http-kernel/HttpKernel.php:91)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(vendor/thelia/core/lib/Thelia/Core/TheliaHttpKernel.php:72)
at Thelia\Core\TheliaHttpKernel->handle(object(Request), 1, true)
(vendor/symfony/http-kernel/Kernel.php:197)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request), 1, true)
(vendor/thelia/core/lib/Thelia/Core/Thelia.php:455)
at Thelia\Core\Thelia->handle(object(Request))
(web/index.php:33)
|