Jump to content

SOLUCIONADO - PrestaShopDatabaseException Duplicate entry '56-8265' for key 'PRIMARY'


R.Amor

Recommended Posts

Hola de nuevo. Acudo al foro con la esperanza de que ayudéis a solucionar un problema que los de mi servicio de hosting no hicieron.

 

Cuando entro al backoffice de mi Prestashop y voy a la pestaña "Módulos", al hacer click en "Módulos" me sale este texto en la pantalla:

 

[PrestaShopDatabaseException]

Duplicate entry '56-8265' for key 'PRIMARY'

 

ALTER TABLE `ps_layered_product_attribute` ADD PRIMARY KEY (`id_attribute`, `id_product`), DROP KEY `id_attribute`, ADD UNIQUE KEY `id_attribute_group` (`id_attribute_group`,`id_attribute`,`id_product`)

 

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

 

629.             WebserviceRequest::getInstance()->setError(500, '
 '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
630.         }
631.         else if (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))
632.         {
633.             if ($sql)
634.                 throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
635.             throw new PrestaShopDatabaseException($this->getMsgError());
636.         }
637.     }
638.
639.     /**
 
El resto de funciones del panel me funciona perfectamente, así como la propia web. ¿Alguien sabe de qué se trata? Mi versión de Prestashop es la 1.6
Edited by R.Amor (see edit history)
Link to comment
Share on other sites

ok, por ftp, en modules/ renombra la carpeta blocklayered a blocklayered_ a ver si funciona. Si no funciona y da error en otro lado, es por que tiene smal la instalacion de prestashop y lastablas estan sin claves unicas. La unica solucion es una reinstalacion ( o cambiar todo a mano que es un lio enorme)

Link to comment
Share on other sites

  • nadie locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...