In Drupal 8, after upgrading Simple XML sitemap from 8.x-3.1 to the latest version, I can no longer access my website and it is showing the following error message.
Error: Class 'Drupal\simple_sitemap\PathProcessor\PathProcessorSitemapVariant' not found in Drupal\Component\DependencyInjection\Container->createService() (line 265 of core/lib/Drupal/Component/DependencyInjection/Container.php).
I was block out of my website. Trying any URL path will show the message "The website encountered an unexpected error. Please try again later."
You need to run the following 2 pending updates of the simple_sitemap module:
- 8301 - Changing id and delta fields of simple_sitemap table from smallint to int.
- 8302 - Removing unused batch_process_limit key from simple_sitemap.settings configuration.
In order to do this, simply open https://your-wesbiste/update.php and follow the instructions.
More details about this issue can be found at https://www.drupal.org/project/simple_sitemap/issues/3057681.