Support » Plugin: EWWW Image Optimizer » Critical error on your site After EWWW plugin update

  • Resolved healthgym



    Today’s update of the EWWW plugin failed and generated a critical error on my site.

    The message, with WP debug mode on, is as follows:

    Warning: require_once(/home/u757540162/domains/ failed to open stream: No such file or directory in /home/u757540162/domains/ on line 105

    Fatal error: require_once(): Failed opening required '/home/u757540162/domains/' (include_path='.:/opt/alt/php74/usr/share/pear') in /home/u757540162/domains/ on line 105

    There is a critical error on your site.

    How do I solve this problem?

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

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author nosilver4u


    If it’s missing that file, it’s a failed upgrade. You should delete it and reinstall.

    Thread Starter healthgym




    I managed to solve the problem myself yesterday.

    I downloaded the files from the site, and analyzed the file ewww-image-optimizer.php

    I found the line that was being accused in debug mode (line 105 in updated version, or line 111 in the previous version):

    require_once( EWWW_IMAGE_OPTIMIZER_PLUGIN_PATH . 'classes/class-eio-base.php' );

    I also compared: The folder of the updated Ewww plugin VS. The plugin folder, of the last backup made on the site.

    I noticed that the update did not download/installed the “Classes” folder.

    So I copied the classes folder from the backup folder, and pasted it into the Ewww-image-optimizer folder on the server:


    And I resubmit the updated file ewww-image-optimizer.php to the server.

    With this done, the critical error message disappeared, and the site returned to work and the admin panel become accessible and manageable.

    • This reply was modified 8 months, 4 weeks ago by healthgym.

    Same problem here. I even renamed the initial folder and reinstalled from the repo with the same error. I’ll wait for a fix from the author.

    2.6.1 caused this for me. I deleted, re-added. No dice. I tried and no dice. Currently removed.

    “PHP message: PHP Fatal error: Uncaught Error: Call to undefined function add_query_var() in /wp-content/plugins/ewww-image-optimizer/common.php:1939”

    Plugin Author nosilver4u


    @deputy963 and @ajohnclark that is not the same error as the OP.
    The error you are running into is this one:
    Will have a fix out shortly.

    Thank you, sorry for wrong post, I saw last post was a few minutes ago.

    Same big problem here! I updated the plugin and since then I am not able to do anything anymore in the admin area of my site. I am running my site since over 5 years and something like that never happened before. The debug.log file tells me that EWWW Image Optimizer is the problem. And yes, I updated my plugins (EWWW included) sucessfully like with any other update – no interruption or anything. Sorry, but something like that should never ever happen!!! Why has this not been fully tested before sending out such an „update“?!

    • This reply was modified 8 months, 1 week ago by dajanas.

    Renaming the plugin folder or replacing the content with a previous version does not help. Has the little plugin now actually broken my website!??

    I found a solution and now updated to the newest version, which fixed the bug. But something like this should never ever happen again. Really.

    Plugin Author nosilver4u


    @dajanas You are right, that should not happen, but it did, and I apologize for that. I’d like to say it will never happen again, but I’m still human and not perfect 🙂

    What you CAN be assured of is that we will take swift action to fix any such error, as we have done in the past, and did in this case, with a fix the same day the problem was discovered.

    • This reply was modified 8 months, 1 week ago by nosilver4u.

    @nosilver4u But you haven’t published any instructions on HOW to install this update. Because of the error it was impossible to use the admin area at all. On EVERY page came the critical error. So you couldn’t just install an update, because there were no way to even check for updates!

    Not all WordPress users are programmers or skilled computer professionals. Many of them would have been completely lost. I just tried to change the name of the plugin folder and I was lucky, because so I could use the admin area again and install the update. Very few users would have thought that a) EWWW Image Optimizer is the cause of the problem (there was not any note about that, you would have to check for a debug.log file and so on) and b) that I should rename the folder to look for an update.

    There was no tutorial from you. And that just must not happen if your plugin crashes a complete WordPress page. You should check it 5 times, 10 times, 50 times before releasing such an update. I have been using WordPress for many years and have NEVER experienced anything like it.

    Plugin Author nosilver4u


    @dajanas Please stop, you’ve already violated forum etiquette by posting on a closed thread that was for an entirely different issue. If you want a response to any of your concerns, go start your own thread and be civil.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Critical error on your site After EWWW plugin update’ is closed to new replies.