Jump to content

[Résolu] Autoupgrade 1.3.5 (1.4.11->1.6.0.5) : PrestashopException - Shop not found


Recommended Posts

Bonjour,

En utilisant autoupgrade v1.3.5 de la version 1.4.11 vers 1.6.0.5, j'obtiens une "Mise à jour réalisée avec succès" mais lors du rafraîchissement de la page j'obtiens :

 

[PrestaShopException]

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

381.                 // No shop found ... too bad, let's redirect to default shop
382.                 $default_shop = new Shop(Configuration::get('PS_SHOP_DEFAULT'));
383.
384.                 // Hmm there is something really bad in your Prestashop !
385.                 if (!Validate::isLoadedObject($default_shop))
386.                     throw new PrestaShopException('Shop not found');
387.
388.                 $params = $_GET;
389.                 unset($params['id_shop']);
390.                 $url = $default_shop->domain;
391.                 if (!Configuration::get('PS_REWRITING_SETTINGS'))
 

ShopCore::initialize - [line 94 - config/config.inc.php]

 

88. $context = Context::getContext();
89.
90. /* Initialize the current Shop */
91. try
92. {
93.     $context->shop = Shop::initialize();
94.     $context->theme = new Theme((int)$context->shop->id_theme);
95.     if ((Tools::isEmpty($theme_name = $context->shop->getTheme()) || !Validate::isLoadedObject($context->theme)) && !defined('_PS_ADMIN_DIR_'))
96.         throw new PrestaShopException(Tools::displayError('Current theme unselected. Please check your theme configuration.'));
97. }

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

 
 
Si certains ont déjà rencontré ce problème, leur avis est bienvenu.
Edited by Hobbes (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...

Après avoir pris contact avec la "forge", il s'agit d'un bug qui a été résolu pour le passage vers la 1.6 (mais pas pour un passage vers la 1.5) avec la dernière version 1.3.11 du module autoupgrade.

En fait, il s'agit du dossier "override" qui contenait encore un fichier shop.php. En le supprimant tout est rentré dans l'ordre.

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