THELIA Forum

Welcome to the THELIA support and discusssion forum

Announcement

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

Offline


J'ai voulu compléter la traduction du module loyalty mais suite à l'enregistrement le site est planté (back et front) voici le log:

57: ERROR [ErrorListener.php:logException()] {109} 2020-06-16 12:56:41:Uncaught exceptionThe "php~" translation loader is not registered.
Stack Trace: #0 /var/www/html/thelia/core/vendor/symfony/translation/Translator.php(306): Symfony\Component\Translation\Translator->doLoadCatalogue('fr_FR')
#1 /var/www/html/thelia/core/vendor/symfony/translation/Translator.php(292): Symfony\Component\Translation\Translator->initializeCatalogue('fr_FR')
#2 /var/www/html/thelia/core/lib/Thelia/Core/Translation/Translator.php(90): Symfony\Component\Translation\Translator->loadCatalogue('fr_FR')
#3 /var/www/html/thelia/local/modules/TheliaSmarty/Template/Plugins/Translation.php(92): Thelia\Core\Translation\Translator->trans('Welcome', Array, 'bo.default', 'fr_FR', true, true)
#4 /var/www/html/thelia/cache/dev/smarty/compile/baf5e41238986a9b284a0634693d579731f7c3f7.file.login.html.php(58): TheliaSmarty\Template\Plugins\Translation->translate(Array, Object(Smarty_Internal_Template))
#5 /var/www/html/thelia/core/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(188): content_5ee8a55aa63709_11165110(Object(Smarty_Internal_Template))
#6 /var/www/html/thelia/local/modules/TheliaSmarty/Template/SmartyParser.php(381): Smarty_Internal_TemplateBase->fetch('file:login.html')
#7 /var/www/html/thelia/local/modules/TheliaSmarty/Template/SmartyParser.php(424): TheliaSmarty\Template\SmartyParser->internalRenderer('file', 'login.html', Array, true)
#8 /var/www/html/thelia/core/lib/Thelia/Controller/Admin/BaseAdminController.php(390): TheliaSmarty\Template\SmartyParser->render('login.html', Array)
#9 /var/www/html/thelia/core/lib/Thelia/Controller/Admin/BaseAdminController.php(346): Thelia\Controller\Admin\BaseAdminController->renderRaw('login.html', Array)
#10 /var/www/html/thelia/core/lib/Thelia/Controller/Admin/SessionController.php(73): Thelia\Controller\Admin\BaseAdminController->render('login')
#11 [internal function]: Thelia\Controller\Admin\SessionController->showLoginAction()
#12 /var/www/html/thelia/core/vendor/symfony/http-kernel/HttpKernel.php(139): call_user_func_array(Array, Array)
#13 /var/www/html/thelia/core/vendor/symfony/http-kernel/HttpKernel.php(62): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Thelia\Core\HttpFoundation\Request), 1)
#14 /var/www/html/thelia/core/lib/Thelia/Core/TheliaHttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Thelia\Core\HttpFoundation\Request), 1, true)
#15 /var/www/html/thelia/core/lib/Thelia/Core/Stack/ParamInitMiddleware.php(87): Thelia\Core\TheliaHttpKernel->handle(Object(Thelia\Core\HttpFoundation\Request), 1, true)
#16 /var/www/html/thelia/core/lib/Thelia/Core/Stack/SessionMiddleware.php(80): Thelia\Core\Stack\ParamInitMiddleware->handle(Object(Thelia\Core\HttpFoundation\Request), 1, true)
#17 /var/www/html/thelia/core/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Thelia\Core\Stack\SessionMiddleware->handle(Object(Thelia\Core\HttpFoundation\Request), 1, true)
#18 /var/www/html/thelia/core/vendor/symfony/http-kernel/Kernel.php(185): Stack\StackedHttpKernel->handle(Object(Thelia\Core\HttpFoundation\Request), 1, true)
#19 /var/www/html/thelia/web/index_dev.php(38): Symfony\Component\HttpKernel\Kernel->handle(Object(Thelia\Core\HttpFoundation\Request))
#20 {main}

Last edited by PLG (17-06-2020 13:24:18)

Offline


Salut,

est-ce que tu as bien tout refermé tes balises et tes ' ou " suite à tes traductions ?

Est-ce que quand tu remets le fichier d'origine ça rentre dans l'ordre ?


v2.4.4

Offline


Peut-être que le message d’erreur qui s'affiche en page d'accueil est plus explicite, perso je ne comprends pas ce que le module de traduction a pu faire, peut-être en bdd mais j'ai rien trouvé.

RuntimeException in Translator.php line 414: The "php~" translation loader is not registered.

    in Translator.php line 414
    at Translator->doLoadCatalogue('fr_FR') in Translator.php line 306
    at Translator->initializeCatalogue('fr_FR') in Translator.php line 292
    at Translator->loadCatalogue('fr_FR') in Translator.php line 90
    at Translator->trans('Welcome', array(), 'bo.default', 'fr_FR', true, true) in Translation.php line 92
    at Translation->translate(array('l' => 'Welcome'), object(Smarty_Internal_Template)) in baf5e41238986a9b284a0634693d579731f7c3f7.file.login.html.php line 58
    at content_5ee8d845384931_20692285(object(Smarty_Internal_Template)) in smarty_internal_templatebase.php line 188
    at Smarty_Internal_TemplateBase->fetch('file:login.html') in SmartyParser.php line 381
    at SmartyParser->internalRenderer('file', 'login.html', array('edit_language_id' => '1', 'edit_language_locale' => 'fr_FR', 'edit_currency_id' => '1', 'locale' => 'fr_FR', 'lang_code' => 'fr', 'lang_id' => '1', 'current_url' => 'http://192.168.0.2/thelia/web/index_dev.php/admin/login', 'app' => object(stdClass)), true) in SmartyParser.php line 424
    at SmartyParser->render('login.html', array('edit_language_id' => '1', 'edit_language_locale' => 'fr_FR', 'edit_currency_id' => '1', 'locale' => 'fr_FR', 'lang_code' => 'fr', 'lang_id' => '1', 'current_url' => 'http://192.168.0.2/thelia/web/index_dev.php/admin/login', 'app' => object(stdClass))) in BaseAdminController.php line 390
    at BaseAdminController->renderRaw('login.html', array('edit_language_id' => '1', 'edit_language_locale' => 'fr_FR', 'edit_currency_id' => '1')) in BaseAdminController.php line 346
    at BaseAdminController->render('login') in SessionController.php line 73
    at SessionController->showLoginAction()
    at call_user_func_array(array(object(SessionController), 'showLoginAction'), array()) in HttpKernel.php line 139
    at HttpKernel->handleRaw(object(Request), '1') in HttpKernel.php line 62
    at HttpKernel->handle(object(Request), '1', true) in TheliaHttpKernel.php line 76
    at TheliaHttpKernel->handle(object(Request), '1', true) in ParamInitMiddleware.php line 87
    at ParamInitMiddleware->handle(object(Request), '1', true) in SessionMiddleware.php line 80
    at SessionMiddleware->handle(object(Request), '1', true) in StackedHttpKernel.php line 23
    at StackedHttpKernel->handle(object(Request), '1', true) in Kernel.php line 185
    at Kernel->handle(object(Request)) in index_dev.php line 38

Offline


Je n'ai pas modifié directement les fichiers mais je suis passé par l'admin-> traduction. Dans le doute j'ai remis le fichier original du module mais rien n'a changé.

Offline


Tu as édité le fichier avec un outil qui a créé un backup nommé nomdefichier.php~ (note le tilde)

Supprime ce fichier et tout va remarcher.


OpenStudio Toulouse

Offline


Oui c'est ça merci Roadster. L’éditeur de fichier en mode root laisse un backup mais pas en mode utilisateur qui est le mode normal. Coup de chaud.