Forums / Bug Reports / Changing/updating Category Title

Changing/updating Category Title

Locked

Views: 1,809

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
31 Mar 2007, 5:56 PM
#1
ericny avatar

ericny

Zen Follower

Join Date:
Jan 2007
Posts:
100
Plugin Contributions:
0

Changing/updating Category Title

When I tried updating/changing Category title I got the following error message:

1062 Duplicate entry '1-1' for key 1
in:
[insert into meta_tags_categories_description (metatags_title, metatags_keywords, metatags_description, categories_id, language_id) values ('TESTING TITLE', '', '', '1', '1')]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

I believe this happens because code is trying to insert a row with the same key into table instead of checking if key already exists and doing UPDATE instead of INSERT

10 Apr 2007, 12:51 AM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Changing/updating Category Title

Thanks for the update! :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!