Aqua-Resizer
Aqua-Resizer copied to clipboard
Notice: Trying to access array offset on value of type bool in
I am getting this error on my site.
Notice: Trying to access array offset on value of type bool in /homepages/6/d22556011/htdocs/clickandbuilds/HomeOfficeToGo/wp-content/themes/configurator/framework/plugins/aq_resizer.php on line 115
Notice: Trying to access array offset on value of type bool in /homepages/6/d22556011/htdocs/clickandbuilds/HomeOfficeToGo/wp-content/themes/configurator/framework/plugins/aq_resizer.php on line 116
The code on line 115, 116 is:
$dst_w = $dims[4];
$dst_h = $dims[5];
Thanks in advance!
This throws an error in Latest PHP Versions. For PHP versions < 7 you can also use a ternary statement
$dst_w = isset($dims[4]) ? $dims[5] : ''; $dst_h = isset($dims[5]) ? $dims[5] : '';
Same issue for me. Is this resolved for you? Ok it seems that the above answer resolves it. I wonder why he wrote < 7 instead of > 7, though. Moreover I modified to: "? $dims[4]" in the first statement.
This throws an error in Latest PHP Versions. For PHP versions < 7 you can also use a ternary statement
$dst_w = isset($dims[4]) ? $dims[5] : ''; $dst_h = isset($dims[5]) ? $dims[5] : '';
should be:
$dst_w = isset($dims[4]) ? $dims[4] : '';
$dst_h = isset($dims[5]) ? $dims[5] : '';