Jump to content

Attributes and Values


Recommended Posts

Hi,

I'm using PrestaShop version: 1.5.4.1

In the attributes and Values menu, I try to add these things. I add attributes, it all works fine. When I try to add values to those attributes, no matter what I add as a value I get this:

[PrestaShopDatabaseException]

Duplicate entry '8-1' for key 'PRIMARY'

INSERT INTO `ps_attribute_shop` (`id_attribute`, `id_shop`) VALUES ('8', '1')

 

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

 

601. WebserviceRequest::getInstance()->setError(500, '

 '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);

602. }

603. else if (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))

604. {

605. if ($sql)

[color=#F20000][b]606. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');

[/b][/color]607. throw new PrestaShopDatabaseException($this->getMsgError());

608. }

609. }

610.

611. /**

[/font][/color]

[size=3]Any ideas?[/size]

Link to comment
Share on other sites

  • 3 months later...

hey mnemos-

I've experienced something similar,

instead of..

Duplicate entry '8-1' for key 'PRIMARY'

i got stuck with

Duplicate entry '1-1' for key 'PRIMARY'

 

while importing combos..

 

logically in my case I had to eliminate the prod-id column ...

 

(it  give me confirmation message but no combinations are displayed)

 

still ps v1.5.4.1

 

I'll test it a little bit....

Edited by maio (see edit history)
Link to comment
Share on other sites

  • 1 year later...
×
×
  • Create New...