sirfragalot Posted October 31, 2011 Share Posted October 31, 2011 Hi all, I'm not going to post code just yet -- I'm just looking for tips on where to even start looking for the source of the problem. 1. Same Firexfox browser (same PC). 2. Same AJAX/PHP/javascript code installed on PHP 5.2.9, PHP5.2.10 and PHP>=5.3 3. No problem on PHP5.3 even after removing the 5.3 version of json_encode() in order to attempt compatibility with PHP5.2.x 4. No problem on PHP5.2.9. 5. Part functionality in PHP5.2.10 and quite slow in communicating with the server. Everything seems to be working on 5.2.10 in terms of stepping through the code and producing the raw output I want but nothing happens in the browser -- no PHP errors or javascript errors/warnings. Anyone any ideas where I could look to begin tracking this down? Mark Quote Link to comment https://forums.phpfreaks.com/topic/250165-ajax-working-on-php5210-but-not-on-529/ Share on other sites More sharing options...
PFMaBiSmAd Posted October 31, 2011 Share Posted October 31, 2011 1) Do you have php's error_reporting set to E_ALL and log_errors set to ON so that all the php detected errors will be logged to the error log file? 2) Browse directly to the same URL that the AJAX is requesting and see if the .php script outputs the expected result. If you are sending post data, make a HTML form to test with that submits the same data that the AJAX is doing and see if the .php script works as expected. 3) Are the php.ini settings the same, and you have actually confirmed that they are, for the 5.2.9 that does work and the 5.2.10 that does not? Are all the local php.ini/.htaccess files exactly the same? Are both those php versions running the same way under the web server, both as CGI's or both as server modules? 4) Are you using a session that is accessed both by the main page or content on the main page (images/media files) and by the AJAX requested page? The session data file could be locked and the AJAX requested pages are hanging waiting for the session_start statement to complete. 5) Posting the relevant code needed to duplicate the problem would let someone directly see what exactly it is doing that could be causing the problem. Quote Link to comment https://forums.phpfreaks.com/topic/250165-ajax-working-on-php5210-but-not-on-529/#findComment-1283666 Share on other sites More sharing options...
PFMaBiSmAd Posted October 31, 2011 Share Posted October 31, 2011 6) Examine the php change log to see if anything that was changed or fixed in 5.2.10 is being used/mis-used by your code. Quote Link to comment https://forums.phpfreaks.com/topic/250165-ajax-working-on-php5210-but-not-on-529/#findComment-1283672 Share on other sites More sharing options...
sirfragalot Posted October 31, 2011 Author Share Posted October 31, 2011 Thanks for the tips. The code is part of a very large modular system so would be impractical to post here as a means to allow anyone to view/duplicate the problem. I'll have to check if I can turn on error logging and access it as the problem server is a hosting server. For that reason, I cannot access the server's php.ini as a comparison of that was my first thought. I'll look into the sessions issue. Mark Quote Link to comment https://forums.phpfreaks.com/topic/250165-ajax-working-on-php5210-but-not-on-529/#findComment-1283679 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.