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.
Thanks for raising this. This has just been reported to us and we are taking a look.
We appreciate your patience!
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.
Thanks for your patience.
Please find the newest version of CERN Components for D8 here:
This version fixes the issue you reported.
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!
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?
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,
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.
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.
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,
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.