Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2012
    Posts
    13
    Plugin Contributions
    0

    Default Error when opening Attribute Controller

    Apologies if this is in the wrong section.

    I am getting an error when trying to click on the Attribute Controller.
    I get the following error:

    1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'int)PRODUCTS_OPTIONS_VALUES_TEXT_ID, 1, 'TEXT')' at line 1
    in:
    [INSERT INTO products_options_values (products_options_values_id, language_id, products_options_values_name) VALUES ((int)PRODUCTS_OPTIONS_VALUES_TEXT_ID, 1, 'TEXT')]
    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.

    Can someone please let me know how I can fix this?

    Thanks
    Kerry

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Error when opening Attribute Controller

    Quote Originally Posted by kerrydunk View Post
    I am getting an error when trying to click on the Attribute Controller.
    I get the following error:

    1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'int)PRODUCTS_OPTIONS_VALUES_TEXT_ID, 1, 'TEXT')' at line 1
    This looks like you are missing a Database record. If you are lucky, the problem will 'fix itself' by simply navigating your way to catalog->option_value_manager.

    From the zencart code I see........
    // check for damaged database, caused by users indiscriminately deleting table data

    Followed by this code, which looks like it fixes the missing data.

    $db->Execute("INSERT INTO " . TABLE_PRODUCTS_OPTIONS_VALUES . " (products_options_values_id, language_id, products_options_values_name) VALUES (" . (int)PRODUCTS_OPTIONS_VALUES_TEXT_ID . ", " . (int)$languages[$i]['id'] . ", 'TEXT')");

    I could be way off the mark here though.

    Cheers
    RodG

 

 

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. Fatal Error when opening Payments Modules
    By dgsignal in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 18 Sep 2008, 11:59 PM
  3. Error when opening modules/payment
    By Mobilemick in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 15 May 2007, 07:50 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