Problem/Motivation
I tried installing the latest stable version of UI Patterns (2.0.2 at the time of writing) on the latest stable version of Drupal CMS (1.1.0 at the time of writing).
As soon as I enable the UI Patterns module, the site returns an error and becomes inaccessible. I had to disable the module with Drush in order to restore the site to working order.
There appears to be an incompatibility with the syntax/declaration of SDC components bundled with Experience Builder.
Steps to reproduce
- Install Drupal CMS
- Install UI Patterns 2
I am using DDEV, and following a clean installation of Drupal CMS 1.1.0, I installed and enabled UI Patterns 2.
The site then returns the following error:
The website encountered an unexpected error. Try again later.
JsonSchema\Exception\ResourceNotFoundException: file_get_contents(json-schema-definitions://experience_builder.module/image): Failed to open stream: No such file or directory in JsonSchema\Uri\Retrievers\FileGetContents->retrieve() (line 38 of /var/www/html/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/FileGetContents.php).
Issue fork ui_patterns-3514886
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
just_like_good_vibesHello,
we will check this,
thank you for reporting.
Comment #3
just_like_good_vibesHello again,
i have made the test and yes.
Clearly the problem is coming from drupal_cms_olivero which is referencing "experience_builder" in its SDC definition.
A lot of components are concerned : card, paragraph, testimonial, feature, hero..
here is the full trace on my install
Comment #4
just_like_good_vibesWe will propose something to cope with those errors before a proper fix is proposed at the right place, i mean in the drupal_cms_olivero SDC component definitions... stay tuned, it will come quickly.
i am surprised of those mistakes in the component definitions of the contrib theme drupal_cms_olivero, we will fill an issue if not already done to help them correct.
Comment #5
just_like_good_vibesok, ready for review
Comment #7
just_like_good_vibesComment #8
pdureau commentedReview OK
But PHPCS fix to do.
I will create the
drupal_cms_oliveroissue, because the real problem is on their side.Comment #10
just_like_good_vibes