Topic: Broken ajax functionality in newer php installation
I'm running fa under xampp. Some ajax functionality is broken (always result in timeouts) when used in newer php environments. Most problems are from form data editing or submitting new data.
Here is a little data on such error
error
[Thu Sep 01 19:13:58.342566 2016] [:error] [pid 14080:tid 1632] [client 127.0.0.1:56914] PHP Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0, referer: http://127.0.0.1/fa/inventory/manage/locations.php?
[Thu Sep 01 19:13:58.342566 2016] [:error] [pid 14080:tid 1632] [client 127.0.0.1:56914] PHP Warning: Cannot modify header information - headers already sent in Unknown on line 0, referer: http://127.0.0.1/fa/inventory/manage/locations.php?
[Thu Sep 01 19:13:58.364568 2016] [:error] [pid 14080:tid 1632] [client 127.0.0.1:56914] PHP Notice: Trying to get property of non-object in C:\\xampp\\htdocs\\fa\\includes\\errors.inc on line 74, referer: http://127.0.0.1/fa/inventory/manage/locations.php?
access
127.0.0.1 - - [01/Sep/2016:19:13:58 +0700] "POST /fa/inventory/manage/locations.php?JsHttpRequest=0-xml HTTP/1.1" 200 570 "http://127.0.0.1/fa/inventory/manage/locations.php?" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0"
Apache/2.4.17 (Win32) OpenSSL/1.0.2d PHP/5.6.15
Current database version Required 2.4.1
Fa doesn't return any error if I turn off javascript.
Tested with older deployment of xampp using php 5.3.1 and ajax works fine without timeouts.
Any idea to what I can do to fix the ajax timeout error?
EDIT: tested with php 5.4.31 and also no errors