Results 1 to 10 of 11

Hybrid View

  1. #1
    Join Date
    Nov 2013
    Location
    Canada
    Posts
    5
    Plugin Contributions
    0

    Default Option Value Error

    I am setting up a digital scrapbook store and some products have multiple downloads.

    I have added Option Name: Download 1 with radio button and order 10.

    When I try to add Option Value ie: zip 1 of 6, download 1, or even zip 1 of 6, I get the following error:

    WARNING: An Error occurred, please refresh the page and try again.

    I have followed http://www.zen-cart.com/content.php?...s-downloadable
    to no avail.

    Just keep getting the same error.

    Please help.
    Last edited by dfp111; 3 Jul 2014 at 07:26 PM.

  2. #2
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,740
    Plugin Contributions
    22

    Default Re: Option Value Error

    Check the error logs and see what's causing it. You can find it in store_root/logs, looks something like myDEBUG-XXXXXXXX.log
    You can post the contents of the file here (please wrap it with the CODE tags) and someone might be able to assist.

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,884
    Plugin Contributions
    96

    Default Re: Option Value Error

    When you see "WARNING: An Error occurred, please refresh the page and try again.", there's a debug log that gives you more information (like what the errant SQL statement was). When you post the contents of the debug log, make sure to obfuscate your admin folder's name!

  4. #4
    Join Date
    Nov 2013
    Location
    Canada
    Posts
    5
    Plugin Contributions
    0

    Default Re: Option Value Error

    I am not sure where the debug logs are found in my shop, but I got this from my "log" folder via ftp.

    [[03-Jul-2014 19:23:57 UTC] PHP Fatal error: 1062uplicate entry '1-1' for key 'PRIMARY' :: insert into zc_products_options_values
    (products_options_values_id, language_id, products_options_values_name, products_options_values_sort_order)
    values ('1',
    '1',
    'zip 1',
    '0') in /home/memo92005/public_html/shop/includes/classes/db/mysql/query_factory.php on line 120|

    Here is another one from today:

    [[03-Jul-2014 19:11:37 UTC] PHP Fatal error: 1062uplicate entry '1-1' for key 'PRIMARY' :: insert into zc_products_options_values
    (products_options_values_id, language_id, products_options_values_name, products_options_values_sort_order)
    values ('1',
    '1',
    'zip [1 of 6]',
    '10') in /home/memo92005/public_html/shop/includes/classes/db/mysql/query_factory.php on line 120]
    Last edited by dfp111; 3 Jul 2014 at 08:42 PM.

  5. #5
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,740
    Plugin Contributions
    22

    Default Re: Option Value Error

    Are you sure you're using Zen Cart 1.5.1 and not 1.5.0? This was a known problem on 1.5.0, but was fixed in 1.5.1. See the related thread here. Solution is also posted there - no need to copy/paste here.

  6. #6
    Join Date
    Nov 2013
    Location
    Canada
    Posts
    5
    Plugin Contributions
    0

    Default Re: Option Value Error

    Yes I am. Here is a snippit:

    Name:  zencart version.PNG
Views: 140
Size:  2.0 KB

  7. #7
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,740
    Plugin Contributions
    22

    Default Re: Option Value Error

    You could still try the solution posted there...

  8. #8
    Join Date
    Nov 2013
    Location
    Canada
    Posts
    5
    Plugin Contributions
    0

    Default Re: Option Value Error

    I see the fix, but where where does it go?

    Please help a newbie out... thanks

  9. #9
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,740
    Plugin Contributions
    22

    Default Re: Option Value Error

    You can run it from admin->Tools->Install SQL Patches. Please note that this will completely wipe your option values table, including all data you already set up. Make sure you do a database backup prior to running this script!!! It can be done from your cPanel and/or phpMyAdmin (which you can also find in cPanel).

    Regards,
    Leonard

 

 

Similar Threads

  1. option Value Manager problem i can`t set to appear and i receive error mesage
    By magnum17 in forum Templates, Stylesheets, Page Layout
    Replies: 25
    Last Post: 27 Nov 2012, 01:57 AM
  2. Option Value Error
    By Digi Deborah in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 24 Oct 2011, 10:30 PM
  3. My Option names do not line up HORIZONTALLY with option value boxes...
    By youshine in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 4 Aug 2009, 03:08 AM
  4. enlarge the option name and option value boxes in Attributes
    By stevenlee in forum Customization from the Admin
    Replies: 10
    Last Post: 16 Aug 2008, 02:16 AM
  5. 2nd option value need to be changed by 1st option value
    By userman in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 15 Jan 2008, 03:04 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