safewithyou247 Posted December 19, 2008 Share Posted December 19, 2008 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)Above is the error that I get when trying to install PS v1.1 on MySQL 5.1. Can anyone assist me with this issue?Thanks, Link to comment Share on other sites More sharing options...
safewithyou247 Posted December 19, 2008 Author Share Posted December 19, 2008 The error seems to be due to the fact that I am using Full Mode and not Simple Mode. Browse to \install\sql\db_settings_extends.sql. Open the file and edit the following lines of code. INSERT INTO `PREFIX_cart_product` (`id_cart`, `id_product`, `id_product_attribute`, `quantity`) VALUES (1, 7, 23, 1); INSERT INTO `PREFIX_cart_product` (`id_cart`, `id_product`, `id_product_attribute`, `quantity`) VALUES (1, 9, 0, 1); Replace them with the below code. And boom! You fixed your problem. INSERT 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()); Link to comment Share on other sites More sharing options...
rajvelu Posted January 19, 2009 Share Posted January 19, 2009 Thankyou your solution worked.. Link to comment Share on other sites More sharing options...
safewithyou247 Posted January 19, 2009 Author Share Posted January 19, 2009 Glad I could help. Link to comment Share on other sites More sharing options...
Malik Imran Amir Posted February 6, 2009 Share Posted February 6, 2009 This is my first encounter of local installation. I tried to install everything and was caught up in this.I have 1. PHP Version 5.2.82. OS. Microsoft Windows XP Professional SP33. MySQL Version: 5.0.67-community-nt I wish to know why i got this error. Link to comment Share on other sites More sharing options...
safewithyou247 Posted February 6, 2009 Author Share Posted February 6, 2009 You have one of two options.1. Use Simple Mode for installation2. Follow the steps that I have outlined above. 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