New Zenner
- Join Date:
- Nov 2007
- Posts:
- 20
- Plugin Contributions:
- 0
Mysql 5 strict mode no null value for manufacturer id
I need some help. I've got a 1.3.8 site I've been setting up for a couple of months and it's been mostly humming along well but today I noticed a problem if I select "none" for the manufacturer on a new product or when editing a product. I think this has to do with Mysql 5 running in strict mode. So how do I fix this? As a temporary fix I made a manufacturer called "not specified" and select that but then it calls up the manufacturer side box and also shows it in the product details which I'd rather it didn't. Oh and I should probably mention this is running on a Windows Server 2003 box.
This is the error I'm getting.
1366 Incorrect integer value: '' for column 'manufacturers_id' at row 1
in:
[update products set products_quantity = '2', products_type = '1', products_model = 'NEXY', products_price = '54.9500', products_date_available = null, products_weight = '6', products_status = '1', products_virtual = '0', products_tax_class_id = '1', manufacturers_id = '', products_quantity_order_min = '1', products_quantity_order_units = '1', products_priced_by_attribute = '0', map_enabled = '1', map_price = '0.0000', product_is_free = '0', product_is_call = '0', products_quantity_mixed = '1', product_is_always_free_shipping = '0', products_qty_box_status = '1', products_quantity_order_max = '0', products_sort_order = '0', products_discount_type = '0', products_discount_type_from = '0', products_price_sorter = '54.9500', products_image = 'prods_kites/nexusyellow.jpg', products_last_modified = now(), master_categories_id = '12' where products_id = '16']
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.