WordPress.org

Ready to get started?Download WordPress

Forums

BUG: jpg vs. jpeg error when editing a LINK URL image in a post (4 posts)

  1. tedullrich
    Member
    Posted 4 years ago #

    This problem deals with an unfortunate discrepancy between file extensions .jpg and .jpeg -- The results equate to frustrating 404 errors and lightbox plugins that seem to be broken.

    Here's what happens:

    1) Upload an image with file extension '.jpeg' (note the 'e') and insert it into a post, with a blank 'Link URL'.

    2) Now that the image is in the body of the post, edit the image's Link URL. (hover-over the image in the post and click the small icon on the upper-left that appears). If you click the 'File URL' button to auto-full the Link URL box, it will autofill the correct image address, but with a '.jpg' extension!

    This lead to 404 errors, a lightbox plugin that appeared broken, and had me thinking it was an .htaccess issue from my hosting company....

    NOTE: it autofills with the correct file extension when clicking the 'File URL' button is clicked upon initially inserting the image, however it fails when using the secondary menu that is available after inserting the image.

    Thanks for fixing this!

  2. Do you have any image related plugins?

  3. tedullrich
    Member
    Posted 4 years ago #

    Hi Ipsentu.

    No this is not a plugin issue. Infact, I just tested this on a completely separate install of WordPress with absolutely no plugins, and it does the same thing. Try it for yourself.

    It's a bug.

  4. I did. It worked fine for me on 2.9.1 and 3.0-alpha. That's why I asked. I checked in both Visual Editor and HTML (my preferred style).

    That said ... my button says 'Link to Image' and not 'File URL'. Is that really what yours says, or were you shorthanding?

    What kind of server are you on: Windows or Unix?

    PHP version? Any custom setups? Folder permissions?

    The auto generated images (the 150x150 size I use for thumbs) was a .jpg file, but the .jpeg I uploaded was exactly as it should be.

Topic Closed

This topic has been closed to new replies.

About this Topic