🐛 | Simple XML sitemap | Error: Call to a member function label() on null in Drupal\simple_sitemap\Form\CustomLinksForm->validateForm()
🇮🇳India swapbach
🐛 | Simple XML sitemap | Error: Call to a member function label() on null in Drupal\simple_sitemap\Form\CustomLinksForm->validateForm()
🇮🇳India swapbach
Issue which I reported on fresh Drupal installation is fixed now.
Thank you for that.
However when I tried the same dev version module in my existing site, its not working somehow. Original error messages which I reported, are still there. I don't see the textboxes for the sitemaps on this page. Can you please help in getting to know what could be the issue here.
🐛 | Simple XML sitemap | Error: Call to a member function label() on null in Drupal\simple_sitemap\Form\CustomLinksForm->validateForm()
🇮🇳India swapbach
🐛 | Simple XML sitemap | Error: Call to a member function label() on null in Drupal\simple_sitemap\Form\CustomLinksForm->validateForm()
🇮🇳India swapbach
I installed dev version of the module on the fresh standard Drupal 10.0.0 version and I get different error this time.
Steps to reproduce the issue:
- After installing the module, go to /admin/config/search/simplesitemap/custom.
- Try saving the configuration, it gets saved correctly.
- Now add a new Sitemap.
- Go back to Custom links page under Inclusion tab and try to save the configuration.
- Page breaks and below error is shown in the recent logs:
Error: Call to a member function label() on null in Drupal\simple_sitemap\Form\CustomLinksForm->validateForm() (line 118 of C:\xampp\htdocs\drupal10\modules\contrib\simple_sitemap\src\Form\CustomLinksForm.php).