Fatal error for version 4.0 in resizer/index.php
-
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:503It 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)
Viewing 1 replies (of 1 total)
You must be logged in to reply to this topic.