WordPress.org

Ready to get started?Download WordPress

Forums

"Press This" Problems (7 posts)

  1. OBA
    Member
    Posted 4 years ago #

    The "Press This" button I installed on my browser's tool bar to add posts to my WordPress Blog is not working. I have tried using "Press This" on two computers (both a Windows & an Apple computer).

    I am getting a page not found error. The guy that set up my website is able to use the "Press This" feature without a problem.

    Any ideas as to what the problem may be, or how I can fix the problem?

    Thanks!

  2. TulsaWeb
    Member
    Posted 4 years ago #

    I am also getting this error.

    The Press This Bookmarklet creates a URL like this:
    http://MYDOMAIN.com/wordpress/wp-admin/press-this.php?u=http%3A%2F%2Fwww.ibm.com%2Fus%2Fen%2F&t=IBM%20-%20United%20States&s=&v=4

    If I manually change the URL to:
    http://MYDOMAIN.com/wordpress/wp-admin/press-this.php?u=www.ibm.com%2Fus%2Fen%2F&t=IBM%20-%20United%20States&s=&v=4

    (removing http://) press-this works correctly.

    I haven't found a javascript modification, from the many found online, that corrects the error

    I'm running WordPress 2.9.1 on LAMP at Hostgator, installed in a folder called wordpress. My permalink structure is: /%postname%

    Thanks for any help you can offer.

  3. parrothead
    Member
    Posted 4 years ago #

    Here's a partial fix. I replaced this part of the Press This javascript:

    u='+e(l.href)+

    with this:

    u='+e(l.href.replace("http://",""))+

    This deletes the http:// from the beginning of the URLs so the script works. It does NOT fix Press This for URLs that start with https:// or other prefixes.

  4. kymar
    Member
    Posted 4 years ago #

    Interesting... I also am at hostgator, having just moved my blog, and several functions no longer work that used to work at my prior location, including Press This, as well as Link Library and Link This. Unfortunately, I don't even know where to find the javascript for Press This.

    Any help would be appreciated. Did you ever discuss any of this with Hostgator - or is that just a coincidence?

  5. kymar
    Member
    Posted 4 years ago #

    Yep - modified the "Link This" bookmarklet along the lines you suggest, and it mostly works now - some problems on finishing the routine - but adds the link as expected.

    Link Library is a much more complicated thing, unfortunately.

  6. kymar
    Member
    Posted 4 years ago #

    Sorry to be bombarding you here - but I'm also wondering if press-this code has changed too much for 2.9.2 for your fix to work directly on it. The Url seems to be constructed much differently in the press-this file I'm looking at.

  7. beernews
    Member
    Posted 4 years ago #

    Worked like a charm, Parrothead! Using 3.0 & HostGator. Note that a while back I had to call Hostgator to get this whitelisted for some reason.

Topic Closed

This topic has been closed to new replies.

About this Topic