• bargainwebb

    (@bargainandtrade)


    Please can anyone help me with this:

    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    1. You’re doing something deprecated.
    2. The message tells you what to do.

    Is this an error from your own code?

    Thread Starter bargainwebb

    (@bargainandtrade)

    i got the error from my error log. cannot pinpoint what is causing it.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    This may be a plugin or theme thing. Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.

    If you can install plugins, install “Health Check”: https://www.ads-software.com/plugins/health-check/ On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site. You can then use its admin bar menu to turn on/off plugins and themes one at a time.

    Moderator bcworkz

    (@bcworkz)

    Hmmm. I’m not so sure that is even directly related to WP. Error occurs at unkwown at line 0 — that’s suspicious. My guess is the PHP version was upgraded on the server and now the server is misconfigured.

    I think that message is solely because of the php.ini entry. Change the entry as instructed and the message should no longer occur. It could cause any code using $HTTP_RAW_POST_DATA to fail, but $_POST is almost universally used instead of $HTTP_RAW_POST_DATA.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Error at line 0 generally shows up for stuff in .htaccess or php.ini or .user.ini — something loaded early.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error’ is closed to new replies.