Make WordPress Core

Opened 8 years ago

Closed 6 years ago

#6728 closed defect (bug) (fixed)

Publishing a new Page creates a Draft

Reported by: elusivelight Owned by:
Milestone: 2.9 Priority: normal
Severity: normal Version: 2.6
Component: Autosave Keywords: needs-patch
Focuses: Cc:


On a new install with no plugins activated:

I create a new Page, enter a title (no other info entered), and click on Publish. The "saving draft" text briefly appears before the page reloads. On the Manage Pages page, for every page, there is a Published Page and an Unpublished Page, both with the same name. This occurs for every Page I create. This is occuring on several different installs on the same server, using either Firefox or IE.

PHP Version 5.1.6
Linux 2.6.9-67.0.1.ELsmp #1 SMP Wed Dec 19 16:01:12 EST 2007 i686

Change History (12)

#1 @iandunn
8 years ago

I'm also experiencing this using Firefox

The server setup is
Wordpress 2.5.1
Windows 2003
PHP 5.2.5
MySQL 5.0.27

#2 @iandunn
8 years ago

Is anyone working on this?

#3 @jayabb
8 years ago

  • Version changed from 2.5 to 2.5.1

My comments in this post may be relevant to this bug, specifically the bit about renaming the default category to something other than Uncategorized. Then again I could be wrong.

#4 @mrmist
7 years ago

  • Version changed from 2.5.1 to 2.6

Confirming in 2.6..

Also this (sort-of) affects posts, but in a different way. If you type just a post-tile then try to publish it saves the draft but does not publish the post, it just stays on the edit post page. You have to hit publish twice on the post to get it through. (Which is fair enough, really, for a post with no content...)

#5 @MattyRob
7 years ago

  • Keywords reporter-feedback added; draft page removed

Is this fixed by the patch added here:

#6 @ryan
7 years ago

No, this is still possible. This is a race condition between autosave and the publish button press. It's only really possible if you add a title and then immmediately press publish without adding content or clicking anything else in between.

#7 @ryan
7 years ago

  • Component changed from Administration to Autosave
  • Owner anonymous deleted

#8 @ryan
7 years ago

  • Milestone changed from 2.7 to 2.8

#9 @Denis-de-Bernardy
7 years ago

  • Keywords needs-patch added; reporter-feedback removed

bugs also occur when you click save draft. the save button seems disabled until the autosave is done. maybe the autosave shouldn't automatically fire when you click the save or publish buttons.

#10 @Denis-de-Bernardy
7 years ago

  • Milestone changed from 2.8 to Future Release

#11 @Denis-de-Bernardy
6 years ago

  • Milestone changed from Future Release to 2.9

#12 @azaozz
6 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [11879]) Fix race condition with autosave when clicking Publish immediately after entering post title, fixes #6728

Note: See TracTickets for help on using tickets.