WordPress 2.5.X: Your attempt to edit this page/post has failed. Please try again.
Are you looking for a fix on the WordPress error: “Your attempt to edit/save this page/post: [post/page title] has failed. Please try again.”? If you are, you are on the right page!
Yesterday, my WordPress for this blog went problematic after the server reboot at my web host’s end. The first problem I encountered was the corruption of the table wp_options of my WordPress database which resulted to WordPress asking me to reinstall the blog. I fixed it using the Repair DB functions of cPanel.
The next problem I saw was that I can’t post or edit any page. It keeps on dumping “Your attempt to edit this post [post title] has failed. Please try again.” I tried searching for the problem in the Internet and learned that it is caused by the WordPress autosave function.
To fix it, you should have access to your WordPress blog from cPanel file manager or FTP. Browse to [blog_root]/wp-admin/ and locate the file post-new.php. After locating the file, edit it directly thru your File Manger (cPanel) or download it thru FTP. Edit the file using your favorite text editor such as NotePad if you downloaded it thru FTP.
Locate the following section of the code:
$parent_file = 'post-new.php';
$editing = true;
wp_enqueue_script('autosave');
wp_enqueue_script('post');The function wp_enqueue_script(‘autosave’) should be commented or escaped. To comment/escape it, put double slashes (//) before the line. After doing so, the section of the file should look like this:
$parent_file = 'post-new.php';
$editing = true;
//wp_enqueue_script('autosave');
wp_enqueue_script('post');Save the file. If you downloaded it thru your FTP, reupload it on the same folder.
Publishing should work well now. If you still encounter problems, feel free to leave a comment to this post and I’ll try to look for other solutions.
If you found this post useful, you may want to subscribe to my feeds.


Conrad Miguel E. Gozalo is a 17-year old guy from General Santos City, Philippines. He is currently taking up his BS Computer Science at the University of the Philippines Diliman. He is a proud Linux user since August 2008. He is also a big fan of Free and Open Source Software. Know more about him on the 

24 Responses to “WordPress 2.5.X: Your attempt to edit this page/post has failed. Please try again.” (join them?)
May 25, 2008 at 11:11 am
Nice fix. I’m glad I had not yet encountered that problem on any of my blogs.
But now that you’ve disabled the autosave function in WP, how do you then get it back without having this problem return once you want the autosave function again?
jhay’s last blog post..invisibleSHIELD.com is now ZAGG.com
June 5, 2008 at 11:44 pm
Thank you very much. You save my day
June 18, 2008 at 7:34 am
not work. i got this error with wordpress.com blog. This is wordpress.com own blog ! Nothing we can do.
June 18, 2008 at 9:05 am
working solution using firefox is disable javascript, view — page style — no style.
happyman’s last blog post..Caj Happy VS telco lain
June 19, 2008 at 3:18 am
Excelente respuesta ! Gracias.
June 20, 2008 at 11:00 am
[...] So to avoid this problem, we need to be patient, and waiting for a couple seconds before click the Save or Publish button, or deactivating WordPress Auto Save capability like done by conradmiquel. [...]
July 1, 2008 at 5:01 am
You just saved my day!! It works!! Thanks.
October 3, 2008 at 11:17 am
It works!! Thank you very much.
October 25, 2008 at 5:10 pm
[...] WordPress 2.5.X: Your attempt to edit this page/post has failed. Please try again. [...]
November 5, 2008 at 11:12 pm
Thanks a lot its working!
November 14, 2008 at 2:03 pm
I tried the fix and it worked! I’m very glad to have found this page. This error had been bothering me for a long time and no other website had a fix that worked.. thanks.
November 27, 2008 at 11:40 am
omg you save my live tanks for fix =)
November 30, 2008 at 1:19 am
thank you ,you saved my life
December 1, 2008 at 2:38 am
Hihi
You’re great Man
Thx so much
FIXED
Jor L
December 11, 2008 at 5:08 pm
you rock man !!! it works…
mridul’s last blog post..MTNL Landline and Dolphin Customer Care
December 19, 2008 at 6:11 pm
Hi Mikko. Sorry, this one didn’t work for me. I can post and edit blog posts but not blog pages. Hmmm. Can this be a webhost error? Will try to contact them and see if they can help.
Fitz’s last blog post..Discover Your Strengths, Find Your Passion
December 30, 2008 at 1:10 pm
bx4Hoo Thanks for good post
January 3, 2009 at 1:24 am
Hey Man!
This hack don’t work for me.
However… Thanks!
Xyami!
Angola Xyami’s last blog post..Frases de Ano Novo; Frases de Fim de Ano; Sms para Ano Novo: “A partir de hoje nada mais será igual, prometo!”
February 10, 2009 at 7:51 pm
Same here. It worked for post but not for pages.
April 5, 2009 at 2:18 am
Here is the solution. Just download this plug in and activate it thats all… So simple..
http://help2design.com/wordpress/your-attempt-to-edit-this-post-has-failed-wordpress-fix/
July 1, 2009 at 1:23 pm
link doesn’t work- having problem in 2.8
August 29, 2009 at 1:34 am
Another great post here (includes disabling revisions): http://www.vinatips.com/disable-wordpress-autosave-and-revisions
Note: you might want to disable WordPress AutoSave in your wp-admin directory for these pages.
post.php
post-new.php
page.php
page-new.php
September 30, 2009 at 5:02 am
Hmm this is really useful fix – now autosave is disabled so you havent compromised your wordpress installation at all?????????????
February 19, 2010 at 6:14 pm
Thanks for that!
Works well…
Leave a reply!