Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    May 2006
    Location
    Australia
    Posts
    110
    Plugin Contributions
    2

    Default MySQL Error with Insert - Version incompatibility?

    When I try to create a new Product Option on my local test server I get the following error:

    Code:
    1264 Out of range value adjusted for column 'products_options_sort_order' at row 1
    in:
    [insert into products_options (products_options_id, products_options_name, language_id, products_options_sort_order, products_options_type, products_options_images_per_row, products_options_images_style, products_options_rows) values ('1', 'Test', '1', '', '0', '', '', '' )]
    My local test server is running:

    Apache/2.0.55 (Win32) PHP/5.1.2
    MySQL 5.0.19-nt
    PHP: 5.1.2

    On the live website however, it does work. The live site is running on:

    Apache/2.0.52
    MySQL 4.1.15-log
    PHP: 4.4.2

    Is there anyway I can make some changes to the code on the test server to fix this? Is this even a problem with versions?

  2. #2
    Join Date
    May 2006
    Location
    Australia
    Posts
    110
    Plugin Contributions
    2

    Default Re: MySQL Error with Insert - Version incompatibility?

    These forums are rediculous, I can't save my post after I start editing. No offense to the mods/admins.

    Anyway, I found this solution: http://www.zen-cart.com/forum/showthread.php?t=33118

    And it mentions deleting 'STRICT_TRANS_TABLES' from somewhere or rather by using 'MySQL Administrator' which I probably don't have. Would someone be kind enough to give me a few steps to make this fix?

    Btw, yes I know I should have searched first, my mistake.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: MySQL Error with Insert - Version incompatibility?

    In your MySQL configuration, you likely have a "my.ini" file.
    Find the STRICT_TRANS_TABLES entry there, and remove it.
    You might have to restart your MySQL engine and Apache (or just reboot) for it to take effect.
    .

    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.

  4. #4
    Join Date
    May 2006
    Location
    Australia
    Posts
    110
    Plugin Contributions
    2

    Default Re: MySQL Error with Insert - Version incompatibility?

    Thankyou very much, I commented out the line with a hash (#) and it now works perfectly.

    I assume a fix is on the backburner?

  5. #5
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: MySQL Error with Insert - Version incompatibility?

    Quote Originally Posted by Rowan
    I assume a fix is on the backburner?
    As we find them, yes. A number of additional MySQL5-compatibility fixes will be in the next release.
    .

    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.

 

 

Similar Threads

  1. date_diff error with version 3.9f
    By pmsoft in forum General Questions
    Replies: 5
    Last Post: 29 Aug 2011, 10:24 AM
  2. Banca sella and MySQL 5.5 incompatibility [SOLVED]
    By andreag in forum Addon Payment Modules
    Replies: 0
    Last Post: 18 Aug 2011, 11:34 AM
  3. mysql insert
    By sublime19 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 28 Aug 2008, 12:20 AM
  4. mySQL error with YourPay gateway using old version of Zen Cart
    By apathy in forum Built-in Shipping and Payment Modules
    Replies: 8
    Last Post: 10 May 2008, 04:30 AM
  5. Incompatibility with new Vista IE?
    By Kayla in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 28 Oct 2007, 09:20 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