Gutenberg: Posts not saving or updating on Laravel Valet

Created on 27 Oct 2018  路  7Comments  路  Source: WordPress/gutenberg

Posts fail to update and display updating failed error message. Running Gutenberg version 4.1.1, Twenty Seventeen theme with no plugins.

This has happened from the beginning, not just the current version of Gutenberg. The same issue occurs across all local sites, however updating posts works perfectly fine on the production/staging sites (on ServerPilot, which uses Apache as well as Nginx).

Updating also fails when the post is trying to autosave.

There are no errors in the console.

Steps to reproduce the behavior:

  1. Go to edit post page
  2. Click update

Screenshots

image

Desktop

  • OS: Sierra 10.12.6
  • Laravel Valet
  • Nginx 1.12.1
  • PHP 5.6
  • Browser: Chrome (also tested Safari, Firefox)
  • Browser Version: 70.0.3538.77

Most helpful comment

That fixed it, thanks for the help!

For anyone else who comes across this, the php.ini file is usually located under:

/usr/local/etc/php/7.0/php.ini

Search for the ;always_populate_raw_post_data = -1 string around line 700 and uncomment it by deleting the semicolon.

All 7 comments

What do you see in the network tab in your browser dev tools? There should be requests to the REST API when saving. What are the requests and responses there?

image

@swissspidy Clicking update doesn't generate any new requests.

@seothemes What is the response for the autosaves request then?

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

There you go :-) You need to get rid of that error message by disabling that option as described in the error message.

That fixed it, thanks for the help!

For anyone else who comes across this, the php.ini file is usually located under:

/usr/local/etc/php/7.0/php.ini

Search for the ;always_populate_raw_post_data = -1 string around line 700 and uncomment it by deleting the semicolon.

Was this page helpful?
0 / 5 - 0 ratings