If this is your first visit, check our documentation. To post, register or login.
Forums / Setting Up Your Zen Cart Products / Setting Up Categories, Products, Attributes / MySQL Error with Insert - Version incompatibility?

MySQL Error with Insert - Version incompatibility?

Locked

Started by rowan on 28 Aug 2006, 4:10 AM · Views: 1,904

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
28 Aug 2006, 4:10 AM
#1
rowan avatar

rowan

Zen Follower

Join Date:
May 2006
Location:
Australia
Posts:
107
Plugin Contributions:
2

Post #1 by rowan

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

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?

28 Aug 2006, 4:26 AM
#2
rowan avatar

rowan

Zen Follower

Join Date:
May 2006
Location:
Australia
Posts:
107
Plugin Contributions:
2

Post #2 by rowan

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. :blush:

28 Aug 2006, 4:55 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #3 by drbyte

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.

28 Aug 2006, 5:07 AM
#4
rowan avatar

rowan

Zen Follower

Join Date:
May 2006
Location:
Australia
Posts:
107
Plugin Contributions:
2

Post #4 by rowan

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

I assume a fix is on the backburner? :happy:

28 Aug 2006, 5:11 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #5 by drbyte

Rowan:

I assume a fix is on the backburner? :happy:
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.