WordPress.org

Make WordPress Core

Opened 7 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:

Description

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)

comment:1 @iandunn7 years ago

I'm also experiencing this using Firefox 2.0.0.11

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

comment:2 @iandunn7 years ago

Is anyone working on this?

comment:3 @jayabb7 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.

comment:4 @mrmist7 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...)

comment:5 @MattyRob7 years ago

  • Keywords reporter-feedback added; draft page removed

Is this fixed by the patch added here:
http://trac.wordpress.org/ticket/6457

comment:6 @ryan6 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.

comment:7 @ryan6 years ago

  • Component changed from Administration to Autosave
  • Owner anonymous deleted

comment:8 @ryan6 years ago

  • Milestone changed from 2.7 to 2.8

comment:9 @Denis-de-Bernardy6 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.

comment:10 @Denis-de-Bernardy6 years ago

  • Milestone changed from 2.8 to Future Release

comment:11 @Denis-de-Bernardy6 years ago

  • Milestone changed from Future Release to 2.9

comment:12 @azaozz6 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.