Prestashop: Error 500 on BO->Configure->Shop Parameters->General,Order Settings and Product Settings

Created on 21 Jun 2019  路  8Comments  路  Source: PrestaShop/PrestaShop

Using Multilanguage and Multistore.

After copy a running installation (backup) to another server, for no reason I have 500 errors
on the backoffice, configuration screens
Configure::Shop Parameters-> General, Order/Product Settings

The other Shop Parameters, like Customer Settings, Search etc do work properly.

Also there are a lot of Depreciated notices in the logs.

The critical one is the Symfony class, NumberFormatter leads to a fail to create a constructor.
Error is not explained properly with more details.

$formatter = new \NumberFormatter(\Locale::getDefault(), \NumberFormatter::DECIMAL);

1. prod.log:

[2019-06-21 02:23:10] request.CRITICAL: Uncaught PHP Exception IntlException: "Constructor failed" at /public_html/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php line 219 {"exception":"[object] (IntlException(code: 0): Constructor failed at /public_html/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php:219)"} 

2. dev.log:

[2019-06-21 01:24:11] doctrine.DEBUG: SELECT name FROM ps_module WHERE active = 1  
[2019-06-21 01:24:20] php.INFO: User Deprecated: The "sensio_framework_extra.routing.loader.annot_class" service is deprecated since version 5.2 {"exception":"[object] (ErrorException(code: 0): User Deprecated: The \"sensio_framework_extra.routing.loader.annot_class\" service is deprecated since version 5.2 at /public_html/var/cache/dev/ContainerWkpzduk/getSensioFrameworkExtra_Routing_Loader_AnnotClassService.php:8)"} 
[2019-06-21 01:24:20] php.INFO: User Deprecated: The "Sensio\Bundle\FrameworkExtraBundle\Routing\AnnotatedRouteControllerLoader" class is deprecated since version 5.2. Use "Symfony\Bundle\FrameworkBundle\Routing\AnnotatedRouteControllerLoader" instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: The \"Sensio\\Bundle\\FrameworkExtraBundle\\Routing\\AnnotatedRouteControllerLoader\" class is deprecated since version 5.2. Use \"Symfony\\Bundle\\FrameworkBundle\\Routing\\AnnotatedRouteControllerLoader\" instead. at /public_html/vendor/sensio/framework-extra-bundle/Routing/AnnotatedRouteControllerLoader.php:19)"} 
[2019-06-21 01:24:20] php.INFO: User Deprecated: The "sensio_framework_extra.routing.loader.annot_dir" service is deprecated since version 5.2 {"exception":"[object] (ErrorException(code: 0): User Deprecated: The \"sensio_framework_extra.routing.loader.annot_dir\" service is deprecated since version 5.2 at /public_html/var/cache/dev/ContainerWkpzduk/getSensioFrameworkExtra_Routing_Loader_AnnotDirService.php:8)"} 
[2019-06-21 01:24:20] php.INFO: User Deprecated: The "sensio_framework_extra.routing.loader.annot_file" service is deprecated since version 5.2 {"exception":"[object] (ErrorException(code: 0): User Deprecated: The \"sensio_framework_extra.routing.loader.annot_file\" service is deprecated since version 5.2 at /public_html/var/cache/dev/ContainerWkpzduk/getSensioFrameworkExtra_Routing_Loader_AnnotFileService.php:8)"} 
[2019-06-21 01:24:20] doctrine.DEBUG: SELECT name FROM ps_module WHERE active = 1  
[2019-06-21 01:24:35] doctrine.DEBUG: SELECT name FROM ps_module WHERE active = 1  
[2019-06-21 01:24:37] doctrine.DEBUG: SELECT name FROM ps_module WHERE active = 1  
...
[2019-06-21 01:25:20] doctrine.DEBUG: SELECT name FROM ps_module WHERE active = 1  
[2019-06-21 01:25:29] php.DEBUG: Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: hostname nor servname provided, or not known {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/public_html/classes/Tools.php\",\"line\":2100,\"trace\":[{\"file\":\"/public_html/classes/Tools.php\",\"line\":2154,\"function\":\"file_get_contents_fopen\",\"class\":\"ToolsCore\",\"type\":\"::\"}],\"count\":1})"} 
[2019-06-21 01:25:29] php.DEBUG: Warning: file_get_contents(https://api.addons.prestashop.com): failed to open stream: php_network_getaddresses: getaddrinfo failed: hostname nor servname provided, or not known  
[2019-06-21 01:25:29] php.DEBUG: Warning: filemtime(): stat failed for /public_html/config/xml/tab_modules_list.xml {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/public_html/classes/controller/AdminController.php\",\"line\":4238,\"trace\":[{\"file\":\"/public_html/classes/controller/AdminController.php\",\"line\":2146,\"function\":\"isFresh\",\"class\":\"AdminControllerCore\",\"type\":\"->\"}],\"count\":1})"} 
[2019-06-21 01:25:29] php.DEBUG: Warning: filemtime(): stat failed for /public_html/adminXXXXXXXXX/themes/default/css/theme.css {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/public_html/classes/Media.php\",\"line\":269,\"trace\":[{\"file\":\"/public_html/classes/Media.php\",\"line\":240,\"function\":\"getMediaPath\",\"class\":\"MediaCore\",\"type\":\"::\"}],\"count\":1})"} 
[2019-06-21 01:25:30] php.DEBUG: Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: hostname nor servname provided, or not known {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/public_html/classes/Tools.php\",\"line\":2100,\"trace\":[{\"file\":\"/public_html/classes/Tools.php\",\"line\":2154,\"function\":\"file_get_contents_fopen\",\"class\":\"ToolsCore\",\"type\":\"::\"}],\"count\":1})"} 
[2019-06-21 01:25:30] php.DEBUG: Warning: file_get_contents(https://api.addons.prestashop.com): failed to open stream: php_network_getaddresses: getaddrinfo failed: hostname nor servname provided, or not known  
[2019-06-21 01:25:30] php.DEBUG: Warning: filemtime(): stat failed for /public_html/config/xml/tab_modules_list.xml {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/public_html/classes/controller/AdminController.php\",\"line\":4238,\"trace\":[{\"file\":\"/public_html/classes/controller/AdminController.php\",\"line\":2146,\"function\":\"isFresh\",\"class\":\"AdminControllerCore\",\"type\":\"->\"}],\"count\":1})"} 
[2019-06-21 01:25:30] php.DEBUG: Warning: filemtime(): stat failed for /public_html/adminXXXXXXXXX/themes/default/css/theme.css {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\SilencedErrorContext: {\"severity\":2,\"file\":\"/public_html/classes/Media.php\",\"line\":269,\"trace\":[{\"file\":\"/public_html/classes/Media.php\",\"line\":240,\"function\":\"getMediaPath\",\"class\":\"MediaCore\",\"type\":\"::\"}],\"count\":1})"} 
[2019-06-21 01:25:31] php.INFO: Deprecated: Function create_function() is deprecated {"exception":"[object] (ErrorException(code: 0): Deprecated: Function create_function() is deprecated at /public_html/modules/gamification/classes/GamificationTools.php:38)"} 
[2019-06-21 01:25:31] php.INFO: Deprecated: Function create_function() is deprecated {"exception":"[object] (ErrorException(code: 0): Deprecated: Function create_function() is deprecated at /public_html/modules/gamification/classes/GamificationTools.php:39)"} 
[2019-06-21 01:25:31] php.INFO: Deprecated: Function create_function() is deprecated {"exception":"[object] (ErrorException(code: 0): Deprecated: Function create_function() is deprecated at /public_html/modules/gamification/classes/GamificationTools.php:40)"} 
...
[2019-06-21 01:25:37] doctrine.DEBUG: SELECT name FROM ps_module WHERE active = 1  
...
[2019-06-21 01:25:37] php.INFO: Deprecated: Function create_function() is deprecated {"exception":"[object] (ErrorException(code: 0): Deprecated: Function create_function() is deprecated at /public_html/modules/gamification/classes/GamificationTools.php:38)"} 
...
[2019-06-21 01:25:38] request.INFO: Matched route "admin_preferences". {"route":"admin_preferences","route_parameters":{"_controller":"PrestaShopBundle\\Controller\\Admin\\Configure\\ShopParameters\\PreferencesController::indexAction","_legacy_controller":"AdminPreferences","_legacy_link":"AdminPreferences","_route":"admin_preferences"},"request_uri":"https://www.shop.fr/adminXXXXXXXXX/index.php/configure/shop/preferences/preferences?_token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","method":"GET"} 
[2019-06-21 01:25:38] php.INFO: Deprecated: Function create_function() is deprecated {"exception":"[object] (ErrorException(code: 0): Deprecated: Function create_function() is deprecated at /public_html/modules/gamification/classes/GamificationTools.php:38)"} 
[2019-06-21 01:25:38] php.INFO: Deprecated: Function create_function() is deprecated {"exception":"[object] (ErrorException(code: 0): Deprecated: Function create_function() is deprecated at /public_html/modules/gamification/classes/GamificationTools.php:39)"} 
...
[2019-06-21 01:25:43] security.INFO: Populated the TokenStorage with an anonymous Token.  
...
[2019-06-21 01:25:44] doctrine.DEBUG: SELECT name FROM ps_module WHERE active = 1  
[2019-06-21 01:25:47] doctrine.DEBUG: SELECT t0.id_lang AS id_lang_1, t0.name AS name_2, t0.active AS active_3, t0.iso_code AS iso_code_4, t0.language_code AS language_code_5, t0.locale AS locale_6, t0.date_format_lite AS date_format_lite_7, t0.date_format_full AS date_format_full_8, t0.is_rtl AS is_rtl_9 FROM ps_lang t0 WHERE t0.locale = ? LIMIT 1 ["en-US"] 
[2019-06-21 01:25:48] doctrine.DEBUG: SELECT p0_.id_translation AS id_translation_0, p0_.`key` AS key_1, p0_.translation AS translation_2, p0_.domain AS domain_3, p0_.theme AS theme_4, p0_.id_lang AS id_lang_5 FROM ps_translation p0_ WHERE p0_.id_lang = ? AND p0_.theme IS NULL AND (p0_.domain REGEXP ?) = 1 [1,"AdminActions"] 
[2019-06-21 01:25:48] doctrine.DEBUG: SELECT p0_.id_translation AS id_translation_0, p0_.`key` AS key_1, p0_.translation AS translation_2, p0_.domain AS domain_3, p0_.theme AS theme_4, p0_.id_lang AS id_lang_5 FROM ps_translation p0_ WHERE p0_.id_lang = ? AND p0_.theme IS NULL AND (p0_.domain REGEXP ?) = 1 [1,"AdminAdvparametersFeature"] 
[2019-06-21 01:25:51] doctrine.DEBUG: SELECT p0_.id_translation AS id_translation_0, p0_.`key` AS key_1, p0_.translation AS translation_2, p0_.domain AS domain_3, p0_.theme AS theme_4, p0_.id_lang AS id_lang_5 FROM 
...
[2019-06-21 01:25:53] doctrine.DEBUG: SELECT p0_.id_translation AS id_translation_0, p0_.`key` AS key_1, p0_.translation AS translation_2, p0_.domain AS domain_3, p0_.theme AS theme_4, p0_.id_lang AS id_lang_5 FROM ps_translation p0_ WHERE p0_.id_lang = ? AND p0_.theme IS NULL AND (p0_.domain REGEXP ?) = 1 [1,"ShopThemeGlobal"] 
[2019-06-21 01:25:53] doctrine.DEBUG: SELECT p0_.id_translation AS id_translation_0, p0_.`key` AS key_1, p0_.translation AS translation_2, p0_.domain AS domain_3, p0_.theme AS theme_4, p0_.id_lang AS id_lang_5 FROM ps_translation p0_ WHERE p0_.id_lang = ? AND p0_.theme IS NULL AND (p0_.domain REGEXP ?) = 1 [1,"messages"] 
[2019-06-21 01:25:53] php.INFO: User Deprecated: The "choices_as_values" option is deprecated since Symfony 3.1 and will be removed in 4.0. You should not use it anymore. {"exception":"[object] (ErrorException(code: 0): User Deprecated: The \"choices_as_values\" option is deprecated since Symfony 3.1 and will be removed in 4.0. You should not use it anymore. at /public_html/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php:279)"} 
[2019-06-21 01:25:53] php.INFO: User Deprecated: The "choices_as_values" option is deprecated since Symfony 3.1 and will be removed in 4.0. You should not use it anymore. {"exception":"[object] (ErrorException(code: 0): User Deprecated: The \"choices_as_values\" option is deprecated since Symfony 3.1 and will be removed in 4.0. You should not use it anymore. at /public_html/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php:279)"} 
[2019-06-21 01:25:53] php.INFO: User Deprecated: The "choices_as_values" option is deprecated since Symfony 3.1 and will be removed in 4.0. You should not use it anymore. {"exception":"[object] (ErrorException(code: 0): User Deprecated: The \"choices_as_values\" option is deprecated since Symfony 3.1 and will be removed in 4.0. You should not use it anymore. at /public_html/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php:279)"} 
[2019-06-21 01:25:53] php.INFO: User Deprecated: Implementing "Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface" without the "reset()" method is deprecated since Symfony 3.4 and will be unsupported in 4.0 for class "Csa\Bundle\GuzzleBundle\DataCollector\GuzzleCollector". {"exception":"[object] (ErrorException(code: 0): User Deprecated: Implementing \"Symfony\\Component\\HttpKernel\\DataCollector\\DataCollectorInterface\" without the \"reset()\" method is deprecated since Symfony 3.4 and will be unsupported in 4.0 for class \"Csa\\Bundle\\GuzzleBundle\\DataCollector\\GuzzleCollector\". at /public_html/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Profiler/Profiler.php:215)"} 
[2019-06-21 01:25:53] php.CRITICAL: Uncaught Exception: Constructor failed {"exception":"[object] (IntlException(code: 0): Constructor failed at /public_html/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php:219)"} 
[2019-06-21 01:25:53] request.CRITICAL: Uncaught PHP Exception IntlException: "Constructor failed" at /public_html/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php line 219 {"exception":"[object] (IntlException(code: 0): Constructor failed at /public_html/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php:219)"} 
[2019-06-21 01:25:58] security.DEBUG: Stored the security token in the session. {"key":"_security_main"} 
[2019-06-21 01:26:04] doctrine.DEBUG: SELECT name FROM ps_module WHERE active = 1  
[2019-06-21 01:26:04] request.INFO: Matched route "_wdt". {"route":"_wdt","route_parameters":{"_controller":"web_profiler.controller.profiler:toolbarAction","token":"f2ea0b","_route":"_wdt"},"request_uri":"https://www.shop.fr/adminXXXXXXXXX/index.php/_wdt/f2ea0b?_token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","method":"GET"} 
[2019-06-21 01:26:05] doctrine.DEBUG: SELECT name FROM ps_module WHERE active = 1  
[2019-06-21 01:26:06] php.INFO: User Deprecated: Implementing "Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface" without the "reset()" method is deprecated since Symfony 3.4 and will be unsupported in 4.0 for class "Csa\Bundle\GuzzleBundle\DataCollector\GuzzleCollector". {"exception":"[object] (ErrorException(code: 0): User Deprecated: Implementing \"Symfony\\Component\\HttpKernel\\DataCollector\\DataCollectorInterface\" without the \"reset()\" method is deprecated since Symfony 3.4 and will be unsupported in 4.0 for class \"Csa\\Bundle\\GuzzleBundle\\DataCollector\\GuzzleCollector\". at /public_html/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Profiler/Profiler.php:215)"} 
[2019-06-21 01:32:30] doctrine.DEBUG: SELECT name FROM ps_module WHERE active = 1  
[2019-06-21 01:32:31] request.INFO: Matched route "admin_preferences". {"route":"admin_preferences","route_parameters":{"_controller":"PrestaShopBundle\\Controller\\Admin\\Configure\\ShopParameters\\PreferencesController::indexAction","_legacy_controller":"AdminPreferences","_legacy_link":"AdminPreferences","_route":"admin_preferences"},"request_uri":"https://www.shop.fr/adminXXXXXXXXX/index.php/configure/shop/preferences/preferences?_token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","method":"GET"} 
[2019-06-21 01:32:31] security.DEBUG: Read existing security token from the session. {"key":"_security_main","token_class":"Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken"} 
[2019-06-21 01:32:31] security.DEBUG: User was reloaded from a user provider. {"provider":"PrestaShopBundle\\Security\\Admin\\EmployeeProvider","username":"[email protected]"} 
[2019-06-21 01:32:32] doctrine.DEBUG: SELECT name FROM ps_module WHERE active = 1  
[2019-06-21 01:32:34] php.INFO: User Deprecated: The "choices_as_values" option is deprecated since Symfony 3.1 and will be removed in 4.0. You should not use it anymore. {"exception":"[object] (ErrorException(code: 0): User Deprecated: The \"choices_as_values\" option is deprecated since Symfony 3.1 and will be removed in 4.0. You should not use it anymore. at /public_html/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php:279)"} 
[2019-06-21 01:32:34] php.INFO: User Deprecated: The "choices_as_values" option is deprecated since Symfony 3.1 and will be removed in 4.0. You should not use it anymore. {"exception":"[object] (ErrorException(code: 0): User Deprecated: The \"choices_as_values\" option is deprecated since Symfony 3.1 and will be removed in 4.0. You should not use it anymore. at /public_html/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php:279)"} 
[2019-06-21 01:32:34] php.INFO: User Deprecated: The "choices_as_values" option is deprecated since Symfony 3.1 and will be removed in 4.0. You should not use it anymore. {"exception":"[object] (ErrorException(code: 0): User Deprecated: The \"choices_as_values\" option is deprecated since Symfony 3.1 and will be removed in 4.0. You should not use it anymore. at /public_html/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php:279)"} 
[2019-06-21 01:32:34] php.INFO: User Deprecated: Implementing "Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface" without the "reset()" method is deprecated since Symfony 3.4 and will be unsupported in 4.0 for class "Csa\Bundle\GuzzleBundle\DataCollector\GuzzleCollector". {"exception":"[object] (ErrorException(code: 0): User Deprecated: Implementing \"Symfony\\Component\\HttpKernel\\DataCollector\\DataCollectorInterface\" without the \"reset()\" method is deprecated since Symfony 3.4 and will be unsupported in 4.0 for class \"Csa\\Bundle\\GuzzleBundle\\DataCollector\\GuzzleCollector\". at /public_html/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Profiler/Profiler.php:215)"} 
[2019-06-21 01:32:34] php.CRITICAL: Uncaught Exception: Constructor failed {"exception":"[object] (IntlException(code: 0): Constructor failed at /public_html/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php:219)"} 
[2019-06-21 01:32:34] request.CRITICAL: Uncaught PHP Exception IntlException: "Constructor failed" at /public_html/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php line 219 {"exception":"[object] (IntlException(code: 0): Constructor failed at /public_html/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php:219)"} 
[2019-06-21 01:32:35] security.DEBUG: Stored the security token in the session. {"key":"_security_main"} 
[2019-06-21 01:32:39] doctrine.DEBUG: SELECT name FROM ps_module WHERE active = 1  
[2019-06-21 01:32:39] request.INFO: Matched route "_wdt". {"route":"_wdt","route_parameters":{"_controller":"web_profiler.controller.profiler:toolbarAction","token":"79f916","_route":"_wdt"},"request_uri":"https://www.shop.fr/adminXXXXXXXXX/index.php/_wdt/79f916?_token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","method":"GET"} 
[2019-06-21 01:32:40] doctrine.DEBUG: SELECT name FROM ps_module WHERE active = 1  
[2019-06-21 01:32:41] php.INFO: User Deprecated: Implementing "Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface" without the "reset()" method is deprecated since Symfony 3.4 and will be unsupported in 4.0 for class "Csa\Bundle\GuzzleBundle\DataCollector\GuzzleCollector". {"exception":"[object] (ErrorException(code: 0): User Deprecated: Implementing \"Symfony\\Component\\HttpKernel\\DataCollector\\DataCollectorInterface\" without the \"reset()\" method is deprecated since Symfony 3.4 and will be unsupported in 4.0 for class \"Csa\\Bundle\\GuzzleBundle\\DataCollector\\GuzzleCollector\". at /public_html/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Profiler/Profiler.php:215)"} 
[2019-06-21 01:33:05] doctrine.DEBUG: SELECT name FROM ps_module WHERE active = 1  
[2019-06-21 01:33:06] request.INFO: Matched route "admin_preferences". {"route":"admin_preferences","route_parameters":{"_controller":"PrestaShopBundle\\Controller\\Admin\\Configure\\ShopParameters\\PreferencesController::indexAction","_legacy_controller":"AdminPreferences","_legacy_link":"AdminPreferences","_route":"admin_preferences"},"request_uri":"https://www.shop.fr/adminXXXXXXXXX/index.php/configure/shop/preferences/preferences?_token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","method":"GET"} 
[2019-06-21 01:33:06] security.DEBUG: Read existing security token from the session. {"key":"_security_main","token_class":"Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken"} 
[2019-06-21 01:33:06] security.DEBUG: User was reloaded from a user provider. {"provider":"PrestaShopBundle\\Security\\Admin\\EmployeeProvider","username":"[email protected]"} 
[2019-06-21 01:33:07] doctrine.DEBUG: SELECT name FROM ps_module WHERE active = 1  
[2019-06-21 01:33:09] php.INFO: User Deprecated: The "choices_as_values" option is deprecated since Symfony 3.1 and will be removed in 4.0. You should not use it anymore. {"exception":"[object] (ErrorException(code: 0): User Deprecated: The \"choices_as_values\" option is deprecated since Symfony 3.1 and will be removed in 4.0. You should not use it anymore. at /public_html/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php:279)"} 
[2019-06-21 01:33:09] php.INFO: User Deprecated: The "choices_as_values" option is deprecated since Symfony 3.1 and will be removed in 4.0. You should not use it anymore. {"exception":"[object] (ErrorException(code: 0): User Deprecated: The \"choices_as_values\" option is deprecated since Symfony 3.1 and will be removed in 4.0. You should not use it anymore. at /public_html/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php:279)"} 
[2019-06-21 01:33:09] php.INFO: User Deprecated: The "choices_as_values" option is deprecated since Symfony 3.1 and will be removed in 4.0. You should not use it anymore. {"exception":"[object] (ErrorException(code: 0): User Deprecated: The \"choices_as_values\" option is deprecated since Symfony 3.1 and will be removed in 4.0. You should not use it anymore. at /public_html/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php:279)"} 
[2019-06-21 01:40:44] php.INFO: User Deprecated: Implementing "Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface" without the "reset()" method is deprecated since Symfony 3.4 and will be unsupported in 4.0 for class "Csa\Bundle\GuzzleBundle\DataCollector\GuzzleCollector". {"exception":"[object] (ErrorException(code: 0): User Deprecated: Implementing \"Symfony\\Component\\HttpKernel\\DataCollector\\DataCollectorInterface\" without the \"reset()\" method is deprecated since Symfony 3.4 and will be unsupported in 4.0 for class \"Csa\\Bundle\\GuzzleBundle\\DataCollector\\GuzzleCollector\". at /public_html/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Profiler/Profiler.php:215)"} 
[2019-06-21 01:42:00] php.CRITICAL: Uncaught Exception: Constructor failed {"exception":"[object] (IntlException(code: 0): Constructor failed at /public_html/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php:219)"} 
[2019-06-21 01:42:00] request.CRITICAL: Uncaught PHP Exception IntlException: "Constructor failed" at /public_html/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php line 219 {"exception":"[object] (IntlException(code: 0): Constructor failed at /public_html/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php:219)"} 
[2019-06-21 01:42:01] security.DEBUG: Stored the security token in the session. {"key":"_security_main"} 
[2019-06-21 01:42:06] doctrine.DEBUG: SELECT name FROM ps_module WHERE active = 1  
[2019-06-21 01:42:07] request.INFO: Matched route "_wdt". {"route":"_wdt","route_parameters":{"_controller":"web_profiler.controller.profiler:toolbarAction","token":"59a536","_route":"_wdt"},"request_uri":"https://www.shop.fr/adminXXXXXXXXX/index.php/_wdt/59a536?_token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","method":"GET"} 
[2019-06-21 01:42:07] doctrine.DEBUG: SELECT name FROM ps_module WHERE active = 1  
[2019-06-21 01:42:08] php.INFO: User Deprecated: Implementing "Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface" without the "reset()" method is deprecated since Symfony 3.4 and will be unsupported in 4.0 for class "Csa\Bundle\GuzzleBundle\DataCollector\GuzzleCollector". {"exception":"[object] (ErrorException(code: 0): User Deprecated: Implementing \"Symfony\\Component\\HttpKernel\\DataCollector\\DataCollectorInterface\" without the \"reset()\" method is deprecated since Symfony 3.4 and will be unsupported in 4.0 for class \"Csa\\Bundle\\GuzzleBundle\\DataCollector\\GuzzleCollector\". at /public_html/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Profiler/Profiler.php:215)"} 

======================================================
Additionnal information
PrestaShop version: 1.7.5.2
PHP version: 7.3.2

1.7.5.2 BO Improvement No change required Shop parameters

Most helpful comment

Yes, I know. As this does check for the php extension intl (the wrapper) which is depreciated to be used. This check should also be removed when polyfill-intl-icu is used or modified if needed to check
the vendor module runs properly including (updates, see bin section in the module)

All 8 comments

Hi @amtriorix,

You can move your Project to a new domain without errors following these steps:

  1. Made a backup for my files & my database
  2. Upload your store's files to your new server
  3. Import the old store's database to the new server
  4. In file /app/config/parameters.php, configure your PrestaShop site.
    4.1. DB_SERVER: database's server;
    4.2. DB_NAME: Name of the database from step 5;
    4.3. DB_USER: User associated with the database;
    4.4. DB_PASSWD: The user's password;
  5. in the Table ps_shop_url, change with the
    5.1. domain => new domain
    5.2. domain_ssl => new domain_ssl
    5.3. physical_uri => new physical_uri
  6. Clear the cache manually by deleting all the folder into var/cache (prod & dev) => could solve your issue

Also, PrestaShop is not compatible with PHP 7.3, in fact, PrestaShop 1.7.0 to 1.7.3 is compatible with PHP 7.1 and PrestaShop 1.7.4 & 1.7.5 are compatible with PHP 7.2.
For more details, you can follow this link: http://build.prestashop.com/news/prestashop-1-7-is-moving-to-symfony-3-4-and-php-5-6/
Thanks to downgrade your version PHP.

Thanks to check & feedback.

Thanks to show the manual steps so far.
But those steps are followed.

On the stage server there are no issues with php 7.3.2 and prestashop.
There are no errors with the same configuration.

However on the development server I have those issues.

When I debug, this commands fails:

$formatter = new \NumberFormatter(\Locale::getDefault(), \NumberFormatter::DECIMAL);

Hi @amtriorix, I'm happy to hear that there is no issue with php7.3.2 on your staging server but as Khouloud said, currently prestashop is not compatible with php7.3. So some parts of the application might work, but there is no guarantee it works globally. Explications about why can be read here: http://build.prestashop.com/news/announcing-end-of-support-for-obsolete-php-versions/

Second, the logs indicate that the failure comes from an IntlException which is an exception thrown when dealing with Intl issues. Meaning: internationatization. So here's 2 things you can check:

  • does your failing server has the right intl extension enabled for prestashop ?
  • what languages and currencies are enabled on your failing server ? maybe there's one not enabled on your stage server, and that would explain the difference

Thanks to matks I could dig more into the the intl (icu) extension of php.

A few things did need to be stated in this regard.

  1. We run php in a chrooted environment, this said, the _right permissions_ should be in place including the load of the _libraries (.so)_ in the chrooted environment

In fact there are many issues online due to the permissions and not loaded properly the libraries.

ldd /usr/local/bin/icuinfo
/usr/local/bin/icuinfo:
        libicutu.so.63 => not found (0)
        libicui18n.so.63 => not found (0)
        libicuuc.so.63 => not found (0)
        libicudata.so.63 => not found (0)
        libthr.so.3 => /lib/libthr.so.3 (0x800822000)
        libm.so.5 => /lib/libm.so.5 (0x800a4a000)
        libc++.so.1 => /usr/lib/libc++.so.1 (0x800c77000)
        libcxxrt.so.1 => /lib/libcxxrt.so.1 (0x800f45000)
        libc.so.7 => /lib/libc.so.7 (0x801164000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x801520000)

On freebsd this is needed in the root of the chrooted path :

/chroot-root/var/run/ld-elf.so.hints

which leads to the correct load of the libraries:

ldconfig -r | grep icu
        135:-licuuc.63 => /usr/local/lib/libicuuc.so.63
        174:-licui18n.63 => /usr/local/lib/libicui18n.so.63
        193:-licuio.63 => /usr/local/lib/libicuio.so.63
        195:-licudata.63 => /usr/local/lib/libicudata.so.63
        200:-licutu.63 => /usr/local/lib/libicutu.so.63
        217:-licutest.63 => /usr/local/lib/libicutest.so.63
# chroot /yeah/you/wanna/know/chroot-rootpath
# icuinfo
 <icuSystemParams type="icu4c">
    <param name="copyright"> Copyright (C) 2016 and later: Unicode, Inc. and others. License & terms of use: http://www.unicode.org/copyright.html </param>
     <param name="product">icu4c</param>
     <param name="product.full">International Components for Unicode for C/C++</param>
     <param name="version">63.1</param>
     <param name="version.unicode">11.0</param>
     <param name="platform.number">3000</param>
     <param name="platform.type">BSD</param>
     <param name="locale.default">en_US_POSIX</param>
     <param name="locale.default.bcp47">en-US-u-va-posix</param>
     <param name="converter.default">US-ASCII</param>
     <param name="icudata.name">icudt63l</param>
     <param name="icudata.path">/usr/local/share/icu/63.1</param>
     <param name="cldr.version">34.0</param>
     <param name="tz.version">2018e</param>
     <param name="tz.default">UTC</param>
     <param name="cpu.bits">64</param>
     <param name="cpu.big_endian">0</param>
     <param name="os.wchar_width">4</param>
     <param name="os.charset_family">0</param>
     <param name="os.host">amd64-portbld-freebsdXX.X</param>
     <param name="build.build">amd64-portbld-freebsdXX.X</param>
     <param name="build.cc">cc</param>
     <param name="build.cxx">c++</param>
     <param name="uconfig.internal_digitlist">1</param>
     <param name="uconfig.have_parseallinput">1</param>
  </icuSystemParams>
> 
> 

ICU Initialization returned: U_ZERO_ERROR
Plugins are disabled.

2: php.ini should ADDITIONALLY define the right default settings for this module, to avoid
issues with a not defined locale at object creation.

#php -i | grep intl

/usr/local/etc/php/ext-20-intl.ini,
intl
intl.default_locale => en_utf8 => en_utf8
intl.error_level => 2 => 2
intl.use_exceptions => 0 => 0

so in php.ini, do define:

cat /usr/local/etc/php.ini | grep intl.
[intl]
intl.default_locale = en_utf8
; happens within intl functions. The value is the level of the error produced.
intl.error_level = E_WARNING
;intl.use_exceptions = 0
  1. test script (put in root of website
<?php
// title: icu wrapper php test script
// auth : amtriorix
//

echo 'Test Intl (icu wrapper)' . '<br />';

echo 'Step 1' . '<br /><br />';

$coll  = collator_create('en_US');
// $coll = collator_create('en_utf8');
// $coll = collator_create();

if( !isset( $coll ) ) {
    printf( "Collator creation failed: %s\n", intl_get_error_message() );
    exit( 1 );
}
echo 'Step 2' . '<br /><br />';

$coll = new Collator('en_US');                                                                                              

echo ' Collator created' . '<br />';                                                                                        

$al   = $coll->getLocale(Locale::ACTUAL_LOCALE);                                                                            
echo "Actual locale: $al\n" . '<br /><br />';                                                                               

$formatter = new NumberFormatter('en_US', NumberFormatter::DECIMAL);                                                        
echo $formatter->format(1234567) . '<br /><br />';                                                                          

echo 'Step 3' . '<br /><br />';                                                                                             

$list = transliterator_list_ids(); // get the list
natcasesort ($list); // sort in an alphabetical order
foreach ($list as $v) // iterate
 echo $v . '\n' . '<br />'; // print
exit;

IMPORTANT: This said I suggest to escalate this ticket anyway, not as bug but as improvement, because of this reason:

This php extension is only a poor WRAPPER to icu4c and is depreciated to be used in development.

it is recommended, Prestashop should not rely on this module at all but should use the methods in the symfony module (this module seems already to be in the vendor section of Prestashop):

vendor/symfony/polyfill-intl-icu
ref: https://github.com/symfony/polyfill-intl-icu

Request for improvement.

Hi @amtriorix,

In fact, we have check if intl extension is loaded before running install.
Here's the PR: https://github.com/PrestaShop/PrestaShop/pull/11937
About your suggestion

Prestashop should not rely on this module at all but should use the methods in the symfony module (this module seems already to be in the vendor section of Prestashop):
vendor/symfony/polyfill-intl-icu
ref: https://github.com/symfony/polyfill-intl-icu

ping @colinegin, @PrestaShop/prestashop-core-developers what do you think?
Thanks

Yes, I know. As this does check for the php extension intl (the wrapper) which is depreciated to be used. This check should also be removed when polyfill-intl-icu is used or modified if needed to check
the vendor module runs properly including (updates, see bin section in the module)

Regarding the system requirements of Prestashop https://devdocs.prestashop.com/1.7/basics/installation/system-requirements/#php-requirements php7.3 is not compatible with PS 1.7.5.2
Please consider updating to 1.7.7 or use php 7.2 to run your PS version

Can we close this issue ?

Hi @amtriorix,

Since we had no news from you for more than 30 days, I'll close this ticket. Feel free to open another one if you can give specific details.

THanks!

Was this page helpful?
0 / 5 - 0 ratings