Cern Componets error after D9 migration

Hi,

We are having a problem with CERN Componets module which appeared after cloning websites to Drupal 9 version. Prior to creating a clone, we scanned modules and these which needed to be fixed manually showed only the web/PHPStan failed error, which as I was informed here, can be ignored.

An error with CERN Componets appears on these two (test) websites after being cloned to D9: https://d9-test-test-be-dep-ics.web.cern.ch/ and https://test-be-dep-cem.web.cern.ch/
It does impact only the home pages and overview page (in case of cem) showing this message: “The website encountered an unexpected error. Please try again later.”

Please see here a picture of the error:

Thank you in advance for your help.

Best regards,
Lucie

Hi Lucie

Thanks for raising this. This has just been reported to us and we are taking a look.

We appreciate your patience!

Thanks!

Hi Joachim,

Thank you for your response. Could you please let me know if there are some new information regarding this issues? We have not started the preparation for the migration on the official websites yet as we are waiting for a proposed solution to this issue.

Many thanks,
Lucie

Hi Lucie

Thanks for your patience.

Please find the newest version of CERN Components for D8 here:

https://gitlab.cern.ch/web-team/drupal/public/d8/modules/cern-components/-/releases/2.7.14

This version fixes the issue you reported.

Thanks!

Quick follow-up:

The PHPStan issue is unrelated to the twig issue you see in the error message. This issue remains a work-in-progress, and whilst annoying, it should not limit you in preparing for the Drupal 9 upgrade.

Please let us know if you experience any other issues!

Thanks!

Hi Joachim,

Thank you for following this up. I was working on d9-be-dep-css.web.cern.ch which is a clone of the official CSS website to D9 version and when creating a new content following error appeared: “The website encountered an unexpected error. Please try again later.”

Based on reports > recent log messages it seems to be caused by PHPStan issue. Please do you have any information about this issue with adding content?

Best regards,
Lucie

Hi Joachim,

Thanks for proposed solution. Could you please explain me the procedure to update CERN modules as I am not able to find this module in webdav?

Many thanks for your advice,
Lucie

Hello Joachim,

A kind reminder to clarify the CERN component module update. Is it enough to just upload this module to webdav > modules, or is some other action needed? I have tried uploading the CERN components module to webdav and migrating the test site to D9 and the homepage is working properly so far, so just uploading the module update seems to be sufficient. However, I would like to confirm this with you before starting the process on the main website.

Many thanks,
Lucie

Hi Lucie

Thanks for reaching out, and apologies for missing your prior post.

https://be-dep-ics.web.cern.ch/ has been successfully upgraded to Drupal 9.

Similarly, https://be-dep-cem.web.cern.ch/ has also been upgraded.

If anything looks weird, please do not hesitate reaching out.

Good job!

Hi Joachim,

Thank you for your response. I am still experiencing this error on the CSS website (full message above):

"When creating a new content following error appeared: “The website encountered an unexpected error. Please try again later.”

Based on reports > recent log messages it seems to be caused by PHPStan issue. Please do you have any information about this issue with adding content?"

Since the CSS website has been migrated to D9, the problem appears on this main website.

Many thanks for your help,
Lucie

Hi Lucie

Your issue has been resolved (please refer to your ticket).

We are currently writing up a guide on how to resolve this yourself.

If anyone else is experiencing similar issues, please do not hesitate replying.

Thanks!