//
you're reading...
Content Management Systems, Geek

Fix WordPress ‘Press This’ 404 error

Are you getting a 404 page error when you try to use the WordPress “Press This” bookmarklet?

There’s an easy fix. The problem is that the URI encoding is getting mixed up with the mod_rewrite function. For the fix, we’ll assume you have already dragged the “Press This” shortcut to your browser’s bookmark bar).

The fix:

  • Open up a blank text document, then copy and paste the code below into it.

javascript:var d=document,w=window,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),f=’http://yoursite.com/wp-admin/press-this.php’,l=d.location,e=encodeURIComponent,g=f+’?u=’+e(l.href.replace(/\//g,’\\/’))+’&t=’+e(d.title)+’&s=’+e(s)+’&v=2′;function a(){if(!w.open(g,’t',’toolbar=0,resizable=0,scrollbars=1,status=1,width=720,height=570′)){l.href=g;}}a();void(0);

  • Change the http://address in the code (it has been highlighted for you) to match your site’s address.
  • Highlight all the code in your text document and copy it into memory
  • Right-click on “Press This” bookmark and select “Properties”. Highlight all the text you see in the “Location” box and delete it. Leave the “Properties” window open.
  • Paste the code you’ve placed in memory from the text document into that “Location” box. Click “Save.”
  • You’re done.

About robguyy

Retired webmaster, broadcaster, journalist.

Discussion

3 Responses to “Fix WordPress ‘Press This’ 404 error”

  1. Excellent. Thank you. This fixed my problem.

    Posted by Clint Lalonde | July 28, 2011, 3:18 pm

Trackbacks/Pingbacks

  1. Pingback: Fix Wordpress 'Press This' 404 error « Complete Geek Boutique | Neorack Script - June 24, 2009

  2. Pingback: Fix Wordpress ‘Press This’ 404 error « Complete Geek Boutique - August 27, 2009

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.