Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Opencart installation problem

I am trying to install opencart for the first time in my local machine. I am using xampp 1.7.4 PHP 5.3.4 and Windows7 is my OS. I try to follow all the steps describe HERE. But, after giving the db name, db user name and password when I press "Continue" button I am getting the following error message:

Variable 'sql_mode' can't be set to the value of 'NO_AUTO_VALUE_ON_ZERO'

I try to google it with this error message but do not find anything. Please help me.....

like image 866
enam Avatar asked Oct 22 '25 22:10

enam


1 Answers

Change the lines of code from the following files:

  • install/cli_install.php

    Search for $db->query("SET @@session.sql_mode = 'MYSQL40'"); and replace with $db->query("SET @@session.sql_mode = ''");

  • install/model/install/install.php

    Search for $db->query("SET @@session.sql_mode = 'MYSQL40'"); and replace with $db->query("SET @@session.sql_mode = ''");

like image 175
Yogesh Sanger Avatar answered Oct 24 '25 13:10

Yogesh Sanger



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!