Fatal AssertionError when pulling in SDDS components

Created on 9 September 2024, 9 days ago
Updated 10 September 2024, 9 days ago

Problem/Motivation

Get this error after deleting XB config and running drush cr but running drush cr again clears the error.

 [error]  AssertionError: assert($items[0] instanceof ComponentTreeItem) in assert() (line 29 of /var/www/html/web/modules/contrib/experience_builder/src/Plugin/Field/FieldFormatter/NaiveComponentTreeFormatter.php) #0 /var/www/html/web/modules/contrib/experience_builder/src/Plugin/Field/FieldFormatter/NaiveComponentTreeFormatter.php(29): assert()

Steps to reproduce

  • Install using the dev guide β†’
  • You will probably run into the error during this process
  • You can also use this to clear the XB cache
    drush sql:query "DELETE FROM config WHERE name LIKE 'experience_builder.component.%'"</li>
      <li>
  • Then drush cr
  • Sometimes you will get the error and have to run drush cr again

Proposed resolution

I assume this is an XB issue but parking this in SDDS queue for now as we have bigger fish to fry!

Remaining tasks

User interface changes

No fatal error on command line or in UI or in logs.

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024