Thread: Attribute error

Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Attribute error

    Quote Originally Posted by LostSheep View Post
    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
    Looks like you are missing a function in:
    /includes/functions/functions_general.php
    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!

  2. #12
    Join Date
    Jul 2010
    Posts
    3
    Plugin Contributions
    0

    Default Re: Attribute error

    Well, I had been facing the same problem of 1062 Duplicate entry for few days. I struggled a lot finding the fix to this but to my dismay neither could I find the correct fix in this forum nor elsewhere. To all you Zenners who are facing this problem, here's the solution:

    Most of these errors are caused when we accidentally try to delete or update an invalid entry. Or say if there's nothing in the database yet and we are trying to delete something off it, so be careful from next time. An invalidated update and upgrade could be the trouble-maker too!

    You should go to your Zen Database and check for your tables, you can do so either from going to your Database Control Panel (if your current Host supports this) or through phpMyAdmin. You have to check what is causing this error 1062 for example, if you get something like this:
    1062 Duplicate entry '1-1' for key 1
    in:
    [insert into zen_products_options_values (products_options_values_id, language_id,.............

    then you should check zen_products_options_values table and the associated fields. If your Zen Cart is fairly new or is in the production phase then you can check one of these associated fields and truncate its values. Once you are done - this error should be gone.

    In my case, I was just testing a new cart and didn't mind truncating values. PLEASE BACKUP YOUR DATABASE BEFORE YOU DO ANY MODIFICATIONS WITH YOUR TABLES/FIELDS AND ITS VALUES.

    Good Luck!

  3. #13
    Join Date
    Jul 2010
    Posts
    3
    Plugin Contributions
    0

    Default Re: Attribute error

    Well, I had been facing the same problem of 1062 Duplicate entry for few days. I struggled a lot finding the fix to this but to my dismay neither could I find the correct fix in this forum nor elsewhere. To all you Zenners who are facing this problem, here's the solution:

    Most of these errors are caused when we accidentally try to delete or update an invalid entry. Or say if there's nothing in the database yet and we are trying to delete something off it, so be careful from next time. An invalidated update and upgrade could be the trouble-maker too!

    You should go to your Zen Database and check for your tables, you can do so either from going to your Database Control Panel (if your current Host supports this) or through phpMyAdmin. You have to check what is causing this error 1062 for example, if you get something like this:
    1062 Duplicate entry '1-1' for key 1
    in:
    [insert into zen_products_options_values (products_options_values_id, language_id,.............
    then you should check zen_products_options_values table and the associated fields. If your Zen Cart is fairly new or is in the production phase then you can check one of these associated fields and truncate its values. Once you are done - this error should be gone.

    In my case, I was just testing a new cart and didn't mind truncating values. PLEASE BACKUP YOUR DATABASE BEFORE YOU DO ANY MODIFICATIONS WITH YOUR TABLES/FIELDS AND ITS VALUES.

    Good Luck!

 

 
Page 2 of 2 FirstFirst 12

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