whiskywil Posted October 13, 2023 Share Posted October 13, 2023 (edited) Good Morning, i have an update problem : My config : Prestashop 1.7.6.7 PHP 7.2 Cyberpanel. last version, no cache modules. When i try to upgrade i have this error : [INTERNAL] /home/tradicook.com/public_html/src/PrestaShopBundle/Translation/TranslatorLanguageLoader.php line 59 - TypeError: Argument 1 passed to PrestaShopBundle\Translation\TranslatorLanguageLoader::__construct() must be an instance of PrestaShop\PrestaShop\Adapter\Module\Repository\ModuleRepository, boolean given, called in /home/tradicook.com/public_html/classes/Context.php on line 431 #0 /home/tradicook.com/public_html/classes/Context.php(431): PrestaShopBundle\Translation\TranslatorLanguageLoader->__construct(true) #1 /home/tradicook.com/public_html/classes/Context.php(384): ContextCore->getTranslatorFromLocale('fr-FR') #2 /home/tradicook.com/public_html/classes/Translate.php(282): ContextCore->getTranslator() #3 /home/tradicook.com/public_html/modules/autoupgrade/classes/UpgradeTools/Translator.php(60): TranslateCore::getModuleTranslation('autoupgrade', 'Initializing re...', 'AdminSelfUpgrad...', NULL) #4 /home/tradicook.com/public_html/modules/autoupgrade/classes/UpgradeTools/CoreUpgrader/CoreUpgrader.php(87): PrestaShop\Module\AutoUpgrade\UpgradeTools\Translator->trans('Initializing re...', Array, 'Modules.Autoupg...') #5 /home/tradicook.com/public_html/modules/autoupgrade/classes/TaskRunner/Upgrade/UpgradeDb.php(43): PrestaShop\Module\AutoUpgrade\UpgradeTools\CoreUpgrader\CoreUpgrader->doUpgrade() #6 /home/tradicook.com/public_html/AdminW737477/autoupgrade/ajax-upgradetab.php(53): PrestaShop\Module\AutoUpgrade\TaskRunner\Upgrade\UpgradeDb->run() #7 {main} Probably because i had the bad idea to remove the language suffix in the url few year ago. (/fr)... i do not remind me how and Impossible to fix that by myself, if anybody could help me to find a way to resolve that issue it would be great. Thank you. Edited October 13, 2023 by whiskywil (see edit history) Link to comment Share on other sites More sharing options...
musicmaster Posted October 15, 2023 Share Posted October 15, 2023 Things go wrong when it executes UpgradeDb(). Did you make changes in the database structure? Link to comment Share on other sites More sharing options...
whiskywil Posted October 16, 2023 Author Share Posted October 16, 2023 (edited) Yes I removed the English table, but I have reinstall the language behind (which is suppose to recreate the table?) and i still have the error. I am going to check the db tomorrow. Thank you -Merci- Edited October 16, 2023 by whiskywil (see edit history) Link to comment Share on other sites More sharing options...
whiskywil Posted October 17, 2023 Author Share Posted October 17, 2023 Nope, unfortunately, i do not see any thing weird ... any ideas ? Thank you very much Link to comment Share on other sites More sharing options...
musicmaster Posted October 18, 2023 Share Posted October 18, 2023 On 10/16/2023 at 2:15 AM, whiskywil said: Yes I removed the English table, but I have reinstall the language behind (which is suppose to recreate the table?) and i still have the error. What English table? Never suppose such a thing! Link to comment Share on other sites More sharing options...
Zohaib-fk Posted October 18, 2023 Share Posted October 18, 2023 Hi, You can compare the count of tables and any column missing as compared to the default installation of a database of the same version. If any table or column is called in the code, if it is missing then an error will come. As you said in a previous message about the English table or language suffix change, it might not be done correctly. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now