Sandr123 Posted February 1, 2019 Share Posted February 1, 2019 Bonjour à tous, J'essaye d'importer le module mailchimp (https://addons.prestashop.com/en/newsletter-sms/26957-mailchimp.html) sur mon 1.6.0.9. Impossible, voici ce que j'obtiens : Fatal error: Call to undefined method Language::getIDs() in /home/xxxxx/www/modules/mailchimppro/src/PrestaChamps/PrestaShop/Tab/TabInstaller.php on line 54 [PrestaShop] Fatal error in module TabInstaller: Call to undefined method Language::getIDs() Que puis-je faire pour que cela fonctionne ? Merci d'avance. Sandrine. Link to comment Share on other sites More sharing options...
daleykd Posted February 5, 2019 Share Posted February 5, 2019 Same thing just happened to me. I don't have an answer, though. Link to comment Share on other sites More sharing options...
daleykd Posted February 5, 2019 Share Posted February 5, 2019 OK. I know we have a difference in language here, and I'm in the process of throwing PrestaShop away and moving to WooCommerce. Here's what I found; hopefully it helps. It worked for me. I'm currently on PrestaShop 1.6.0.14. That particular version did not have the getIDs() function in the /classes/Language.php file. I went and looked at the github repository for PrestaShop, and just looked at version 1.6.1.1. I found the missing function and did the following: In cPanel, open your File Manager. Navigate to the classes/Language.php file. Make a backup! Edit the file. Locate the getLanguages function (mine was line 578). Replace that function with the following, then save the file. Try to install again. public static function getLanguages($active = true, $id_shop = false, $ids_only = false) { if (!self::$_LANGUAGES) { Language::loadLanguages(); } $languages = array(); foreach (self::$_LANGUAGES as $language) { if ($active && !$language['active'] || ($id_shop && !isset($language['shops'][(int)$id_shop]))) { continue; } $languages[] = $ids_only ? $language['id_lang'] : $language; } return $languages; } public static function getIDs($active = true, $id_shop = false) { return self::getLanguages($active, $id_shop, true); } Link to comment Share on other sites More sharing options...
Sandr123 Posted February 27, 2019 Author Share Posted February 27, 2019 Thanks a lot for your help but tt doesn't work. My website shut down. It seems that I had to buy a module (no choice) : https://www.prestatoolbox.fr/publicite-marketing/406-synchronisation-ultime-de-prestashop-avec-mailchimp.html or https://addons.prestashop.com/fr/newsletter-sms/1543-synchronisation-ultime-de-prestashop-avec-mailchimp.html?ab=1&_ga=2.44557540.1364564061.1551101965-202341496.1549026643 Thanks again. Sandrine 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