• Resolved kipinae

    (@kipinae)


    I’ve been building a new website for a client. I thought I’d throw in some nice website optimization that they didn’t necessarily ask for, but would appreciate. And since it’s a very image-heavy e-commerce site, image compression was a no-brainer as a concept.

    However, as soon as I ran the image compression process with WP-Optimize, none of the images work anymore. I have checked and they are physically there on the server right where the path says they are, but none of them are loading on the website.

    So far I have tried:

    • emptying both browser cache and WP cache
    • viewing in incognito mode and different browsers
    • refreshing .htaccess
    • checking folder/file permissions (they are the same as on the production site, where everything still works)
    • disabling literally every single plugin on the site
    • using ShortPixel’s optimization plugin instead
    • restoring the original images through the plugin

    None of these have made any difference. At this point, I’m at a loss and don’t know what else to do other than delete everything in the media library and import them back from the old site. Is there any other way to fix this?

    (Note: the ONE image that still works is on the front page carousel that for some godforsaken reason loads it from the old site.)

    • This topic was modified 3 years, 10 months ago by kipinae.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • @kipinae I’ve tried to directly access one of the images on your site: https://ruttunuttu.com/testi/wp-content/uploads/2022/07/pinkkibullbat-100×100.jpg

    Accessing the above image path directly gives Internal server error.

    Could you send me a copy of your server’s PHP Error log?
    You can find this log through your web hosting control panel (typically cPanel). If you are unsure where to find the PHP Error log, you can ask your hosts to provide it.

    You can copy and paste the PHP error log to https://pastebin.com and share the link with us.

    Thread Starter kipinae

    (@kipinae)

    Ok so I dug up the error logs, kept seeing “Option ExecCGI not allowed here”, and did some googling about what it is.

    Turns out, it was not related to the image compression process after all, but rather a nasty after-effect from a security plugin (Wordfence) that I had already deleted. Fixed it by deleting the additions that Wordfence had added to the .htaccess file under the uploads folder. (Somehow I didn’t think of checking those elsewhere before, other than the root…)

    Sorry for the trouble, everything is working smooth as butter again. Just leaving the solution here for anyone else possibly having the same issue.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Images broken after compression’ is closed to new replies.