lionak69 Posted June 30, 2022 Share Posted June 30, 2022 Hi, My eshop on Prestashop 1.7.6 has suddenly stopped working, following error is shown if I switch the DEV mode on, please can someone guide me how to take it forward? The server PHP version is 7.4 and another eshop on same server with same version of prestashop is working fine. Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /home1/athay8cq/public_html/transportlawtexts/eshop/src/Adapter/EntityMapper.php on line 99 Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /home1/athay8cq/public_html/transportlawtexts/eshop/src/Adapter/EntityMapper.php on line 99 Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /home1/athay8cq/public_html/transportlawtexts/eshop/src/Adapter/EntityMapper.php on line 99 Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /home1/athay8cq/public_html/transportlawtexts/eshop/src/Adapter/EntityMapper.php on line 99 Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /home1/athay8cq/public_html/transportlawtexts/eshop/src/Adapter/EntityMapper.php on line 99 Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /home1/athay8cq/public_html/transportlawtexts/eshop/src/Adapter/EntityMapper.php on line 99 Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /home1/athay8cq/public_html/transportlawtexts/eshop/src/Adapter/EntityMapper.php on line 99 Warning: simplexml_load_file(): I/O warning : failed to load external entity "" in /home1/athay8cq/public_html/transportlawtexts/eshop/src/Core/Localization/CLDR/Reader.php on line 152 Notice: Trying to get property 'parentLocales' of non-object in /home1/athay8cq/public_html/transportlawtexts/eshop/src/Core/Localization/CLDR/Reader.php on line 212 Notice: Trying to get property 'parentLocale' of non-object in /home1/athay8cq/public_html/transportlawtexts/eshop/src/Core/Localization/CLDR/Reader.php on line 212 Warning: Invalid argument supplied for foreach() in /home1/athay8cq/public_html/transportlawtexts/eshop/src/Core/Localization/CLDR/Reader.php on line 212 Notice: Trying to get property 'parentLocales' of non-object in /home1/athay8cq/public_html/transportlawtexts/eshop/src/Core/Localization/CLDR/Reader.php on line 212 Notice: Trying to get property 'parentLocale' of non-object in /home1/athay8cq/public_html/transportlawtexts/eshop/src/Core/Localization/CLDR/Reader.php on line 212 Warning: Invalid argument supplied for foreach() in /home1/athay8cq/public_html/transportlawtexts/eshop/src/Core/Localization/CLDR/Reader.php on line 212 Notice: Trying to get property 'supplementalData' of non-object in /home1/athay8cq/public_html/transportlawtexts/eshop/src/Core/Localization/CLDR/Reader.php on line 533 Fatal error: Uncaught Error: Call to a member function xpath() on null in /home1/athay8cq/public_html/transportlawtexts/eshop/src/Core/Localization/CLDR/Reader.php:533 Stack trace: #0 /home1/athay8cq/public_html/transportlawtexts/eshop/src/Core/Localization/CLDR/Reader.php(289): PrestaShop\PrestaShop\Core\Localization\CLDR\Reader->mapLocaleData(Object(SimpleXMLElement), Array) #1 /home1/athay8cq/public_html/transportlawtexts/eshop/src/Core/Localization/CLDR/Reader.php(106): PrestaShop\PrestaShop\Core\Localization\CLDR\Reader->getLocaleData('root') #2 /home1/athay8cq/public_html/transportlawtexts/eshop/src/Core/Localization/CLDR/DataLayer/LocaleReference.php(80): PrestaShop\PrestaShop\Core\Localization\CLDR\Reader->readLocaleData('en_US') #3 /home1/athay8cq/public_html/transportlawtexts/eshop/src/Core/Data/Layer/AbstractDataLayer.php(90): PrestaShop\PrestaShop\Core\Localization\CLDR\DataLayer\LocaleReference->doRead('en-US') #4 /home1/athay8cq/public_html/transportlawtexts/eshop/src/Core/Data/Layer/AbstractDataLayer.php(15 in /home1/athay8cq/public_html/transportlawtexts/eshop/src/Core/Localization/CLDR/Reader.php on line 533 Link to comment Share on other sites More sharing options...
Rhobur Posted July 1, 2022 Share Posted July 1, 2022 You are probably left with the wrong version of the src/Adapter/EntityMapper.php for your current Prtestashop. Replace it with the one from the default PS package. Link to comment Share on other sites More sharing options...
lionak69 Posted July 1, 2022 Author Share Posted July 1, 2022 Thanks for your reply, I checked and it was the correct file, nevertheless I replaced it with no difference in results. Any further inputs would be appreciated. Link to comment Share on other sites More sharing options...
Rhobur Posted July 1, 2022 Share Posted July 1, 2022 if you replaced it and still get the same error then you have to delete the var/cache/* completely. Link to comment Share on other sites More sharing options...
lionak69 Posted July 1, 2022 Author Share Posted July 1, 2022 Did that already, before sending this request for help. Did that again just now but it did not help. Link to comment Share on other sites More sharing options...
Rhobur Posted July 1, 2022 Share Posted July 1, 2022 it is impossible to get the same error message because the correct. EntityMapper doesn't have that code on line #99 anymore. Link to comment Share on other sites More sharing options...
lionak69 Posted July 2, 2022 Author Share Posted July 2, 2022 I checked with Prestashop 1.7.6 package, is that what you are referring to too? Link to comment Share on other sites More sharing options...
Prestachamps Posted July 2, 2022 Share Posted July 2, 2022 Hi @lionak69, Most probably the issue is coming from your PHP version. Please switch the PHP version to 7.2(or ask your hosting to switch it to 7.2), as your PS version is not compatible with 7.4 : https://devdocs.prestashop.com/1.7/basics/installation/system-requirements/#php-compatibility-chart Hope I can help, Have a nice day, Leo. Link to comment Share on other sites More sharing options...
lionak69 Posted July 2, 2022 Author Share Posted July 2, 2022 Yes, I realise that. But the another same version installation of Prestashop on same server is working fine - https://eshop.athayurdhamah.com. Also, It is a shared server and they would not revert it to 7.2 Any further ideas please? 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