Jump to content

prestashop 1.6 not working in localhost


venkat

Recommended Posts

after switch on development mode the fatal error will be raised

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

Link to comment
Share on other sites

  • 2 years later...
On 2/28/2018 at 10:07 AM, venkat said:

localhost is currently unable to handle this request.

The error is too generic and does not tell you exact problem. What you need is to find out what is the real issue. If your site is serving a Internal Server Error, this can be caused by a number of things, such as:

  • Errors in .htaccess files
  • Server permission
  • Server timeout
  • Script timeout 
  • Or some other Web Server Issues

Normally, a permissions issue on the file (or files) would be one cause of the 500 Internal Server Error. The simple solution is to run chmod 644 on the problem file(s) or chmod 755 on the directories.

$ sudo chmod -R 777 /"your files location"

The best way to debug the error depends upon the server and what's actually running at the time. Consider some debugging tips to help diagnose and fix common causes of this problem. 

 

Link to comment
Share on other sites

Hi,

I suppose that there is an incorrect or not supported PHP version issue here.

Please check this compatibility chart : https://devdocs.prestashop.com/1.7/basics/installation/system-requirements/#php-requirements and configure one of the supported PHP version for your prestashop version.

It's recommended to use the same PHP version as it is on your live site, just to have the same version on localhost also.

Kind regards, Leo

Link to comment
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
×
×
  • Create New...