-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid configuration of 'WP_POST_REVISIONS' causes 'Updating failed.' (solved by setting 'always_populate_raw_post_data' to -1 in php.ini) #3102
Comments
@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! |
Thank you for the reminder. Environment:
Thanks |
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:
|
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
The text was updated successfully, but these errors were encountered: