Jump to content

Fatal error: Uncaught Error: [] operator not supported for strings

Recommended Posts

I tried to install for testing purposes an existing prestashop project on laravel's forge which is having ngix and mariadb. I've uploaded all my php files inside the public folder but when I'm trying to load the page I'm getting the following error message




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

Does anyone know how I can fix this issue? I'm using prestashop

Share this post

Link to post
Share on other sites

  • 2 months later...

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

  • Create New...

Important Information

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