Support » Plugin: reSmush.it Image Optimizer » Notice: Undefined index: dirname in resmushit.php on line 89

  • Hi,

    I noticed this error when I have a “gift card” product in my cart.
    The notice is triggered on this line:
    $basepath = $fileInfo[‘dirname’] . ‘/’;
    Evidently $fileInfo doesn’t have ‘dirname’ 🙂

    Would appreciate if you could fix it! (using latest plugin version).

    Thanks,
    Uri

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author reSmush.it

    (@resmushit)

    Hi Uri,

    Thanks for this feedback, we’ll have a look at it.
    We’ll keep you updated.

    Cheers,
    Charles

    Noticed this above WooCommerce images when setting debug mode to true for WordPress.

    It seemed to break my site and also gave other types of errors like

    PHP Warning: Illegal string offset 'height' in /var/www/example.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php on line 222

    Once I disabled the plugin and regenerated the images using another plugin, the site started working again.

    I tried regenerating images while the plugin was still active as well, but still had the same issues until I deactivated it.

    • This reply was modified 10 months, 3 weeks ago by  Tecca.
    • This reply was modified 10 months, 3 weeks ago by  Tecca.
    Plugin Author reSmush.it

    (@resmushit)

    Hi Tecca,

    We’ve released a new version today that should correct your issue.

    Keep us posted !

    Cheers,
    Charles

    Awesome, thank you! I reinstalled and will have to see over some time how things work out since all of my images are optimized already.

    Plugin Author reSmush.it

    (@resmushit)

    Good news, we keep in touch ! And don’t hesitate to rate our plugin 🙂

    Hi. I have the same issue with WooCommerce product images.
    The plugin’s version is 0.1.22.

    Hello.
    I am also getting this error:
    [03-May-2019 20:31:17 UTC] PHP Notice: Undefined index: dirname in /wp-content/plugins/resmushit-image-optimizer/resmushit.php on line 89

    • This reply was modified 6 months, 2 weeks ago by  fkoomek.
    • This reply was modified 6 months, 2 weeks ago by  fkoomek.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Notice: Undefined index: dirname in resmushit.php on line 89’ is closed to new replies.