SeoMaestro icon indicating copy to clipboard operation
SeoMaestro copied to clipboard

Support image fields that are nested, i.e. hero_fieldset.hero_image

Open tim-vw opened this issue 2 years ago • 0 comments

Hi Wanze,

Great module, thanks for developing.

I'm trying to use a default image field that is nested hero_fieldset.hero_image, if the image field is not populated with an image it throws the following: Error Call to a member function get() on null

Updating line 149 of OpengraphSeoData.php as follows prevents the error, I was wondering if you'd consider incorporating this fix into a future release.

if (!$field || !$field->get('defaultValuePage')) {

Thanks very much, Tim

tim-vw avatar Dec 03 '21 19:12 tim-vw