Drupal\xmlsitemap\Form\XmlSitemapEntitiesSettingsForm::__construct() must be an instance of Drupal\Core\State\State, instance of Drupal\webprofiler\State\StateWrapper given

.

Accessing the entities settings form under admin/config/search/xmlsitemap/entities/settings raises the aforementioned fatal error while having the Devel submodule Webprofiler

Comments

leymannx created an issue. See original summary.

norman.lol’s picture

Switching from Drupal\Core\State\State to Drupal\Core\State\StateInterface fixed it.

norman.lol’s picture

Status: Active » Needs review
dave reid’s picture

This adds the protected property to ensure it isn't defined dynamically.

  • Dave Reid committed cd19176 on 8.x-1.x
    Issue #3072108 by leymannx, Dave Reid: FatalThrowableError accessing...
dave reid’s picture

Status: Needs review » Fixed

Tested and committed #4 to 8.x-1.x.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.