WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Weirdest problem ever: Image refuses to get posted (11 posts)

  1. PayBas
    Member
    Posted 3 years ago #

    I am not new to WordPress. I have made numerous websites based on WordPress and most of them included a decent amount of custom code etc. But this latest problem has me baffled.

    Here's the thing. I have a specific image. Nothing special. An image of a watch ( http://tijdvoorpolitiek.nl/wp-content/uploads/2010/11/pechtold_DSC8582-HD.jpg ).

    It uploads just fine to the media library and everything seems okay. However, when I make a new post and try to insert it into the page, the awkwardness begins.

    When I try to insert it as a medium sized thumbnail (which I use the most), the image just vanishes. When viewing the generated code, I see this:
    <a href="http://tijdvoorpolitiek.nl/wp-content/uploads/2010/11/pechtold_DSC8582-HD2.jpg"><img class="alignleft size-medium wp-image-379 bxzjfhjdzedpoeyoatep bxzjfhjdzedpoeyoatep" title="pechtold_DSC8582-HD2" src="http://tijdvoorpolitiek.nl/wp-content/uploads/2010/11/pechtold_DSC8582-HD2-300x250.jpg" alt="" width="300" height="250" /></a>

    Notice the bxzjfhjdzedpoeyoatep bxzjfhjdzedpoeyoatep class that WordPress has added automatically? What the hell?

    When I try to insert the image as a small 150x150 thumbnail it works fine. Likewise fot the full-size image. Alignment settings don't seem to matter.

    Removing the classes manually through the code editor doesn't seem to work. Naturally, I made sure that the medium-sized thumbnail has been generated correctly... and it has ( http://tijdvoorpolitiek.nl/wp-content/uploads/2010/11/pechtold_DSC8582-HD2-300x250.jpg ).

    I haven't got a clue what makes WordPress act like this but I tried a few things:
    - Other images work fine (all sizes)
    - Reuploading the image doesn't work
    - Even editing the image in Photoshop (resizing it or whatever), then uploading it again doesn't work

    What the f*ck is up with this image? Am I missing something? The image can hardly be corrupt becaue photoshop throws no errors and opens/edits/saves it without problems.

    I am at a loss, all help would be appreciated.

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Have you tried:

    - deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the Twenty Ten theme to rule out any theme-specific problems?

    - resetting the plugins folder by FTP or phpMyAdmin? Sometimes, an apparently inactive plugin can still cause problems.

  3. PayBas
    Member
    Posted 3 years ago #

  4. PayBas
    Member
    Posted 3 years ago #

    Yes, of course I have de-activated all plugins :), it was a no-go.

  5. esmi
    Forum Moderator
    Posted 3 years ago #

    And changed theme? And tried the plugin reset?

  6. PayBas
    Member
    Posted 3 years ago #

    I just now tried to upload the image to a 100% clean WordPress install.

    Still not working... there must be something wrong with the image, but I just can't figure out what. I even made a version of the image with just about every piece of meta-info removed.

    Is there a photo-expert in the house :D?

  7. esmi
    Forum Moderator
    Posted 3 years ago #

    Have you tried using another image format - like .png - to see if it's a jpg encoding issue?

  8. PayBas
    Member
    Posted 3 years ago #

    I just tried uploading the image to different websites on different hosts. 3 different websites on 2 different hosts all displayed the exact same results.

    However, when downloading the entire website (files and SQL) to my local LAMP, it does work. Could it be a PHP setting?

  9. PayBas
    Member
    Posted 3 years ago #

    Well I'm still pretty much clueless.

    As far as I can tell, it's a combination of this image and some PHP setting/script or whatever.

    Can anyone download the image and try to add it to a post/draft of theirs as a medium-sized thumbnail? Let me know if it works.

  10. davidjustin
    Member
    Posted 3 years ago #

    I had the same weird classes being added on my images in wordpress.

    I fought this for almost an hour, and I realized it had nothing to do with wordpress eventually. I have the Ad Block Plus extension installed on FireFox and this was my problem. I had a class names "ad-space" and add block plus automatically hid the page item.

    I had an image with alt="ad" and it wouln't show, I has a dic with class="ad-space" also wouldnt show.

    I had the same weird classes being added on my images in wordpress.

    Hopefully this saves someone a future headache.

  11. PayBas
    Member
    Posted 3 years ago #

    lol, oh my god, I feel like such an idiot now :D

Topic Closed

This topic has been closed to new replies.

About this Topic