$HTTP_RAW_POST_DATA

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm
Location: Nimbin, Australia

$HTTP_RAW_POST_DATA

Post by rotezecke »

Hi,
I get a lot of these in error log
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
As I understand it, the warning shows whether or not the feature is used, and changing the php.ini file would hide the warnings. however, when searching the CMSMS (2.1.4) file tree, i found it used in soap.php in root directory. Now I'm wondering, am I stuck with an old file, or is it meant to be this way?



----------------------------------------------
phpinfo:
always_populate_raw_post_data: 0


Cms Version: 2.1.4

Installed Modules:

CGBlog: 1.14
CGExtensions: 1.53.9
CGFeedback: 1.7.6
CGSimpleSmarty: 2.1
CGSmartImage: 1.21.5
CMSContentManager: 1.1
CMSMailer: 6.2.14
Captcha: 0.5.3
DesignManager: 1.1.1
FileManager: 1.5.2
FormBuilder: 0.8.1.4
JQueryTools: 1.3.9
ModuleManager: 2.0.2
Navigator: 1.0.3
News: 2.50.5
Search: 1.50.2


Config Information:

php_memory_limit:
max_upload_size: 16000000
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Australia/Brisbane
permissive_smarty: false


Php Information:

phpversion: 5.6.24
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 32759
E_STRICT: 2048
E_DEPRECATED: 8192
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 256M
max_execution_time: 30
register_globals: Off (False)
output_buffering: 4096
disable_functions:
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 16M
upload_max_filesize: 16M
session_save_path: /tmp (0700)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On


Performance Information:

allow_browser_cache: Off (False)
browser_cache_expiry: 0
php_opcache: Off (False)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
smarty_cache_udt: Off (False)
auto_clear_cache_age: On (True)

Server Information:

Server Software: Apache
Server Api: cgi-fcgi
Server Os: Linux 2.6.32-673.8.1.lve1.4.3.el6.x86_64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 10.0.25
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: $HTTP_RAW_POST_DATA

Post by Rolf »

The soap.php file in the website root was afaik last used in the 1.9.x series and can be removed if you don't use the NuSoap module in later versions. You don't have that module in the list, so you can remove the file. Or if you are not sure rename the file and delete later.

Grtz Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: $HTTP_RAW_POST_DATA

Post by calguy1000 »

https://www.bram.us/2014/10/26/php-5-6- ... e-version/

This is not an issue per-se with CMSMS. But ajax requests TO a php file will generate it. They don't even need to be requests that are handled.

It requires a php.ini file change to hide the deprecated warning.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm
Location: Nimbin, Australia

Re: $HTTP_RAW_POST_DATA

Post by rotezecke »

Thanks, guys. i renamed soap.php, and the host updated the php.ini file. 24h later, still no complains .....
chandra

Re: $HTTP_RAW_POST_DATA

Post by chandra »

Rolf wrote:if you don't use the NuSoap module in later versions.
Btw ... there's no other module inside forge which needs NuSoap module or soap.php so they ...
Rolf wrote:can be removed
8)
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: $HTTP_RAW_POST_DATA

Post by Rolf »

Not all CMSMS module are released via the Forge... People (other than the onces in this thread that read this later) can have their own developed modules or delivered by the website developer. I can't see that from here and now, so better be on the safe side.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “CMSMS Core”