lastcowboy Posted February 14, 2009 Share Posted February 14, 2009 I keep getting a Error while inserting data into the database:'INSERT INTO `ps_cart_product` (`id_cart`, `id_product`, `id_product_attribute`, `quantity`) VALUES (1, 7, 23, 1)'Field \'date_add\' doesn\'t have a default value(Error: : 1364) Link to comment Share on other sites More sharing options...
TropischBruin Posted February 14, 2009 Share Posted February 14, 2009 Is this a linux or a windows server? Link to comment Share on other sites More sharing options...
lastcowboy Posted February 15, 2009 Author Share Posted February 15, 2009 windows server.i got around this issue by going to the install folder > sql > db_settings_extends.sqli changed the following lines in 184 185INSERT INTO `PREFIX_cart_product` (`id_cart`, `id_product`, `id_product_attribute`, `quantity`, `date_add`) VALUES (1, 7, 23, 1, NOW());INSERT INTO `PREFIX_cart_product` (`id_cart`, `id_product`, `id_product_attribute`, `quantity`, `date_add`) VALUES (1, 9, 0, 1, NOW());for the install to work properly.Please note i was using prestashop 1.1Hope this helps other people. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now