ryanh_106 Posted October 25, 2007 Share Posted October 25, 2007 Hi, Im not sure if this is a MyAQL problem, PHP problem or webserver problem but im hoping someone can help! I have been using a web system I created for ages on a linux fasthosts dedicated server runnin apache, PHP5 and MySQL with no issues, I have a local copy of it running on my local computer using XAMPP (apache, php5, MySQL). I am now trying to get it running on a roaming demo system which is using Windows Server 2003, IIS for web system (computer also running Apache Tomcat as this is required for something else so cant use Apache for web system), PHP5 and MySQL. All of a sudden I get the following error Incorrect date value: '' for column 'user_birthdate' at row 1 The user_birthdate box is actually hidden on the registration page to simplify the reg process, I would REALLY rather work out what part of the system config is making this happen than change the code to fix it as it is supposed to be a demo of the live system which works fine. Can anyone offer any ideas? Im sorry if I didnt explain that very well, feel free to ask any more questions Thanks Ryan Quote Link to comment https://forums.phpfreaks.com/topic/74708-solved-strange-problem-on-new-server/ Share on other sites More sharing options...
effigy Posted October 25, 2007 Share Posted October 25, 2007 Was this value allowed to be incorrect before? This may be related to the SQL mode ALLOW_INVALID_DATES. Quote Link to comment https://forums.phpfreaks.com/topic/74708-solved-strange-problem-on-new-server/#findComment-377801 Share on other sites More sharing options...
ryanh_106 Posted October 25, 2007 Author Share Posted October 25, 2007 Yeah it doesnt complain at all on the other systems, that sounds very promising! How do I go about changing that setting on the new server? Cheers Quote Link to comment https://forums.phpfreaks.com/topic/74708-solved-strange-problem-on-new-server/#findComment-377819 Share on other sites More sharing options...
ryanh_106 Posted October 25, 2007 Author Share Posted October 25, 2007 Sorry, didnt see the link. Ill check it out! Quote Link to comment https://forums.phpfreaks.com/topic/74708-solved-strange-problem-on-new-server/#findComment-377824 Share on other sites More sharing options...
ryanh_106 Posted October 25, 2007 Author Share Posted October 25, 2007 Doesnt seem to help ALLOW_INVALID_DATES just seems to mean that you can put in 31st feb as a date, doesnt necessarily mean you can put in an empty date... :s Any other ideas? This is so weird! Quote Link to comment https://forums.phpfreaks.com/topic/74708-solved-strange-problem-on-new-server/#findComment-377904 Share on other sites More sharing options...
effigy Posted October 25, 2007 Share Posted October 25, 2007 Is your schema allowing NULLs? Was this field blank before, or was this being updated with Javascript? Quote Link to comment https://forums.phpfreaks.com/topic/74708-solved-strange-problem-on-new-server/#findComment-377927 Share on other sites More sharing options...
ryanh_106 Posted October 25, 2007 Author Share Posted October 25, 2007 The database is just a dump of the live one, just double checked and Not Null is definately not set. Database is the same, code is the same, just now for some reason its not accepting '' as a date so I can only assume that there is something in the config. The value is coming straight from a text box. Cheers Quote Link to comment https://forums.phpfreaks.com/topic/74708-solved-strange-problem-on-new-server/#findComment-378088 Share on other sites More sharing options...
effigy Posted October 25, 2007 Share Posted October 25, 2007 Do you get the same error if you run the SQL from MySQL's CLI? Quote Link to comment https://forums.phpfreaks.com/topic/74708-solved-strange-problem-on-new-server/#findComment-378105 Share on other sites More sharing options...
ryanh_106 Posted October 26, 2007 Author Share Posted October 26, 2007 Very good question, didnt think of trying that.. Yes I do, exactly the same -___- Quote Link to comment https://forums.phpfreaks.com/topic/74708-solved-strange-problem-on-new-server/#findComment-378443 Share on other sites More sharing options...
effigy Posted October 26, 2007 Share Posted October 26, 2007 What are the new and old versions? Have you checked the MySQL configurations? Quote Link to comment https://forums.phpfreaks.com/topic/74708-solved-strange-problem-on-new-server/#findComment-378555 Share on other sites More sharing options...
ryanh_106 Posted October 26, 2007 Author Share Posted October 26, 2007 live is 5.0.27, demo system (the one with the problem) is 5.0.45 Community Edition I assume linux server is community edition but it came with the server and doesnt specifically say, just says "14.12 Distrib 5.0.27" Im not sure where to look for the configuration, as the live system is Linux and my local system was created by XMAPP so i cant find my.ini, even with search... Cheers Quote Link to comment https://forums.phpfreaks.com/topic/74708-solved-strange-problem-on-new-server/#findComment-378575 Share on other sites More sharing options...
ryanh_106 Posted October 29, 2007 Author Share Posted October 29, 2007 Sorted it! It was an SQL-MODE issue, the use of STRICT_TRANS_TABLES by the demo system meant that the date value '' was not accepted. Changed SQL mode to match live system (its mode found using the query SHOW VARIABLES LIKE '%mode%' and everything worked Thanks for all your help Quote Link to comment https://forums.phpfreaks.com/topic/74708-solved-strange-problem-on-new-server/#findComment-380338 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.