jrgrafisk Posted February 7, 2023 Share Posted February 7, 2023 www.nettotruck.dk has crashed since one.com updated to php 8.0. I haven't worked with the site for about 1 year, and now I kinda just want to kill the site and build a new one from scratch. However, if i can manage to update to prestashop 8.0 i might be able to save something from this site. (yes i have backups of databases and files) Can someone point me to a guide on how to update the current site to Prestashop 8.0? Current error on the site: Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, Shop given in /customers/0/8/2/nettotruck.dk/httpd.www/src/Adapter/EntityMapper.php:99 Stack trace: #0 /customers/0/8/2/nettotruck.dk/httpd.www/src/Adapter/EntityMapper.php(99): array_key_exists('id_shop', Object(Shop)) #1 /customers/0/8/2/nettotruck.dk/httpd.www/classes/ObjectModel.php(264): PrestaShop\PrestaShop\Adapter\EntityMapper->load('1', NULL, Object(Shop), Array, NULL, true) #2 /customers/0/8/2/nettotruck.dk/httpd.www/classes/shop/Shop.php(128): ObjectModelCore->__construct('1', NULL, NULL) #3 /customers/0/8/2/nettotruck.dk/httpd.www/classes/shop/Shop.php(411): ShopCore->__construct('1') #4 /customers/0/8/2/nettotruck.dk/httpd.www/config/config.inc.php(118): ShopCore::initialize() #5 /customers/0/8/2/nettotruck.dk/httpd.www/index.php(27): require('/customers/0/8/...') #6 {main} thrown in /customers/0/8/2/nettotruck.dk/httpd.www/src/Adapter/EntityMapper.php on line 99 Link to comment Share on other sites More sharing options...
idnovate.com Posted February 8, 2023 Share Posted February 8, 2023 So which PS and PHP version are you running now? Link to comment Share on other sites More sharing options...
jrgrafisk Posted February 9, 2023 Author Share Posted February 9, 2023 19 hours ago, idnovate.com said: So which PS and PHP version are you running now? PHP is 8.0. PS is 1.7 - something. I actually just want my attributes and products to be maintained. The rest could use a rework after all. Link to comment Share on other sites More sharing options...
idnovate.com Posted February 9, 2023 Share Posted February 9, 2023 I'd recommend you to move your store to another hosting which still mantains PHP 7.4. Link to comment Share on other sites More sharing options...
Nickz Posted February 9, 2023 Share Posted February 9, 2023 (edited) 9 hours ago, jrgrafisk said: I actually just want my attributes and products to be maintained. The rest could use a rework after all. Take a VPS and freeze your php for a while, it gives you time to work on a solution for the future. You can have a usefull VPS for as little as €60 a year. Edited February 9, 2023 by Nickz (see edit history) 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