Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#6538 closed defect (bug) (duplicate)

New post creation fails in some browsers when it has a duplicate title

Reported by: nao's profile Nao Owned by:
Milestone: Priority: high
Severity: normal Version: 2.5
Component: Administration Keywords: has-patch
Focuses: Cc:


When you create a new post with a title that already exists in the past posts, the post creation fails.
After a while this error appears:

Fatal error: Maximum execution time of 30 seconds exceeded in /path_to_wp_install/wp-includes/wp-db.php on line 170

So far this has occured in these environments:

  • Windows: Firefox / IE 7.0.5
  • Mac: Firefox / Flock 1.1

I didn't have this problem with Safari 3.1 (Mac).

Attachments (1)

post-name-check-fix.diff (801 bytes) - added by Nao 14 years ago.
Fix for duplicate title post error

Download all attachments as: .zip

Change History (6)

#1 @mtekk
14 years ago

Works for me, this is not a browser related problem, otherwise you wouldn't have gotten the PHP timeout message. This seems to be a server environment error, your php, mysql, and http server versions would be more helpful.

#2 @Nao
14 years ago

My environment is:

  • PHP 5.2.3
  • MySQL 5.0.41
  • Apache 2.0.59
  • APC 3.0.14

There are at least two other sets of environment that reported the same issue (apache version unknown).

  • MySQL 5.1.22-rc
  • PHP 5.2.4
  • Browser (all on Windows): Firefox2.0.0.13 / IE 7.0.5 / Safari 3.1
  • PHP 4.4.4
  • MySQL 4.0.25
  • Browser: ?

We all were able to post a new duped-title entry after posting it with a completely different name, then changing to the intended title.

I thought this may be specific to Japanese text (all of the above use WP 2.5 + Japanese language file), but the same thing happens with roman-numeral titles.

I also found this post in the forum:

Let me know if there's any other information I can provide.

14 years ago

Fix for duplicate title post error

#3 @Nao
14 years ago

  • Keywords has-patch added; title post timeout removed

Upon further testing, this problem was replicated in these situations:

  • The title includes multibyte character (new 2.5 install can take duped title if it's all alpha-numeral) OR
  • WP is Upgraded from v.2.3.3 (duped alpha-numeral title also fails with this)

Mmtek, maybe you were testing w/ new install of WP 2.5? Could you test it again and see if you can see this happen.

If you want to test w/ multibyte title, please paste this: 日本語
or paste random text from any multibyte code site (Japanese/Korean/Chinese). thanks.

I've also attached a patch.

#4 @katze
14 years ago

Same problem?

#5 @ryan
14 years ago

  • Milestone 2.5.2 deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Looks like like it. Marking this one as a duplicate.

Note: See TracTickets for help on using tickets.