Jump to content

error 500 - prestashop 1.6.1 migrate php 5.4 to php 7.1


srtxema
 Share

Recommended Posts

hi, i am migrating from php 5.4 to 7.1 and i obtain error 500. Debug show me it

Fatal error: Uncaught Error: [] operator not supported for strings in /var/www/vhosts/website/web/classes/db/DbQuery.php:95 Stack trace: #0 /var/www/vhosts/website/web/Adapter/Adapter_EntityMapper.php(45): DbQueryCore->from('shop', 'a') #1 /var/www/vhosts/website/web/classes/ObjectModel.php(233): Adapter_EntityMapper->load('1', NULL, Object(Shop), Array, NULL, true) #2 /var/www/vhosts/website/web/classes/shop/Shop.php(131): ObjectModelCore->__construct('1', NULL, NULL) #3 /var/www/vhosts/website/web/classes/shop/Shop.php(397): ShopCore->__construct('1') #4 /var/www/vhosts/website/web/config/config.inc.php(114): ShopCore::initialize() #5 /var/www/vhosts/website/web/index.php(27): require('/var/www/vhosts...') #6 {main} thrown in /var/www/vhosts/website/web/classes/db/DbQuery.php on line 95

 

Can anyone help me? thanks!

Share this post


Link to post
Share on other sites

  • 2 months later...

There are a lot of changes between PHP5.4 and 7. 

Shops working on php5 should IMHO consider redoing their Basesite.

The benefits are plentiful. New databases react much faster. Plus many more.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More