- After installing the module, go to /admin/config/search/simplesitemap/custom.
- Try saving the configuration, it gets saved correctly. save success
- Now add a new Sitemap.
- Go back to Custom links page under Inclusion tab and try to save the configuration.
- 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).
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | Error-Message.png | 540.72 KB | swapbach |
| #8 | Fix-worked.png | 141.55 KB | swapbach |
| #3 | config-page-after-new-sitemap.png | 141.78 KB | swapbach |
| #3 | new-sitemap.png | 58.42 KB | swapbach |
| #3 | config-save-success.png | 70.09 KB | swapbach |
Comments
Comment #2
gbytePlease test the development version - bug reports must be opened against the dev version of the module.
While you are at it, could you please find a reproducible way of getting this bug on a fresh installation of the module?
Thanks!
Comment #3
swapbach commentedI 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:
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).
Comment #4
swapbach commentedComment #5
gbyteI could reproduce the problem - will have a look shortly.
Comment #7
gbytePlease test the dev version and get back to me.
Comment #8
swapbach commentedIssue 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.

Comment #9
swapbach commentedComment #10
gbyte@swapbach I've updated this ticket to reflect the issue that's been fixed. Would you mind creating a new support request ticket for the original issue you've been having?