Jump to content

ERROR - PrestaShop Database Exception


ANTONIOF

Recommended Posts

Hola! Después de intentar actualizar mi tienda a la versión más nueva, utilizando el módulo 1-Click Upgrade, la tienda no me carga, ni tampoco el backoffice!!

Me aparece este error. Cómo puedo solucionarlo???

[PrestaShopDatabaseException]

Table 'db702496021.ps_shop_url' doesn't exist
 

SELECT s.id_shop, CONCAT(su.physical_uri, su.virtual_uri) AS uri, su.domain, su.main
                    FROM ps_shop_url su
                    LEFT JOIN ps_shop s ON (s.id_shop = su.id_shop)
                    WHERE (su.domain = 'mumtobe.es' OR su.domain_ssl = 'mumtobe.es')
                        AND s.active = 1
                        AND s.deleted = 0
                    ORDER BY LENGTH(CONCAT(su.physical_uri, su.virtual_uri)) DESC


at line 744 in file classes/db/Db.php

 

739.         if ($webservice_call && $errno) {
740.             $dbg = debug_backtrace();
741.             WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
742.         } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) {
743.             if ($sql) {
744.                 throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
745.             }
746. 
747.             throw new PrestaShopDatabaseException($this->getMsgError());
748.         }
749.     }
  • DbCore->displayError - [line 378 - classes/db/Db.php] - [1 Arguments]
    373.                 $this->result = $this->_query($sql);
    374.             }
    375.         }
    376. 
    377.         if (_PS_DEBUG_SQL_) {
    378.             $this->displayError($sql);
    379.         }
    380. 
    381.         return $this->result;
    382.     }
    383. 
    
  • DbCore->query - [line 596 - classes/db/Db.php] - [1 Arguments]
    591.                 throw new PrestaShopDatabaseException('Db->executeS() must be used only with select, show, explain or describe queries');
    592.             }
    593.             return $this->execute($sql, $use_cache);
    594.         }
    595. 
    596.         $this->result = $this->query($sql);
    597. 
    598.         if (!$this->result) {
    599.             $result = false;
    600.         } else {
    601.             if (!$array) {
    
  • DbCore->executeS - [line 344 - classes/shop/Shop.php] - [1 Arguments]
    339.                     WHERE (su.domain = \''.pSQL($host).'\' OR su.domain_ssl = \''.pSQL($host).'\')
    340.                         AND s.active = 1
    341.                         AND s.deleted = 0
    342.                     ORDER BY LENGTH(CONCAT(su.physical_uri, su.virtual_uri)) DESC';
    343. 
    344.             $result = Db::getInstance()->executeS($sql);
    345. 
    346.             $through = false;
    347.             foreach ($result as $row) {
    348.                 // An URL matching current shop was found
    349.                 if (preg_match('#^'.preg_quote($row['uri'], '#').'#i', $request_uri)) {
    
  • ShopCore::initialize - [line 120 - config/config.inc.php]
    115. 
    116. $context = Context::getContext();
    117. 
    118. /* Initialize the current Shop */
    119. try {
    120.     $context->shop = Shop::initialize();
    121. } catch (PrestaShopException $e) {
    122.     $e->displayMessage();
    123. }
    124. define('_THEME_NAME_', $context->shop->theme->getName());
    125. define('_PARENT_THEME_NAME_', $context->shop->theme->get('parent') ?: '');
    
  • require - [line 43 - admin/index.php] - [1 Arguments]
    38. 
    39. if (!defined('PS_ADMIN_DIR')) {
    40.     define('PS_ADMIN_DIR', _PS_ADMIN_DIR_);
    41. }
    42. 
    43. require(_PS_ADMIN_DIR_.'/../config/config.inc.php');
    44. 
    45. //small test to clear cache after upgrade
    46. if (Configuration::get('PS_UPGRADE_CLEAR_CACHE')) {
    47.     header('Cache-Control: max-age=0, must-revalidate');
    48.     header('Expires: Mon, 06 Jun 1985 06:06:00 GMT+1');
Link to comment
Share on other sites

  • 3 months later...
  • 4 months later...
32 minutes ago, tecnicomalaga said:

Hola, me sucede lo mismo. ¿Alguna solucion? Lo raro es que estoy restableciendo una copia de seguridad y me dice lo mismo

Hola, si yo lo solucione

 

32 minutes ago, tecnicomalaga said:

Hola, me sucede lo mismo. ¿Alguna solucion? Lo raro es que estoy restableciendo una copia de seguridad y me dice lo mismo

Hola, si yo lo solucioné pidiendo a mi proveedor de hosting una copia de seguridad de la base de datos, es diferente a la copia de seguridad del hosting, me cobraron 90 euros, yo tengo mas de 500 prendas en la web y me mereció la pena pagarlo, no se si tienes un proyecto o es una web operativa. 

 

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