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

PHP errors when trying to change the view mode of sub landing page teasers #184

Open
andybroomfield opened this issue Oct 18, 2022 · 0 comments

Comments

@andybroomfield
Copy link
Contributor

This was discovered on the BHCC version of the LinkNodeReference in localgov_services_sublanding
(Actully the BHCC formatter that extends it).

Getting PHP errors when trying to set the view mode


Warning: Undefined array key "topic_list_term" in /Users/Andy/Sites/bhcclocalgov/docroot/core/modules/field_ui/src/Form/EntityDisplayFormBase.php on line 594

Warning: Trying to access array offset on value of type null in /Users/Andy/Sites/bhcclocalgov/docroot/core/modules/field_ui/src/Form/EntityDisplayFormBase.php on line 596

Warning: Trying to access array offset on value of type null in /Users/Andy/Sites/bhcclocalgov/docroot/core/modules/field_ui/src/Form/EntityDisplayFormBase.php on line 611

Warning: Trying to access array offset on value of type null in /Users/Andy/Sites/bhcclocalgov/docroot/core/modules/field_ui/src/Form/EntityDisplayFormBase.php on line 612

Warning: Trying to access array offset on value of type null in /Users/Andy/Sites/bhcclocalgov/docroot/core/modules/field_ui/src/Form/EntityDisplayFormBase.php on line 613

Warning: Undefined array key "search_api_excerpt" in /Users/Andy/Sites/bhcclocalgov/docroot/core/modules/field_ui/src/Form/EntityDisplayFormBase.php on line 624

Warning: Trying to access array offset on value of type null in /Users/Andy/Sites/bhcclocalgov/docroot/core/modules/field_ui/src/Form/EntityDisplayFormBase.php on line 624

Warning: Undefined array key "search_api_excerpt" in /Users/Andy/Sites/bhcclocalgov/docroot/core/modules/field_ui/src/Form/EntityDisplayFormBase.php on line 629

Warning: Trying to access array offset on value of type null in /Users/Andy/Sites/bhcclocalgov/docroot/core/modules/field_ui/src/Form/EntityDisplayFormBase.php on line 629

Warning: Undefined array key "search_api_excerpt" in /Users/Andy/Sites/bhcclocalgov/docroot/core/modules/field_ui/src/Form/EntityDisplayFormBase.php on line 630

Warning: Trying to access array offset on value of type null in /Users/Andy/Sites/bhcclocalgov/docroot/core/modules/field_ui/src/Form/EntityDisplayFormBase.php on line 630

There is no parent form call on the settingsForm method, adding $form = parent::settingsForm($form, $form_state); resolves the issue.

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