Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter Haz

    (@tvguy2000)

    also, my bulk optimize feature is not working. I select my images in the media library, go to bulk optimize and nothing happens. Its the same result if I try to force optimize or not.

    so the only way I can get the plugin to optimize my images is to disable the plugin, import the images, activate the plugin and then manually optimize each image by clicking “optimize now!”

    (and I have tried disabling all other plugins, clearing my cache, clearing my CDN, and uninstalling and re-installing EWWW)

    Thoughts?

    Plugin Author nosilver4u

    (@nosilver4u)

    That error is going to break the entire plugin, and I can’t figure out why you would be seeing it.
    Can you confirm that common.php in the plugin folder has version 210 set near the top?

    Thread Starter Haz

    (@tvguy2000)

    I opened the common.php file and here is what it has near the top:

    define(‘EWWW_IMAGE_OPTIMIZER_VERSION’, ‘211’);

    all I did was update via the wordpress auto update.

    Please let me know what you think

    (great plugin, btw. thanks for all of your hard work with it.)

    Plugin Author nosilver4u

    (@nosilver4u)

    Ok, so that checks out (it should be 211, not 210 like I said earlier), and that is the file which contains the ewwwio_memory() function. Now to figure out how it can be undefined when the image-editor.php file is being included…

    Plugin Author nosilver4u

    (@nosilver4u)

    Just to make sure, can you look and see if there is an ewwwio_memory function around line 139 in common.php?

    Thread Starter Haz

    (@tvguy2000)

    this is what is at line 139

    function ewwwio_memory( $function ) {
    if ( WP_DEBUG ) {
    global $ewww_memory;
    $ewww_memory .= $function . ‘: ‘ . memory_get_usage(true) . “\n”;
    }

    would you like me to copy and paste the whole content of the common.php file?

    Plugin Author nosilver4u

    (@nosilver4u)

    nope, that confirms the function exists. Here’s the puzzle:
    The core plugin file is ewww-image-optimizer.php. Nothing happens until this file is loaded. The core file then includes common.php, almost right away at the beginning. common.php contains the function that is supposedly undefined. common.php is also the file that then includes image-editor.php, which contains the line that is causing the error. It’s complaining about a missing function which is defined in the parent file, which shouldn’t even be possible. Mind blown…

    Going to get some sleep, maybe I’ll dream the answer…

    Thread Starter Haz

    (@tvguy2000)

    thanks for all your help with this. Has anyone else reported this? Let me know if you think of something.

    If you want me to zip up and email anything so you can see it, please let me know.

    Thread Starter Haz

    (@tvguy2000)

    Good morning, and good news. I did another fresh install this morning and it worked. No more error. Not sure why, but its all good. thanks again for all of your help and work on this great plugin.

    Plugin Author nosilver4u

    (@nosilver4u)

    great, that’s good to hear. I was quite puzzled, and a corrupted download was the only thing I could think of. I wonder if the download was cached, so that when you tried to reinstall the first time it didn’t work? Anyway, glad to hear you’re up and running!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Fatal error on import after updating to v 2.1.1’ is closed to new replies.