- πΊπΈUnited States attheshow
Comment #30 was very helpful for me when trying to fix this issue on Pantheon. Thanks @KCarlile!
- πΊπΈUnited States karenann
I have having similar errors and tried the /rebuild.php and updb and cr etc etc:
On cr, ReflectionException: Class "\Drupal\simple_sitemap\Controller\SimpleSitemapController" does not exist in /code/web/core/lib/Drupal/Core/Entity/EntityResolverManager.php:135
On updb, it did the first two (I think) updates and failed on 8403 with: Error: Class "Drupal\simple_sitemap\Queue\SimpleSitemapQueue" not found in Drupal\Component\DependencyInjection\Container->createService() (line 259 of /code/web/core/lib/Drupal/Component/DependencyInjection/Container.php).
I'm on pantheon, like comment #37, and I looked to #30.
- I removed the simple_sitemap files
- git config core.ignorecase false
- composer require 'drupal/simple_sitemap:^4.1'
- commit and push
I did a cache rebuild which STILL threw an error, but the subsequent updb did NOT error and things seem okay.
- π©πͺGermany rwam
Same issue on local Mac OSX and Ubuntu on staging/production. Removing and reinstalling the module doesn't solve this. To fix the issue there are the following steps necessary:
-
git mv src/Commands/SimplesitemapCommands.php src/Commands/SimplesitemapCommands2.php git mv src/Controller/SimplesitemapController.php src/Controller/SimplesitemapController2.php git mv src/Form/SimplesitemapFormBase.php src/Form/SimplesitemapFormBase2.php git mv src/Plugin/simple_sitemap/SimplesitemapPluginBase.php src/Plugin/simple_sitemap/SimplesitemapPluginBase2.php git mv src/Queue/SimplesitemapQueue.php src/Queue/SimplesitemapQueue2.php
-
git mv src/Commands/SimplesitemapCommands2.php src/Commands/SimpleSitemapCommands.php git mv src/Controller/SimplesitemapController2.php src/Controller/SimpleSitemapController.php git mv src/Form/SimplesitemapFormBase2.php src/Form/SimpleSitemapFormBase.php git mv src/Plugin/simple_sitemap/SimplesitemapPluginBase2.php src/Plugin/simple_sitemap/SimpleSitemapPluginBase.php git mv src/Queue/SimplesitemapQueue.php2 src/Queue/SimpleSitemapQueue.php
-
git commit -m "Fixing file names"
I had similar issues in the past and this always work for me (e.g. 2886663 β ).
Maybe a short note or linking this issue on the upgrade info would be helpful.
-
- πΊπΈUnited States en-cc-org
Same issue, local Windows with Pantheon, upgrading from 3.11 to 4.1.6. #26 π¬ Class 'Drupal\simple_sitemap\Queue\SimpleSitemapQueue' not found Fixed worked like a charm for me, thanks @Sutharsan and all who contributed above.
- π΅π°Pakistan isalmanhaider
#38 worked both on local and acquia!
this was a real blocker for us in upgrading to D10