• Resolved rklrkl

    (@rklrkl)


    Just upgraded to version 4.0 of this plugin and got this fatal error:

    PHP Fatal error: Uncaught Error: Cannot unset offset in a non-array variable in <webtree>/wp-content/plugins/better-image-sizes/resizer/index.php:503

    It looks like the 4.0 code is trying to unset a variable that maybe doesn’t exist – here’s line 503:

                        unset( $attr['retina'] );

    Line 491 does do an isset() check, but line 503 doesn’t, so maybe it should read:

    if( isset( $attr['retina'] ) { unset( $attr['retina'] ); }
Viewing 1 replies (of 1 total)
  • Plugin Author kubiq

    (@kubiq)

    Hm, but it would mean that $attr is not an array and that’s a very weird scenario,
    it must be some wrong declaration, or another filter or plugin changing something…

    But sure, I can add this condition, it’s just unexpected.

    You can update to 4.0.1 now 😉

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.