Closed atachibana closed 6 years ago
@atachibana there are some other REST-related issues being triaged, but would like to see if you can test and see if this is still an issue for you. If so, please add any additional information from your re-test... thanks!
@jeffpaul
Thank you for the reminder. I close this defect because this issue seems to be fixed.
Environment:
Thanks
@jeffpaul
I am very sorry. Previous trial was my failure. I modified wrong wp-config.php :-(
Still this issue remains in this combination:
NOTE: I want to emphasis that this error caused by my wrong setting as described in the above. Please feel free to close this item as user error.
I ran into this issue with (an older version of) XAMPP on Windows, and I fixed it by setting 'always_populate_raw_post_data' to -1 in php.ini.
Before uncommenting that line, I got this in the request's reponse data:
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 <b>Unknown</b> on line <b>0</b>
I'm getting this error too with version 3.3.0 with the post revisions set to 5 in wp-config.
Closing, as the root cause for this error seems to be that PHP notices can break REST API responses. This is a known issue that we don't have immediate plans to address.
Related #4936
Issue Overview
Gutenberg 1.0.4 Invalid configuration of 'WP_POST_REVISIONS' causes 'Updating failed.'
In wp-cofig.php file, I had defined 'WP_POST_REVISIONS' under the require_once of wp-settings.php.
In this environment, Gutenberg V1.0.4 repeatedly warns 'Updating failed.', and nothing can be done.
This is my fault. WP_POST_REVISIONS must be put before wp-settings.php loading. In fact, WP_DEBUG notifies 'Constant WP_POST_REVISIONS already defined'.
But Gutenberg V1.0.1 worked successfully, and this error made me wonder this weekend.
If it is possible, please handle this issue.
Steps to Reproduce (for bugs)
Browser
Expected Behavior
'Updating failed." should not be displayed.
Current Behavior
Repeatedly 'Updating failed.' is displayed.
Possible Solution
Related Issues and/or PRs
Error is the same, but don't know. Information is not enough...
Todos