Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Nov 2005
    Posts
    278
    Plugin Contributions
    0

    application error SQL File Error - URGENT HELP NEEDED PLEASE

    Hi All,

    Can anyone help me to resolve this error at all. I'm trying to put the following sql database file in via admin for a new site design:

    DELETE FROM `configuration_group` WHERE `configuration_group_title` LIKE 'Tabbed Products Config' LIMIT 1;
    DELETE FROM `configuration` WHERE `configuration_description` LIKE 'Set this to 1%' LIMIT 11;
    INSERT INTO configuration_group VALUES ('', 'Tabbed Products Config', 'Tabbed Products Lite Config', '1', '1');
    SELECT @gid := configuration_group_id FROM `configuration_group` where `configuration_group_title` LIKE 'Tabbed Products Config';
    UPDATE configuration_group SET sort_order = @gid WHERE configuration_group_id = @gid;
    INSERT INTO configuration VALUES ('', 'Global Product Description Tab', 'GLOBAL_PROD_DESC_ON_TAB', '1', 'Set this to 1 if you want all products to have the Main Product Description on its own tab', @gid, '11', now(), now(), NULL, "zen_cfg_select_option(array('0', '1'),");
    INSERT INTO configuration VALUES ('', 'Global Main Image On Tab', 'GLOBAL_MAIN_IMAGE_ON_TAB', '0', 'Set this to 1 if you want the product main image on the first tab', @gid, '11', now(), now(), NULL, "zen_cfg_select_option(array('0', '1'),");
    INSERT INTO configuration VALUES ('', 'Global Add To Cart Tab', 'GLOBAL_ADD_TO_CART_ON_TAB', '0', 'Set this to 1 if you want the add to cart button on a tab. Note this includes Add To Cart, Qty Discounts, and Option Attributes. The add to cart option will add itself to the first tab if using any custom tabs, otherwise it will make its own tab, which will be the first tab. This keeps the Add to cart button in view at all times no matter the configuration', @gid, '11', now(), now(), NULL, "zen_cfg_select_option(array('0', '1'),");
    INSERT INTO configuration VALUES ('', 'Global Additional Images Tab', 'GLOBAL_ADDL_IMAGES_ON_TAB', '1', 'Set this to 1 if you want the additional images for a product on its own tab', @gid, '11', now(), now(), NULL, "zen_cfg_select_option(array('0', '1'),");
    INSERT INTO configuration VALUES ('', 'Global Customers Also Purchased Tab', 'GLOBAL_CUST_ALSO_PURCH_ON_TAB', '1', 'Set this to 1 if you want the Customers Also Purchased module on its own tab', @gid, '11', now(), now(), NULL, "zen_cfg_select_option(array('0', '1'),");
    INSERT INTO configuration VALUES ('', 'Global Media Collection Tab', 'GLOBAL_MEDIA_COLLECTION_ON_TAB', '0', 'Set this to 1 if you want the Media Collection module on its own tab. (MUSIC PRODUCT TYPE ONLY)', @gid, '11', now(), now(), NULL, "zen_cfg_select_option(array('0', '1'),");
    INSERT INTO configuration VALUES ('', 'Cross Sell Is Installed', 'CROSS_SELL_IS_INSTALLED', '0', 'Set this to 1 ONLY if you have the Cross Sell contrib installed as per the Cross Sell contribs instructions. This will give an error if you enable this to true without already having it installed', @gid, '11', now(), now(), NULL, "zen_cfg_select_option(array('0', '1'),");
    INSERT INTO configuration VALUES ('', 'Global Cross Sell Tab', 'GLOBAL_CROSS_SELL_ON_TAB', '0', 'Set this to 1 if you want the Cross Sell module on its own tab. This will only work if the setting \"Cross Sell Is Installed\" above is set to 1', @gid, '11', now(), now(), NULL, "zen_cfg_select_option(array('0', '1'),");
    INSERT INTO configuration VALUES ('', 'Show Tab Headers', 'SHOW_TAB_HEADERS', '1', 'Set this to 1 if you want a header bar to appear under the tabs, above the tab content', @gid, '11', now(), now(), NULL, "zen_cfg_select_option(array('0', '1'),");
    INSERT INTO configuration VALUES ('', 'Show Tab Headers when Javascript is Off', 'SHOW_TAB_HEADERS_NO_JSCRIPT', '1', 'Set this to 1 if you want the header to appear under the tabs when javascript is off. This makes it look nicer and more organized if the customer has javascript off and separates each section with a header bar. Can be used even if the normal Show Tab Header is set to false.', @gid, '11', now(), now(), NULL, "zen_cfg_select_option(array('0', '1'),");
    INSERT INTO configuration VALUES ('', 'Global Reviews Tab', 'GLOBAL_REVIEWS_ON_TAB', '1', 'Set this to 1 if you want the Product Reviews to show up on its own tab.', @gid, '11', now(), now(), NULL, "zen_cfg_select_option(array('0', '1'),");
    INSERT INTO configuration VALUES ('', 'Global Use Sub Tags', 'GLOBAL_USE_SUB_TAGS', '1', 'Set this to 1 to allow the use of sub tags to allow more than one core module to appear on the same tab.', @gid, '11', now(), now(), NULL, "zen_cfg_select_option(array('0', '1'),");

    But when I copy and paste it then submit it I get the following error message:

    1048 Column 'configuration_group_id' cannot be null
    in:
    [INSERT INTO zen_configuration VALUES ('', 'Global Product Description Tab', 'GLOBAL_PROD_DESC_ON_TAB', '1', 'Set this to 1 if you want all products to have the Main Product Description on its own tab', @gid, '11', now(), now(), 1, "zen_cfg_select_option(array('0', '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.


    What does this mean and how do I fix this?

    Hope you can help.
    Thanks,
    Adam.

  2. #2
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: SQL File Error - URGENT HELP NEEDED PLEASE

    It means what it says - you have to give the configuration_group_id an id, or number e.g.

    Code:
    INSERT INTO configuration_group VALUES ('1', 'Tabbed Products Config', 'Tabbed Products Lite Config', '1', '1');
    Vger

  3. #3
    Join Date
    Nov 2005
    Posts
    278
    Plugin Contributions
    0

    Default Re: SQL File Error - URGENT HELP NEEDED PLEASE

    Quote Originally Posted by Vger View Post
    It means what it says - you have to give the configuration_group_id an id, or number e.g.

    Code:
    INSERT INTO configuration_group VALUES ('1', 'Tabbed Products Config', 'Tabbed Products Lite Config', '1', '1');
    Vger
    I get this error message then:

    1062 Duplicate entry '1' for key 1
    in:
    [INSERT INTO zen_configuration_group VALUES ('1', 'Tabbed Products Config', 'Tabbed Products Lite Config', '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.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: SQL File Error - URGENT HELP NEEDED PLEASE

    You're trying to insert a '1' value when one already exists.
    Try NULL instead of '1' if you want it to auto-select a group number.
    Or, choose an unused one, and implement it consistently.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: SQL File Error - URGENT HELP NEEDED PLEASE

    Obviously you have to give it a id (number) which does not already exist in the configuration_group table.

    Working with SQL queries is something where you really need to know what you are doing. You can seriously mess up your website if you don't.

    Vger

  6. #6
    Join Date
    Nov 2005
    Posts
    278
    Plugin Contributions
    0

    Default Re: SQL File Error - URGENT HELP NEEDED PLEASE

    Quote Originally Posted by DrByte View Post
    You're trying to insert a '1' value when one already exists.
    Try NULL instead of '1' if you want it to auto-select a group number.
    Or, choose an unused one, and implement it consistently.
    NULL will not work just get the same error message, how do I know what number to use?

  7. #7
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: SQL File Error - URGENT HELP NEEDED PLEASE

    Quote Originally Posted by Adds View Post
    NULL will not work just get the same error message, how do I know what number to use?
    If the field is auto_increment, then NULL should work fine. If it's not auto_increment, you probably have several things broken in your database.

    If you have to pick one, just pick one not already used !!
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Nov 2005
    Posts
    278
    Plugin Contributions
    0

    Default Re: SQL File Error - URGENT HELP NEEDED PLEASE

    Quote Originally Posted by DrByte View Post
    If the field is auto_increment, then NULL should work fine. If it's not auto_increment, you probably have several things broken in your database.

    If you have to pick one, just pick one not already used !!
    How will I know if there is an issue with my database? I have had no issues before just with the upload of this new template design???

    Is there away of resolving this?

  9. #9
    Join Date
    Nov 2005
    Posts
    278
    Plugin Contributions
    0

    Default Re: SQL File Error - URGENT HELP NEEDED PLEASE

    If you also take a look at the site www.electronic-web.co.uk you see that the images are missing at the top it should look like this http://www.zen4me.com/projects/newadam/

    Whats gone wrong there?

  10. #10
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: SQL File Error - URGENT HELP NEEDED PLEASE

    Sounds like you need to talk to whoever did the design and get them to assist you with installing it.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Urgent Help needed please!
    By ShakaDula14 in forum General Questions
    Replies: 12
    Last Post: 5 Mar 2010, 09:11 PM
  2. Please urgent help needed
    By kasnah36 in forum General Questions
    Replies: 3
    Last Post: 15 Oct 2008, 08:37 AM
  3. Urgent help needed, please...
    By Nocturnal in forum General Questions
    Replies: 4
    Last Post: 23 Jan 2008, 10:05 PM
  4. urgent help needed please !
    By fantasticals in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 2 Jul 2007, 06:32 PM
  5. Urgent Urgent help needed please
    By con-fused in forum General Questions
    Replies: 1
    Last Post: 12 Feb 2007, 09:41 PM

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