Problem/Motivation
I got this error: TypeError: Argument 1 passed to Drupal\simple_sitemap_engines\Form\FormHelper::displayEntitySettings() must be of the type array, null given, called in /xxx/modules/contrib/simple_sitemap/modules/simple_sitemap_engines/simple_sitemap_engines.module on line 53 in Drupal\simple_sitemap_engines\Form\FormHelper->displayEntitySettings() (line 35 of /xxx/modules/contrib/simple_sitemap/modules/simple_sitemap_engines/src/Form/FormHelper.php)
Steps to reproduce
I created a new node type in a new site. The sitemap settings have been created for google and indexnow. I enabled the sitemap settings in the new node type. I added an image field. Next I tried to delete the node type and got this error.
Comment | File | Size | Author |
---|
Comments
Comment #2
gbyte CreditAttribution: gbyte as a volunteer and at gbyte commentedI think I encountered it somewhere in the wild recently - will fix it quickly.
Comment #4
gbyte CreditAttribution: gbyte as a volunteer and at gbyte commentedFixed in dev.
Comment #6
afagioliIn the meantime, the workaround is:
temporary disable involved entity at
/admin/config/search/simplesitemap/entities
Comment #7
kieran.cott CreditAttribution: kieran.cott as a volunteer commentedI have reproduced @gbyte's solution in comment #3 as a patch.
Comment #8
gbyte CreditAttribution: gbyte as a volunteer and at gbyte commented@kieran.cott
No you haven't, your patch does something entirely different. Also there is no need for that - it's been merged and has been available in the most recent version of the module.
Comment #9
gbyte CreditAttribution: gbyte as a volunteer and at gbyte commentedComment #10
kieran.cott CreditAttribution: kieran.cott as a volunteer commentedMany thanks