PHP Error When Trying to COnfigure Inclusion

Created on 9 April 2025, 15 days ago

Problem/Motivation

PHP Error occurs when I click on the "Configure" Button in the Inclusion screen, a PHP error occurs.

Steps to reproduce

When I am in the "admin/config/search/simplesitemap/entities" page, if I click on any of the "Configure" buttons, I get the following PHP error:

TypeError: Drupal\simple_sitemap\Form\FormHelper::bundleSettingsForm(): Argument #1 ($form) must be of type array, string given, called in /code/web/modules/contrib/simple_sitemap/modules/simple_sitemap_engines/src/Form/FormHelper.php on line 128 in Drupal\simple_sitemap\Form\FormHelper->bundleSettingsForm() (line 211 of modules/contrib/simple_sitemap/src/Form/FormHelper.php).
Drupal\simple_sitemap_engines\Form\FormHelper->entityBundlesFormAlter(Array) (Line: 55)
simple_sitemap_engines_form_simple_sitemap_entity_bundles_form_alter(Array, Object, 'simple_sitemap_entity_bundles_form') (Line: 552)
Drupal\Core\Extension\ModuleHandler->alter('form', Array, Object, 'simple_sitemap_entity_bundles_form') (Line: 834)
Drupal\Core\Form\FormBuilder->prepareForm('simple_sitemap_entity_bundles_form', Array, Object) (Line: 285)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 638)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 53)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 57)
Drupal\advban\AdvbanMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\ban\BanMiddleware->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 741)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

4.2

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @mvnovick
  • 🇨🇦Canada danrod Ottawa

    I don't see that error myself, which PHP version your instance is using?

  • 🇷🇺Russia walkingdexter

    Need more information:

    1. Drupal version and PHP version.
    2. Do you have any custom or contrib modules installed that extend the Simple XML Sitemap module?
    3. Can you reproduce the error on a clean install?
  • I am using Drupal 10.3.10 and PHP 8.1.32. Also, I have "Simple XML Sitemap (Search engines)" and "Simple XML Sitemap (Views)" modules enabled. There are no other custom or contrib modules that extend the Simple XML Sitemap module. I will try to reproduce the error on a clean install and report it here.

  • 🇷🇺Russia walkingdexter

    @mvnovick thanks for the information! It looks like there is a conflict with one of the contrib or custom modules. Can you uninstall modules one by one until the error disappears?

Production build 0.71.5 2024