product error on save

Phoca Cart - complex e-commerce extension
vlada83
Phoca Member
Phoca Member
Posts: 29
Joined: 28 Jan 2016, 11:06

product error on save

Post by vlada83 »

Hi, by saving some products i get error

1062 Duplicate entry '127-1' for key 'i_parameter_id'
1062 Duplicate entry '130-3' for key 'i_parameter_id'

not sure why because it occurs only by certain products, not all
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9435
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: product error on save

Post by Benno »

Hi,
Which Phoca Cart Component version do you use?
Which Joomla! Version do you use?
Which PHP version do you use?
Is it a fresh Phoca Cart Component install or a updated version?
If updated from which version updated?
Do you you receive a more detailed error message if you enable Joomla! Debug Mode and Error Message=Maximum

Kind regards,
Benno
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: product error on save

Post by Jan »

Hi, try to open e.g. phpMyAdmin and try to add this SQL query:

Code: Select all

ALTER TABLE `#__phocacart_parameter_values_related` DROP INDEX `i_parameter_id`, ADD UNIQUE `i_parameter_id` (`item_id`, `parameter_value_id`, `parameter_id`);
change #__ to your database prefix, then it should be OK
If you find Phoca extensions useful, please support the project
Post Reply