Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tim-vw opened this issue Dec 3, 2021 · 0 comments
Open

Comments

@tim-vw
Copy link

tim-vw commented Dec 3, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant