Error: Typed property Drupal\experience_builder\Entity\VersionedConfigEntityBase::$active_version must not be accessed before initialized

Created on 18 June 2025, 6 days ago

While accessing the /admin/modules/uninstall page or clearing cache using (ddev ddev drush cr)
Error: Typed property Drupal\experience_builder\Entity\VersionedConfigEntityBase::$active_version must not be accessed before initialization in Drupal\experience_builder\Entity\VersionedConfigEntityBase->__construct() (line 34 of modules/contrib/experience_builder/src/Entity/VersionedConfigEntityBase.php)

1. Take a fresh pull
2. cd ui
3. npm install
4. npm run devdrupal
5. ddev drush cr > got this error
6. checked if site is working - admin/modules/uninstall also got the same error.

๐Ÿ› Bug report
Status

Active

Version

0.0

Component

Data model

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia JatinGupta40

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

Comments & Activities

  • Issue created by @JatinGupta40
  • ๐Ÿ‡ง๐Ÿ‡ชBelgium wim leers Ghent ๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ

    Canโ€™t reproduce on a fresh install. Can you?

  • ๐Ÿ‡ง๐Ÿ‡ชBelgium wim leers Ghent ๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ

    This is because you're loading XB config entities that were created using an older version of XB, which don't contain that active_version, which then triggers this assertion:

      public function __construct(array $values, $entity_type) {
        parent::__construct($values, $entity_type);
        assert($this->active_version !== NULL);
        $this->loadedVersion = $this->active_version;
      }
    

    XB provides no update path yet โ€” that will start with beta1. Right now, your only option is reinstalling. Thanks for testing our alphas though! :D

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia JatinGupta40

    OK, Thanks @wim-leers. Reinstalling it for now.
    Just curious โ€” do we have an estimated timeline for when beta1 will be available?

  • ๐Ÿ‡ง๐Ÿ‡ชBelgium wim leers Ghent ๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ

    As you can see in ๐ŸŒฑ Milestone 1.0.0-beta1: Start creating non-throwaway sites Active :

    Target date

    July 2025

    ๐Ÿ˜Š

Production build 0.71.5 2024