Hi there,

I am running:
Zen Cart 1.3.9f
Database Patch Level: 1.3.9b
v1.3.9b [2010-05-18 18:34:34] (Version Update 1.3.8->1.3.9b)
v1.3.8 [2008-07-30 02:07:56] (Fresh Installation)
MySQL 5.5.21
PHP Version: 5.2.17

This is the first time I have tried adding a "Document - General" product type. Inserting it causes the error pasted below.

From forum searches I am led to believe the issue is in:
/admin/includes/modules/update_product.php

I have tested DrByte's fix from this thread, but the result is the same:
http://www.zen-cart.com/showthread.p...oducts_virtual

I have also tested the same file from 1.3.9h and got the same error.

Is there something I can do to make this work?
Thanks for any advice on this.
Regards
Rob


1366 Incorrect integer value: '' for column 'products_priced_by_attribute' at row 1
in:
[insert into products (products_quantity, products_type, products_model, products_price, products_date_available, products_weight, products_status, products_virtual, products_tax_class_id, manufacturers_id, products_quantity_order_min, products_quantity_order_units, products_priced_by_attribute, product_is_free, product_is_call, products_quantity_mixed, product_is_always_free_shipping, products_qty_box_status, products_quantity_order_max, products_sort_order, products_discount_type, products_discount_type_from, products_price_sorter, products_image, products_date_added, master_categories_id) values ('0', '3', '', '0', null, '0', '1', '0', '0', '0', '1', '1', '', '0', '0', '', '0', '', '', '0', '0', '0', '0', '', now(), '216')]
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.