Jump to content

Shop not found


Maria Gonzalez

Recommended Posts

Hi,

Since this morning my shop is not working....I did not modify anything....

The error is :

Shop not found
at line 418 in file classes/shop/Shop.php

413. 
414. //echo var_dump($default_shop);
415. 
416. 				// Hmm there is something really bad in your Prestashop !
417.                 if (!Validate::isLoadedObject($default_shop)) {
418.                     throw new PrestaShopException('Shop not found');
419.                 }
420. 
421.                 $params = $_GET;
422.                 unset($params['id_shop']);
423.                 $url = $default_shop->domain;
  • ShopCore::initialize - [line 114 - config/config.inc.php]
    109. 
    110. $context = Context::getContext();
    111. 
    112. /* Initialize the current Shop */
    113. try {
    114.     $context->shop = Shop::initialize();
    115.     $context->theme = new Theme((int)$context->shop->id_theme);
    116.     if ((Tools::isEmpty($theme_name = $context->shop->getTheme()) || !Validate::isLoadedObject($context->theme)) && !defined('_PS_ADMIN_DIR_')) {
    117.         throw new PrestaShopException(Tools::displayError('Current theme unselected. Please check your theme configuration.'));
    118.     }
    119. } catch (PrestaShopException $e) {
    

     

    I removed cache....but nothing changes...

    The problem I think is at:

    $shop = new Shop($id_shop);

    Which creates a null object...

     

    any help please?

     

Link to comment
Share on other sites

Please show the original error message - all lines! They often provide additional information that is needed to understand what is going wrong.

What I also miss is distinction between front and back office. Do I understand it wel that the back office is working and only the front office has a problem?

Link to comment
Share on other sites

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