Jump to content

blank page on the website Fatal error: Uncaught exception 'PrestaShopException'


Recommended Posts

My website is built on Prestashop 1.5.4.1

 

My site was working fine till last week. Both the admin and front end was working fine, both locally and on the server. On the local server in my system, the site is working absolutely fine. I am facing a problem on the live server

 

From the past few days, I have been getting a blank page online at the server.

 

Upon checking the error log i found the following error::

 

Fatal error: Uncaught exception 'PrestaShopException' with message 'Shop not found' in /home/thebaker/public_html/demo/classes/shop/Shop.php:369 Stack trace: #0 /home/thebaker/public_html/demo/config/config.inc.php(91): ShopCore::initialize() #1 /home/thebaker/public_html/demo/index.php(27): require('/home/thebaker/...') #2 {main} thrown in /home/thebaker/public_html/demo/classes/shop/Shop.php on line 369
 
Admin login page is showing me the following error.
 
 

Warning: Invalid argument supplied for foreach() in /home/thebaker/public_html/demo/classes/Language.php on line 671

Warning: Invalid argument supplied for foreach() in /home/thebaker/public_html/demo/classes/Language.php on line 671

Warning: Invalid argument supplied for foreach() in /home/thebaker/public_html/demo/classes/Tab.php on line 261

Warning: Invalid argument supplied for foreach() in /home/thebaker/public_html/demo/classes/Tab.php on line 208

Warning: Invalid argument supplied for foreach() in /home/thebaker/public_html/demo/classes/Profile.php on line 145

Warning: Invalid argument supplied for foreach() in /home/thebaker/public_html/demo/classes/controller/AdminController.php on line 1250

Warning: Invalid argument supplied for foreach() in /home/thebaker/public_html/demo/classes/Tab.php on line 231

Warning: Invalid argument supplied for foreach() in /home/thebaker/public_html/demo/classes/Language.php on line 671

Warning: Invalid argument supplied for foreach() in /home/thebaker/public_html/demo/classes/module/Module.php on line 969

Warning: Invalid argument supplied for foreach() in /home/thebaker/public_html/demo/classes/module/Module.php on line 164

Warning: Invalid argument supplied for foreach() in /home/thebaker/public_html/demo/modules/watermark/watermark.php on line 55

Warning: Invalid argument supplied for foreach() in /home/thebaker/public_html/demo/classes/module/Module.php on line 1115

 
 
 
I have tried implementing solutions like changing the permissions at the server(from 755 to 775) and also uploading a new .htaccess file but i am unable to solve this issue.
 
Can someone please help me in this. I am newbie at prestashop and this is my first post. Please please help!!! I have spent a week in solving this and I am not able to find any solution :(
Edited by apatan (see edit history)
Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...

Hi, 

 

I had a similar problem and the same error message after migrating it. 

 

The issue for me was. 

 

ps_shop not correctly configured. 

 

It should configure from the settings in backoffice > preferences > seo and url.

 

In my case it wasn't doing it because the ps_product_download table went mad, grew up to 1 Gb and saturated the DB. 

 

So no changes were possible on the DB. 

 

If you don't have dowloadable produts check the size of this table, delete it if ridicoulisly big and try doing ps_shop settings. 

 

Definitly back everything up before you try things like this. 

 

Hope it helps. 

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...