Closed (fixed)
Project:
High contrast
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Apr 2020 at 13:54 UTC
Updated:
4 Oct 2020 at 15:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
neograph734Yes, I discovered that issue one or two weeks ago. It has already been resolved in the development version. I'll have a look at #3122685: Drupal 9 compatibility this weekend and attempt to push a new release.
Thanks for reporting though :)
Comment #3
chrbak commentedHello,
I have Drupal 8.8.5 version installed and when i am trying to update the module from 8.x-1.0-beta2 to 8.x-1.0-beta4 it gives me the same error.
Comment #4
hkirsman commentedHi!
Does the update process fail or beta4 doesn't work?
Comment #5
chrbak commentedHello, and thank you for your response.
When i press the update button, right after, it throws the aforementioned exception.
Comment #6
neograph734Could you post the contents of
high_contrast.services.ymlin the high contrast module folder (after downloading the update)? The config overrider no longer receives the theme_manager as a parameter and services should have been changed accordingly.Alternatively could you try to change high contrast settings to use the default logo before attempting the update?
If you use the default logo it should not attempt to load the theme manger:
UPDATE: you should NOT use the default logo... but a temporary other file.
Comment #7
chrbak commentedThe contents from the high_contrast.services.yml (from the default/temp/update-extraction-fcabdb3f forder) are:
I used the default logo and as you recommended i changed it to another temporary file (screenshot) but the problem still occurs. The exact exception is :
Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException: Circular reference detected for service "theme.manager", path: "theme.manager -> theme.negotiator -> access_check.theme -> theme_handler -> config.factory -> high_contrast.overrider". in Drupal\Component\DependencyInjection\Container->get() (line 143 of /.../core/lib/Drupal/Component/DependencyInjection/Container.php)This is has to do with the latest version of Drupal (8.8.5)? Because i have the exact same problem with latest version of Webform (Mail system, Simple XML sitemap, ...) but in another Drupal installation with 8.7.8 the Webform module finishes the update with no problem..
Comment #8
neograph734It appears that the issue is not with beta3, but has already been introduced in beta2 (Release notes) and only shows itself on a cache rebuild. (Any other module you install or update also causes the cache to be rebuilt and then high contrast breaks the site...)
I've just tried to update the module using composer (beta2 > beta4), then rebuilding the cache with drush
drush cr, and then run the update script.Are you in the possibility to try that?
If you are unfamiliar with drush you could also try to empty all
cache_*tables from your database. Should have the same effect.Setting this issue to active again so it remains visible.
Comment #9
chrbak commentedI have no access to command prompt (share server) so i did manually, i truncate all the cache tables and uploaded the latest beta4 version (replacing by hand the beta2 files). Finally i run the update.php script and it all works fine.
I can now update and the other modules that needs to be updated.
Thank you for your help.
Comment #10
neograph734Thank you for testing and confirming this helped solve the issue.
I have updated the module front page with a link to this issue to help others.
Comment #11
hkirsman commentedCouldn't we add cache clearing to high_contrast_update_8003()? Or does it break before update hooks are being run?
Comment #12
neograph734Not sure... I've tried reading into the update script, but I got nowhere. You could try by installing beta2 and attempt an update.
Comment #14
xaa commentedhi, I try to install beta4 on a fresh install D8.9.6 but I have the same issue. Any suggestion, please ?
Comment #15
neograph734Hi xaa. May I recommend you not to reply to closed issues. Your question is almost invisible to maintainers, and you might never get a reply. Better to create a new issue and refer this one.
Anyway, I just tried installing Drupal 8.6.9 and high contrast beta4 as additional project on simplest.me and I had no issues.
Comment #16
orizonmedia commentedFor those who get this drush CR error. I found a solution. You can simply get into the high contrast module config page, uncheck «use default logo setting». save config and re-check and save. This will solve the issue.
thanks for previous answer.