Skip to content
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

Update button remains disabled when update failed #6966

Closed
ktmn opened this issue May 26, 2018 · 8 comments · Fixed by #32485
Closed

Update button remains disabled when update failed #6966

ktmn opened this issue May 26, 2018 · 8 comments · Fixed by #32485
Assignees
Labels
[Feature] Meta Boxes A draggable box shown on the post editing screen Needs Dev Ready for, and needs developer efforts [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@ktmn
Copy link

ktmn commented May 26, 2018

Describe the bug
I updated some plugins in another tab and during that I saved my gutenberg post. Since plugin updates put the site in "Maintenance mode" the post update failed, console showing:

Failed to load resource: the server responded with a status of 503 (Service Unavailable)

Which is understandable, how ever the "Update" button remains disabled even after the maintenance is complete.

Disabled update button

This prevents from trying to save the post again, forcing to refresh the page and lose all updated content.

To Reproduce
Steps to reproduce the behavior:

  1. Update or install some plugins in another tab
  2. Try to save a post
  3. Maintenance mode over
  4. Can't attempt to save again
@nfmohit
Copy link
Member

nfmohit commented May 26, 2018

I do not seem to be able to reproduce the issue. Here's a screencast from my end:
issue-6966-min

Do you think I'm missing something here?

@ktmn
Copy link
Author

ktmn commented May 27, 2018

I tried with Twenty Seventeen and it also worked like your screencast.

The previous theme I used had metaboxes. So to test I installed a random plugin that also adds a metabox and that reproduced my issue.

Along with this error:
POST .../wp-json/wp/v2/posts/117 503 (Service Unavailable)

I also get this:
POST .../wp-admin/post.php?post=117&action=edit&classic-editor=1&meta_box=1 503 (Service Unavailable)

So looks like the presence of metaboxes could be the culprit.

@mtias mtias added the Needs Testing Needs further testing to be confirmed. label Jul 19, 2018
@lubimow
Copy link

lubimow commented Aug 4, 2018

@mtias I have the same problem in plugin version 3.4.0

@blogxkomo
Copy link

i have same problem too

@noisysocks noisysocks added [Feature] Meta Boxes A draggable box shown on the post editing screen [Type] Bug An existing feature does not function as intended and removed Needs Testing Needs further testing to be confirmed. labels Feb 20, 2020
@noisysocks
Copy link
Member

noisysocks commented Feb 20, 2020

I was able to reproduce this by:

  1. Configuring my dev environment to use a local WordPress installation by setting "core": "~/path/to/wordpress-develop/build" in .wp-env.json

  2. Activating the 'Gutenberg Test Plugin, Meta Box' plugin

  3. Creating a post in the block editor and entering some content

  4. Forcing maintenance mode by creating a file at ~/path/to/wordpress-develop/build/.maintenance which contains.

    <?php
    $upgrading = time();
  5. Returning to the editor and clicking Save draft

  6. Deleting ~/path/to/wordpress-develop/build/.maintenance

Although the site is now not in maintenance mode, you cannot click Save draft again.

I confirmed that this only happens when there is a meta box enabled.

@noisysocks
Copy link
Member

Possibly related: #19780

@paaljoachim
Copy link
Contributor

Is this issue still valid?

@paaljoachim
Copy link
Contributor

Robert @noisysocks Can you recheck this issue? Thanks.

@gwwar gwwar added the Needs Dev Ready for, and needs developer efforts label Feb 25, 2021
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Meta Boxes A draggable box shown on the post editing screen Needs Dev Ready for, and needs developer efforts [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants