Closed davidhund closed 3 years ago
Describe the bug After updating to v1.0.62 My homepage (only) showed the warning:
Notice: Undefined offset: 0 in /[...]/seo-by-rank-math/includes/modules/schema/snippets/class-primaryimage.php on line 38
https://github.com/rankmath/seo-by-rank-math/blame/master/includes/modules/schema/snippets/class-primaryimage.php#L38
The variable $image at this point is an Array with only a caption key and no value:
$image
caption
Array ( [caption] => )
Desktop (please complete the following information):
Additional context This is a MultiSite, Multi-Language-Press Wordpress 5.7 install. The error only occurs on the root site.com/
site.com/
Fixed in v1.0.63
Describe the bug After updating to v1.0.62 My homepage (only) showed the warning:
https://github.com/rankmath/seo-by-rank-math/blame/master/includes/modules/schema/snippets/class-primaryimage.php#L38
The variable
$image
at this point is an Array with only acaption
key and no value:Desktop (please complete the following information):
Additional context This is a MultiSite, Multi-Language-Press Wordpress 5.7 install. The error only occurs on the root
site.com/