mysql - Doctrine on PHP FastCGI IIS 8 error -


this kind of strange problem.

i have website hosted on server apache, php 5.4 , mysql 5.0.95 on redhat 5.

for reason long discussed, web site had migrated windows server 2012.

i'm using php 5.4 fastcgi , mysql 5.5 on iis 8.

finally, got website work except 1 problem.

when user trying register , new record inserted users table, error:

fatal error: uncaught exception 'doctrine_connection_mysql_exception' message 'sqlstate[hy000]: general error: 1364 field 'district' doesn't have default value' in c:\websites\www.mysite.com\system\database\doctrine\doctrine\connection.php:1082 stack trace: #0 c:\websites\www.mysite.com\system\database\doctrine\doctrine\connection\statement.php(269): doctrine_connection->rethrowexception(object(pdoexception), object(doctrine_connection_statement)) #1 c:\websites\www.mysite.com\system\database\doctrine\doctrine\connection.php(1042): doctrine_connection_statement->execute(array) #2 c:\websites\www.mysite.com\system\database\doctrine\doctrine\connection.php(687): doctrine_connection->exec('insert use...', array) #3 c:\websites\www.mysite.com\system\database\doctrine\doctrine\connection\unitofwork.php(631): doctrine_connection->insert(object(usertable), array) #4 c:\websites\www.mysite.com\system\database\doctrine\doctrine\connection\unitofwork.php(562): doctrine_con in c:\websites\www.mysite.com\system\database\doctrine\doctrine\connection.php on line 1082 

this exact same code used run before on linux server.

i can go database , start adding default values fields have errors thought there might better solution.

i have googled seems no 1 has tried same setup before , no 1 having problem.

thank you.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -