Created on 5 January 2024, 12 months ago
Updated 1 March 2024, 10 months ago

When I try to unistall Simple XML sitemap, version 8.x-3.11, I got the error "The website encountered an unexpected error. Please try again later."

This is the log message:

TypeError: Drupal\simple_sitemap\Entity\SimpleSitemapStorage::__construct(): Argument #9 ($settings) must be of type Drupal\simple_sitemap\Settings, Drupal\simple_sitemap\SimplesitemapSettings given, called in /home/znacico/public_html/modules/simple_sitemap/src/Entity/SimpleSitemapStorage.php on line 93 in Drupal\simple_sitemap\Entity\SimpleSitemapStorage->__construct() (line 81 of /home/znacico/public_html/modules/simple_sitemap/src/Entity/SimpleSitemapStorage.php)

💬 Support request
Status

Fixed

Version

3.11

Component

Code

Created by

🇧🇦Bosnia and Herzegovina e_wolf

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

Comments & Activities

  • Issue created by @e_wolf
  • 🇮🇳India sakthi_dev

    Hi @e_wolf, Could you please share the PHP version, Drupal version as I tried with Drupal 9.5.x, PHP: 8.1 and 7.4 and 3.11 module version not able to reproduce it?

  • 🇧🇦Bosnia and Herzegovina e_wolf

    Drupal 9.5.11
    PHP version 8.2.9

  • 🇮🇳India samir_shukla bareilly

    Hi, e_wolf!, I tried producing the error but couldn't. Is there any configuration you did before uninstalling the module? I am using Drupal 9.5.x and php 8.2

  • 🇧🇦Bosnia and Herzegovina e_wolf

    Hi samir_shukla,

    before uninstalling, I have removed anything from the configuration in /admin/config/search/simplesitemap

    This is a message in "Status report":

    x Entity/field definitions
    Mismatched entity and/or field definitions
    The following changes were detected in the entity type and field definitions.
    Simple XML sitemap type
    The Simple XML sitemap type entity type needs to be installed.

    This is very annoying fact that I am not able to deinstall a module. I just want to have a clean situation before upgrading from Drupal 9.5.11 to Drupal 10.*

  • 🇮🇳India samir_shukla bareilly

    Hi,
    I still couldn't reproduce the error. When i switched to branch 8.x-3.11, firstly I didn't find the file SimpleSitemapStorage.php. The file was present on 4.x.
    And after doing some research, i found the issue can be solved with any of the steps mentioned below:
    1. Try running any necessary database updates using Drush or the Drupal admin interface to ensure that the database schema is up-to-date.
    2. Try reinstalling the module again and clear the cache.

    I hope it helps.

  • 🇧🇦Bosnia and Herzegovina e_wolf

    Since I could not resolve the problem, I did a bypass:
    First I made a clone of my web site and there uninstalled Simple XML sitemap module. Than, I took a database from the cloned site and replaced a database on an original site with it.

    Problem solved.

  • Status changed to Fixed 10 months ago
  • 🇧🇦Bosnia and Herzegovina e_wolf
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024