Jump to content

Recommended Posts

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

 

Link to comment
https://forums.phpfreaks.com/topic/250165-ajax-working-on-php5210-but-not-on-529/
Share on other sites

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.

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

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.