THELIA Forum

Welcome to the THELIA support and discusssion forum

Announcement

Rejoignez la communauté sur le Discord Thelia : https://discord.gg/YgwpYEE3y3

Offline


Bonjour,

Depuis que j'ai voulu mettre à jour Thelia 2.0.0 en 2.0.2, la page login bug et il n'y a que le header qui s'affiche et le titre connexion.
Voici l'erreur que j'ai dans les logs apache :


[Mon Aug 04 15:55:55.263883 2014] [:error] [pid 13420:tid 1712] [client ::1:57276] PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message 'Incorrect value `return_to` for parameter `to` in `navigate` substitution.' in C:\\wamp\\www\\thelia\\core\\lib\\Thelia\\Core\\Template\\Smarty\\Plugins\\UrlGenerator.php:170\nStack trace:\n#0 C:\\wamp\\www\\thelia\\core\\lib\\Thelia\\Core\\Template\\Smarty\\Plugins\\UrlGenerator.php(95): Thelia\\Core\\Template\\Smarty\\Plugins\\UrlGenerator->getNavigateToMethod('return_to')\n#1 C:\\wamp\\www\\thelia\\cache\\prod\\smarty\\compile\\97d9688c2c99b383d1dad60c060d9e6b45b67ddd.file.login.html.php(350): Thelia\\Core\\Template\\Smarty\\Plugins\\UrlGenerator->navigateToUrlFunction(Array, Object(Smarty_Internal_Template))\n#2 C:\\wamp\\www\\thelia\\core\\vendor\\smarty\\smarty\\libs\\sysplugins\\smarty_internal_templatebase.php(180): content_53df90ea9e5c53_83041622(Object(Smarty_Internal_Template))\n#3 C:\\wamp\\www\\thelia\\core\\lib\\Thelia\\Core\\Template\\Smarty\\SmartyParser.php(231): Smarty_Internal_TemplateBase->fetch('file:login.html')\n#4 C:\\wamp\\www\\thelia\\core\\lib\\Thelia\\Core\\Template\\Smarty\\SmartyParser.php(247): in C:\\wamp\\www\\thelia\\core\\lib\\Thelia\\Core\\Template\\Smarty\\Plugins\\UrlGenerator.php on line 170, referer: http://localhost/thelia/web/cart

Une idée ?

Last edited by bill django (06-08-2014 13:47:44)

Offline


Oui, le message d'erreur te donne la source du problème :

Incorrect value `return_to` for parameter `to` in `navigate` substitution.

En effet, return_to n'est plus un paramètre valide (je ne me souviens plus depuis quand):

la doc thelia 2 wrote:

The {navigate}function is a convenient way to generate URLs pointing to common locations. This function has only one parameter, to, which may take one of the following values:

    current: this is the absolute URL of the current page
    previous : this is the absolute URL of the previous page
    index : this is the absolute URL of the shop home page

Il te faut rechercher "return_to" dans ton template, et le remplacer par la veleur valide (current, previous ou index). Plus d'infos dans la doc: http://doc.thelia.net/en/documentation/ … paths.html


OpenStudio Toulouse

Offline


Ah oui bien vu, il y a eu des modifications dans le template default de Thelia. Ayant crée un nouveau template, il fallait que je répercute ces changements dans mon template.

Merci !