500 when trying to access "cern-toolbar" configuration

Hi,

While randomly looking for one configuration page (found since then :)) I found out that the “cern-toolbar” configuration link does not work: https://wlcg-traceability-isolation-wg-drupal8.web.cern.ch/admin/config/user-interface/cern-toolbar give me a 500:

The website encountered an unexpected error. Please try again later.</br></br><em class=“placeholder”>Symfony\Component\Routing\Exception\RouteNotFoundException</em>: Route &quot;cookieconsent.cookieconsent_admin_form&quot; does not exist. in <em class=“placeholder”>Drupal\Core\Routing\RouteProvider-&gt;getRouteByName()</em> (line <em class=“placeholder”>201</em> of <em class=“placeholder”>core/lib/Drupal/Core/Routing/RouteProvider.php</em>).

Hello Vincent,

The issue is already fixed as it can be seen in this Gitlab issue. The fix will be deployed in version 2.2.0 of CERN Toolbar.

A quick work-around to fix the issue is by enabling the “Cookie concent” module.

Kostas

Hi Kostas,

Thanks for the link to the issue. When will 2.2.0 be deployed then? :wink:
Given that that plugin seems to have been implying that the “Cookie concent” module was activated, should it be on by default?
Is there a recommendation to enable or disable this plugin? Do CERN regulation require that module to be enabled?

Thanks,
Vincent

Hello Vincent,

The issue was initially caused because there was a reference to Cookie consent in the CERN Toolbar settings. However this creates an issue when the Cookie consent module is not enabled. The “Drupal way” to fix this issue is to create a dependency between the 2 modules, so that when the CERN Toolbar is enabled it will forcely enable the Cookie Consent too.

The CERN Toolbar module used to have this dependency but at some point it was removed because it was creating some implications. The fix I applied actually checks if the module is enabled before referencing it, so that the two modules won’t need to have a dependency between them.

The fix will be deployed in the next module/theme update so approximately during the next 2 weeks.

Kostas

Hi Kostas,

Yes, I understood that the CERN toolbar has a hidden dependency on the Cookie Consent.
I was wondering if this hidden dependency was due to the assumption that this module should be enabled at CERN: What’s the recommendation/requirement? Is there any policy requiring it?

Thanks,
Vincent

Hello Vincent,

Yes it is recommended the users to have the cookie policy enabled and thank you for mentioning it. We will publish an article in the Webtools website during the upcoming days regarding the Cookie Policy - why you should have it enabled and what it should include.

I will answer in this post when it’s published.

Best Regards,

Kostas