Thread: Attribute error

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Apr 2006
    Posts
    21
    Plugin Contributions
    0

    Default Attribute error

    What does this mean? It come when I try to add an option value to an option name. Basically I'm still a beginner, sorted out one issue now on to this one. I learn quick so thanks to anyone that can help!

    1062 Duplicate entry '1-1' for key 1
    in:
    [insert into zen_products_options_values (products_options_values_id, language_id, products_options_values_name, products_options_values_sort_order) values ('1', '1', 'Red', '0')]
    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.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Attribute error

    It looks like you either manually tried to clean out your database tables or moved databases or otherwise lost the auto increment settings ...

    You could run, AFTER a backup of your database, the file:

    /zc_install/sql/db_rebuild_autoincrement.sql

    This will rebuild the auto increment fields ...
    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!

  3. #3
    Join Date
    Apr 2006
    Posts
    21
    Plugin Contributions
    0

    Default Re: Attribute error

    Thanks. I of course wouldn't have thought of that so I'll give it a shot. You're a big help!

  4. #4
    Join Date
    Feb 2005
    Posts
    283
    Plugin Contributions
    0

    Default Re: Attribute error

    Hi I am having the same problem but with amending category titles - I have posted in general questions - so apologies for posting twice but this kind of matches my issue - I have ran the patch as suggested above but I still get the following error when adding or amending a category mete tag title

    1062 Duplicate entry '1-1' for key 1
    in:
    [insert into welshtartans_zmeta_tags_categories_description (metatags_title, metatags_keywords, metatags_description, categories_id, language_id) values ('Welsh Cilt Regalia', '', '', '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.

  5. #5
    Join Date
    Apr 2006
    Posts
    21
    Plugin Contributions
    0

    Default Re: Attribute error

    So..referring to the advice you gave me on my attribute error thread:

    You could run, AFTER a backup of your database, the file:

    /zc_install/sql/db_rebuild_autoincrement.sql

    This will rebuild the auto increment fields ...

    Can you step me through this very simply. I have made my backup but the idiot question is how do I run
    /zc_install/sql/db_rebuild_autoincrement.sql

    I added it onto my domain but the page won't load.

    any suggestion? Thank you so much.

    Jeff
    Sportsguy

  6. #6
    Join Date
    Feb 2005
    Posts
    283
    Plugin Contributions
    0

    Default Re: Attribute error

    I ran this by opening that file up in notepad and then going to admin and then tools?install sql patches and running it there.

    (back up back up back up!! - my mantra before doing anything :-)

  7. #7
    Join Date
    Apr 2006
    Posts
    21
    Plugin Contributions
    0

    Default Re: Attribute error

    Thanks Peanut,

    OK, I opened in Notepad. Then do I copy to the text area in Tools admin install sql patches? Or....do I upload the notepad file.

    This is not my area of expertise but I learn quickly from this forum.

  8. #8
    Join Date
    Feb 2005
    Posts
    283
    Plugin Contributions
    0

    Default Re: Attribute error

    Hello

    You copy everything to the text area in tools>install sql patches - then hit execute

    (Again back up before you do anything)

    This basically runs this query on your database.

    I am no expert and everything I have learned about databases, sql patches etc has also been picked up from here !

  9. #9
    Join Date
    Apr 2006
    Posts
    21
    Plugin Contributions
    0

    Default Re: Attribute error

    Ok, so I copied the text and hit "send". I get the whole query filling up my browser page and done. What do I do after that? I checked and my attributes still gave me the same error.

  10. #10
    Join Date
    Aug 2006
    Location
    ulaanbaatar
    Posts
    94
    Plugin Contributions
    0

    Default Re: Attribute error

    Hello
    After configuring product attribute I've an error msg at my user side web, in product browsing:
    Fatal error: Call to undefined function zen_truncate_paragraph() in C:\Program Files\...\htdocs\zen\includes\modules\meta_tags.php on line 271
    What it points to? Please advise me.
    Thanks mate

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v155 Attribute controller - error message when adding attribute values
    By rustwood in forum General Questions
    Replies: 8
    Last Post: 11 Jul 2016, 10:26 PM
  2. Attribute error
    By enquirer66 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Apr 2008, 07:31 AM
  3. Attribute Error
    By jakumpe in forum Setting Up Categories, Products, Attributes
    Replies: 16
    Last Post: 26 Nov 2007, 05:46 AM
  4. Attribute error
    By julie.t in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 10 Feb 2007, 05:39 PM
  5. Attribute Error
    By PeteH in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 28 Oct 2006, 05:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg