Title: php://input bug (with suggested fix)
Last modified: August 22, 2016

---

# php://input bug (with suggested fix)

 *  Resolved [Stephen Harris](https://wordpress.org/support/users/stephenharris/)
 * (@stephenharris)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/phpinput-bug-with-suggested-fix/)
 * Hi,
 * I’m the lead developer of Event Organiser (and the associated extensions). I’ve
   found a bug which causes a conflict between ManageWP and some of those extensions(
   and, quite possibly other plug-ins to).
 * It relates to the code in `init.php`, specifically [this line](https://github.com/wp-plugins/worker/blob/809813dd46c0bf46d19d07ddade3ff1369a53165/init.php#L217).
   Since `php://input` is stream, calling file_get_contents(‘php://input’) effecitvely“
   loses” the data, so that subsequent calls to file_get_contents(‘php://input’)
   return nothing.
 * In this case, data that was intended for a different plug-in was read by ManageWP,
   so by the time that plug-in executed the data was gone.
 * The fix would simple: only read `php://input` when the request is directed at
   a particular end-point.
 * Many thanks!
    Stephen
 * [https://wordpress.org/plugins/worker/](https://wordpress.org/plugins/worker/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Nemanja Aleksić](https://wordpress.org/support/users/kouteki/)
 * (@kouteki)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/phpinput-bug-with-suggested-fix/#post-5624736)
 * Thanks for the heads up, Stephen – I’ll get this info to our developers.
 * Happy holidays!
    Nemanja
 *  Plugin Author [Vladimir Prelovac](https://wordpress.org/support/users/freediver/)
 * (@freediver)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/phpinput-bug-with-suggested-fix/#post-5624892)
 * Thanks!
 *  Thread Starter [Stephen Harris](https://wordpress.org/support/users/stephenharris/)
 * (@stephenharris)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/phpinput-bug-with-suggested-fix/#post-5624908)
 * Thanks for the quick response & resolution. Happy New Year!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘php://input bug (with suggested fix)’ is closed to new replies.

 * ![](https://ps.w.org/worker/assets/icon.svg?rev=1015191)
 * [ManageWP Worker](https://wordpress.org/plugins/worker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/worker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/worker/)
 * [Active Topics](https://wordpress.org/support/plugin/worker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/worker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/worker/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Stephen Harris](https://wordpress.org/support/users/stephenharris/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/phpinput-bug-with-suggested-fix/#post-5624908)
 * Status: resolved