Jump to content

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


Recommended Posts

[PrestaShopException]

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

394.                 // No shop found ... too bad, let's redirect to default shop
395.                 $default_shop = new Shop(Configuration::get('PS_SHOP_DEFAULT'));
396.
397.                 // Hmm there is something really bad in your Prestashop !
398.                 if (!Validate::isLoadedObject($default_shop))
399.                     throw new PrestaShopException('Shop not found');
400.
401.                 $params = $_GET;
402.                 unset($params['id_shop']);
403.                 $url = $default_shop->domain;
404.                 if (!Configuration::get('PS_REWRITING_SETTINGS'))

 

  • ShopCore::initialize - [line 97 - config/config.inc.php]
    91. $context = Context::getContext();
    92.
    93. /* Initialize the current Shop */
    94. try
    95. {
    96.     $context->shop = Shop::initialize();
    97.     $context->theme = new Theme((int)$context->shop->id_theme);
    98.     if ((Tools::isEmpty($theme_name = $context->shop->getTheme()) || !Validate::isLoadedObject($context->theme)) && !defined('_PS_ADMIN_DIR_'))
    99.         throw new PrestaShopException(Tools::displayError('Current theme unselected. Please check your theme configuration.'));
    100. }
    101. catch (PrestaShopException $e)
 
 
  • require - [line 34 - admin/index.php] - [1 Arguments]
    28.     define('_PS_ADMIN_DIR_', getcwd());
    29.
    30. if (!defined('PS_ADMIN_DIR'))
    31.     define('PS_ADMIN_DIR', _PS_ADMIN_DIR_);
    32.
    33. require(_PS_ADMIN_DIR_.'/../config/config.inc.php');
    34. require(_PS_ADMIN_DIR_.'/functions.php');
    35.
    36. //small test to clear cache after upgrade
    37. if (Configuration::get('PS_UPGRADE_CLEAR_CACHE'))
    38. {

After Upgrade 1.4.11  to 1.6.0.9 ....  

It was this error.

 

Pls help me...

Edited by [email protected] (see edit history)
Link to comment
Share on other sites

  • 6 months later...

Pls help me!!

I edited the "Translation e-mail" in "Location -> Translation". During the confirmation order by the customer an error: 500 Internal Error.

 

In the logs I have a message: "Shop not found at line 403 in file classesshopShop.php".

 

Pls help me quickly.

Link to comment
Share on other sites

  • 2 months later...

Hi all,

 

I have problems but I dont know to fix.

 

My site have create on localhost and store on folder ../sites/store1 (good).

I have backup folder and db from ../sites/store1 to ../sites/store2 and run

http://localhost/sites/store2 have errors (the attachment file)

Please help me find the errors,

 

Thanks,

 

post-1092969-0-93391300-1443367841_thumb.png

post-1092969-0-74573400-1443368013_thumb.png

Edited by hophuc (see edit history)
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...