After installation I activated the module and the site broke - white screen saying "The site experience an error." (or similar as I have it running a different language).
I renamed the module folder on the server and the site is working again.
Tried to rename it back to the original name and the site stopped working.
In the log files I can see the following errors listed.
1:
First error message after installation:
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "path.alias_manager". Did you mean this: "path_alias.manager"? i Drupal\Component\DependencyInjection\Container->get() (linje 151 af /var/www/vhosts/norouteexplore.dk/httpdocs/core/lib/Drupal/Component/DependencyInjection/Container.php).
this one is listed 9 times - I did try accessing the site in different ways before I got back in.
2:
After the nine error messages I got this this on:
Warning: include_once(/var/www/vhosts/domain.dk/httpdocs/modules/page_specific_class/page_specific_class.module): failed to open stream: No such file or directory in include_once() (line 147 of /var/www/vhosts/domain.dk/httpdocs/core/lib/Drupal/Core/Extension/Extension.php)
#0 /var/www/vhosts/domain.dk/httpdocs/core/includes/bootstrap.inc(305): _drupal_error_handler_real(2, 'include_once(/v...', '/var/www/vhosts...', 147)
#1 /var/www/vhosts/domain.dk/httpdocs/core/lib/Drupal/Core/Extension/Extension.php(147): _drupal_error_handler(2, 'include_once(/v...', '/var/www/vhosts...', 147, Array)
#2 /var/www/vhosts/domain.dk/httpdocs/core/lib/Drupal/Core/Extension/Extension.php(147): include_once()
#3 /var/www/vhosts/domain.dk/httpdocs/core/lib/Drupal/Core/Extension/ModuleHandler.php(128): Drupal\Core\Extension\Extension->load()
#4 /var/www/vhosts/domain.dk/httpdocs/core/lib/Drupal/Core/Extension/ModuleHandler.php(141): Drupal\Core\Extension\ModuleHandler->load('page_specific_c...')
#5 /var/www/vhosts/domain.dk/httpdocs/core/lib/Drupal/Core/DrupalKernel.php(584): Drupal\Core\Extension\ModuleHandler->loadAll()
#6 /var/www/vhosts/domain.dk/httpdocs/core/authorize.php(74): Drupal\Core\DrupalKernel->preHandle(Object(Symfony\Component\HttpFoundation\Request))
#7 {main}The real domain is replaced with "domain.dk" in the above text.
3:
And after that I got the 3rd error message similar to the above one.
After I renamed the folder all worked again so it suggest that there is something in the module that is making the error.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 2021-05-20 111321.png | 12.5 KB | jens peter |
Comments
Comment #2
hardik_patel_12 commentedHi @Jens Peter thanks for reporting this issue, can you please try this module with new version ie. 2.0.1 and verify you are facing same issue or not? and can you please tell me which Drupal version you were working on?
Comment #3
jens peter commentedHi @Hardik_patel_12
Thanks for returning so fast.
I uninstalled the module and reinstalled with the newer version and it seems to be working now.
I have not yet tried to add any classes yet, but at least I do not have ny errors.
I installed the official version on Drupal 9.1.8.
Maybe the version 8.1 is not really for Drupal 9 :-)
Thanks for helping with this so fast.
Comment #4
hardik_patel_12 commentedYou are right @Jens Peter version 8.1 is not for Drupal 9, and 2.0.1 version support 8.8 || ^9. Closing this issue.
Thanks for your time and efforts.
Comment #5
jens peter commentedThen you might want to change the information related to version 8.x as it clearly says it is ready for Drupal 9.

See attached picture.