Jump to content

ContextErrorException in smarty_internal_templatebase.php(157) : eval()'d code line 423


Recommended Posts

Bonjour,

 

Je prépare une boutique en Prestashop 1.7.1

 

Lorsque je suis en mode Debug, j'obtiens cette erreur : 

 

ContextErrorException in smarty_internal_templatebase.php(157) : eval()'d code line 423:Notice: Undefined index: url
  1. in smarty_internal_templatebase.php(157) : eval()'d code line 423
  2. at ErrorHandler->handleError('8', 'Undefined index: url', '/var/www/vhosts/lacoshop.pro/www/vendor/prestashop/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code', '423', array('_smarty_tpl' => object(Smarty_Dev_Template), '_tpl_stack' => array(), '_from' => array('new' => array('type' => 'new', 'label' => 'Nouveau')))) in smarty_internal_templatebase.php(157) : eval()'d code line 423
  3. at content_58f6221db9cda7_20569462(object(Smarty_Dev_Template)) in smarty_internal_templatebase.php line 188
  4. at Smarty_Internal_TemplateBase->fetch('catalog/product.tpl', null, 'layouts/layout-full-width.tpl', nullfalsetruefalse) in SmartyDev.php line 41
  5. at SmartyDev->fetch('catalog/product.tpl', null, 'layouts/layout-full-width.tpl') in FrontController.php line 660
  6. at FrontControllerCore->smartyOutputContent('catalog/product.tpl') in FrontController.php line 644
  7. at FrontControllerCore->display() in Controller.php line 225
  8. at ControllerCore->run() in Dispatcher.php line 369
  9. at DispatcherCore->dispatch() in index.php line 28

Je ne sais pas d'où cela provient...

 

Quelqu'un pourrait-il m'aider ?

 

Merci à vous

Kevin

Link to comment
Share on other sites

  • 3 weeks later...

Dans mon cas c'était un problème avec le fichier Sitemap.

 

J'ai eu un problème similaire à l'instant en changeant de version à la 1.7.1.1.

J'ai pris les fichiers dans le thème classic.

- /templates/cms/sitemap.tpl

- /templates/cms/_partials/sitemap-nested-list.tpl

Pour les insérer dans mon thème.

 

Dans ton cas, c'est surement un fichier .tpl qui fait appel à un autre fichier qui n'existe pas. Ou tu as des variables qui n'existent pas. Regarde bien du coté des templates, les fichiers sont mentionnés dans le message d'erreur. Tu auras ceux qui te posent problème.

 

Cette erreur tu l'as sur toutes les pages ou sur une page précise?

Edited by klemonnier (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...