Home › Forums › WoodMart support forum › PHP Warning: Trying to access array offset on value of type bool › Reply To: PHP Warning: Trying to access array offset on value of type bool
awran5
Hi Elise,
Thank you for your time.
I started actually to deactivate some of installed plugin while watching the real-time log but the issue remained and I noticed that the warning only occur when I navigate from any single product page to my home page, so I opened up woodmart/inc/helpers.php
file, line 933
, and I guess the issue is related to $thumb_size
array inside woodmart_get_svg_html
function which apparently resets to null during page change.
I just added a simple check before reading the array if ( is_array( $thumb_size ) )
and the issue is gone.
I did undo the changes and I’ll provide the admin access to check yourself.
Thank you very much.