Active
Project:
Simple XML sitemap
Version:
4.2.3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Dec 2025 at 08:20 UTC
Updated:
23 Dec 2025 at 20:27 UTC
Jump to comment: Most recent
After updating to Drupal 11.3 from 11.2.10, ALL Taxonomy overview pages are broken on my site.
I understand from digging deeper that this my be due to....
...in 11.3.x, Drupal changed when and how the overview form object is constructed, and
$this->entityis now NULL at alter time for that form.
After injecting a bit of debug code into core/lib/Drupal/Core/Entity/EntityForm.php, I think I may have uncovered Simple Site Map as a possible culprit...
TypeError: Drupal\simple_sitemap\Form\FormHelper::resolveEntityFormHandler(): Argument #1 ($entity) must be of type Drupal\Core\Entity\EntityInterface, null given, called in C:\laragon\www\bit-by-bit.org\public_html\modules\contrib\simple_sitemap\src\Form\FormHelper.php on line 125 in Drupal\simple_sitemap\Form\FormHelper->resolveEntityFormHandler() (line 157 of modules\contrib\simple_sitemap\src\Form\FormHelper.php).
Rolling back to Drupal 11.2.10 and the problem disappears so I'm reasonably confident in my analysis of the root cause of the issue being the 'breaking' Drupal core change.
Comments
Comment #2
gbyteWith 'overview page' do you mean the taxonomy list or the taxonomy entity form?
I have just updated to 11.3 on my test instance, turned on all simple_sitemap modules, configured the module to index taxonomy terms of type 'tags' and have no such issues.
No problem on either /admin/structure/taxonomy/manage/tags/overview nor /taxonomy/term/40/edit.
Can you please install the latest dev, uninstall all custom & 3rd party modules that hook into simple_sitemap and if you encounter the issue provide the full stack trace so we know there the issue starts?
Comment #3
sirclickalotNotes
Thank you for your response.
In answer to your first question, I am seeing this on any Taxonomy overview page, i.e. the page that
lists the terms, prior to one attempting to edit any.
As an extra piece of of information that may help, I am actually NOT including a Taxonomy terms' URLs in my Sitemap,
only
nodeURLs.I have no other modules that attempt to hook into anything in:
modules/contrib/simple_sitemap/simple_sitemap.api.phpInitial reasoning for waggling a finger at Simple Site Map
With Drupal 11.3.0 onwards, the following code from
core/lib/Drupal/Core/Entity/EntityForm.php...... throws an exception if
$this->entityisnull.In the Drupal <11.3 version of our site, visiting:
/admin/structure/taxonomy/manage/level/overview
Shows the terms listed in the 'level' taxonomy as expected.
In the Drupal 11.3 version of our site, visiting: /admin/structure/taxonomy/manage/level/overview
Triggers the following fatal error ...
public function getBaseFormId() { if (!$this->entity) { return NULL; } $base_form_id ...Further reveals where the
nullmay have come from? ...Justification for NOT waggling a finger at Simple Site Map
HOWEVER, uninstalling the Simple XML Sitemap module reveals another named module (Simplify) showing
up as the source of the 'offending'
form_alter...HOWEVER, uninstalling the Simplify module reveals another named module (Front End Editing) showing
up as the source of the 'offending'
form_alter...Conclusions
I'm pretty sure my debugging above is rubbish! - I think that all I am doing here here is 'passing on' the
nullID to the next module in turn and clearly the finger-waggling at Simple XLM Sitemap was unjustified.Simple XLM Sitemap is not the culprit, and we could just close this issue but I should like to keep it open
and/or take some advice from anyone as to how to ascertain what one earth is causing all this upset since the update
to Drupal 11.3.
Might 'something' much further back in the page rendering process be causing this and if so, how to best debug?
I do have a pretty vast amount of modules active on the site ;-(
Thanks all!