I get this error when trying to make any edits to the booking form: “Error: (200) Unreadable response. See console for response recieved.” Here’s a screen shot of the error and my console after I tried to add a Phone field:
Brian Reeves
Hi Michael,
What does the network tab say? There should be a request to yoursite.com/wp-admin/admin-ajax.php?action= eo-bfc-form-element
– what is the response to that request?
Stephen Harris
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
Warning: Cannot modify header information - headers already sent in Unknown on line 0
{"success":true,"data":{"element":{"label":"Phone","placeholder":"","type":"phone","name":"Phone","description":"","required":false,"field_type":"text","position":-1,"id":19}}}
Brian Reeves
Hi Michael,
Thanks. The warning message is corruping the ajax response. The plug-in doesn’t use $HTTP_RAW_POST_DATA
, but it appears that even so the warning message will be displayed unless turned off: http://stackoverflow.com/questions/26261001/warning-about-http-raw-post-data-being-deprecated
Do you have access to your php.ini
file to set always_populate_raw_post_data = -1
, or are you able to ask your host to do this for you?
Stephen Harris