That error message shows that your problem is not the same as the issue that the bugfix was for.
But it does suggest that perhaps you've not actually installed and used the files Ajeh posted for you.
Code was installed
Yours is trying to add a new attribute overtop of an option-value record (probably a system-generated record) that already exists instead of correctly renumbering itself as a new record.
So that begs the question: in what ways have you modified the Zen Cart code or database from the original installation? What's the history of this store? Has it had any upgrades? Has it had the database deleted and rebuilt for some reason? Have you manually purged data for some reason? Have you created and deleted numerous products or attributes? What plugins have you installed, if any? etc
No modifications to the code other than installing 1.5.1 files to update. Store is fairly new its been a work in progress. Zen Cart has been used before for a different store that didnt have downloadable files so this is a new issue for me. Dont know how to manually purge data. only one product listed right now for testing purposes only deleted original attributes as they did not work. No plug ins only changed theme to the Appearel Boutique theme. I have made exact copies of directories as a backup before upgrades then deleted files after upgrades didnt work then restored old files
Are you absolutely certain that you've uploaded the files Ajeh gave you and replaced the 3 files with her updated versions?
Yes I did several two or three times
What happens if you manually delete and reset the options-values data in the database, by going to Admin->Tools->Install SQL Patch and paste this code into the box and click Send:
Code:
TRUNCATE TABLE products_options_values;
Does it work any differently after you do that? NOTE: You'll lose ALL existing options-values data by doing that.