Fix compatibility with WooCommerce REST API
-
Hey all, I’m one of the devs for the WooCommerce REST API and I noticed a conflict with this plugin and the API.
In /vendor/gc-message-bar/class-request.php on line 30, php://input is read without setting the $HTTP_RAW_POST_DATA global. When WooCommerce later tries to access this stream, it’s empty and the request fails.
Can you edit your code to set that global if it’s not already set, after you’ve accessed the input stream? Just adding
global $HTTP_RAW_POST_DATA;
to the top of theget_http_raw_post_data()
method should work.thanks!
- The topic ‘Fix compatibility with WooCommerce REST API’ is closed to new replies.