TypeError: Cannot assign null to property Drupal\ai_assistant_api\Entity\AiAssistant::$history_context_length of type string

Created on 26 November 2024, 26 days ago

Problem/Motivation

Cannot update to the latest dev:

TypeError: Cannot assign null to property Drupal\ai_assistant_api\Entity\AiAssistant::$history_context_length of type string in /drupal-10.3.x/html/core/lib/Drupal/Core/Entity/EntityBase.php on line 63 #0 /drupal-10.3.x/html/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(112): Drupal\Core\Entity\EntityBase->__construct()
.var.aegir.platforms.drupal.10.distro.1-dev.custom.dev4-cci-social-13.x-drupal-10.3.x.html#mysite.com >> #1 /drupal-10.3.x/html/core/lib/Drupal/Core/Entity/EntityStorageBase.php(418): Drupal\Core\Config\Entity\ConfigEntityBase->__construct()
.var.aegir.platforms.drupal.10.distro.1-dev.custom.dev4-cci-social-13.x-drupal-10.3.x.html#mysite.com >> #2 /drupal-10.3.x/html/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php(298): Drupal\Core\Entity\EntityStorageBase->mapFromStorageRecords()
.var.aegir.platforms.drupal.10.distro.1-dev.custom.dev4-cci-social-13.x-drupal-10.3.x.html#mysite.com >> #3 /drupal-10.3.x/html/core/lib/Drupal/Core/Entity/EntityStorageBase.php(486): Drupal\Core\Config\Entity\ConfigEntityStorage->doSave()
.var.aegir.platforms.drupal.10.distro.1-dev.custom.dev4-cci-social-13.x-drupal-10.3.x.html#mysite.com >> #4 /drupal-10.3.x/html/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php(266): Drupal\Core\Entity\EntityStorageBase->save()
.var.aegir.platforms.drupal.10.distro.1-dev.custom.dev4-cci-social-13.x-drupal-10.3.x.html#mysite.com >> #5 /drupal-10.3.x/html/core/lib/Drupal/Core/Entity/EntityBase.php(354): Drupal\Core\Config\Entity\ConfigEntityStorage->save()
.var.aegir.platforms.drupal.10.distro.1-dev.custom.dev4-cci-social-13.x-drupal-10.3.x.html#mysite.com >> #6 /var/aegir/platforms/drupal/10/distro/1-dev/custo
.var.aegir.platforms.drupal.10.distro.1-dev.custom.dev4-cci-social-13.x-drupal-10.3.x.html#mysite.com[error]
>> Drush command terminated abnormally due to an unrecoverable error.
.var.aegir.platforms.drupal.10.distro.1-dev.custom.dev4-cci-social-13.x-drupal-10.3.x.html#mysite.com >> m/dev4-cci-social-13.x-drupal-10.3.x/html/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(614): Drupal\Core\Entity\EntityBase->save()
.var.aegir.platforms.drupal.10.distro.1-dev.custom.dev4-cci-social-13.x-drupal-10.3.x.html#mysite.com >> #7 /drupal-10.3.x/html/modules/contrib/ai/modules/ai_assistant_api/ai_assistant_api.install(17): Drupal\Core\Config\Entity\ConfigEntityBase->save()
.var.aegir.platforms.drupal.10.distro.1-dev.custom.dev4-cci-social-13.x-drupal-10.3.x.html#mysite.com >> #8 /usr/local/share/boa-drush/commands/core/drupal/update_10.inc(66): ai_assistant_api_update_10200()
.var.aegir.platforms.drupal.10.distro.1-dev.custom.dev4-cci-social-13.x-drupal-10.3.x.html#mysite.com >> #9 /usr/local/share/boa-drush/commands/core/drupal/batch_10.inc(178): drush_update_do_one()
.var.aegir.platforms.drupal.10.distro.1-dev.custom.dev4-cci-social-13.x-drupal-10.3.x.html#mysite.com >> #10 /usr/local/share/boa-drush/commands/core/drupal/batch_10.inc(124): _drush_batch_worker()
.var.aegir.platforms.drupal.10.distro.1-dev.custom.dev4-cci-social-13.x-drupal-10.3.x.html#mysite.com >> #11 /usr/local/share/boa-drush/includes/batch.inc(99): _drush_batch_command()
.var.aegir.platforms.drupal.10.distro.1-dev.custom.dev4-cci-social-13.x-drupal-10.3.x.html#mysite.com >> #12 /usr/local/share/boa-drush/commands/core/drupal/update_10.inc(245): drush_batch_command()
.var.aegir.platforms.drupal.10.distro.1-dev.custom.dev4-cci-social-13.x-drupal-10.3.x.html#mysite.com >> #13 /usr/local/share/boa-drush/commands/core/core.drush.inc(1246): _update_batch_command()
.var.aegir.platforms.drupal.10.distro.1-dev.custom.dev4-cci-social-13.x-drupal-10.3.x.html#mysite.com >> #14 /usr/local/share/boa-drush/includes/command.inc(422): drush_core_updatedb_batch_process()
.var.aegir.platforms.drupal.10.distro.1-dev.custom.dev4-cci-social-13.x-drupal-10.3.x.html#mysite.com >> #15 /usr/local/share/boa-drush/includes/command.inc(231): _drush_invoke_hooks()
.var.aegir.platforms.drupal.10.distro.1-dev.custom.dev4-cci-social-13.x-drupal-10.3.x.html#mysite.com >> #16 /usr/local/share/boa-drush/includes/command.inc(199): drush_command()
.var.aegir.platforms.drupal.10.distro.1-dev.custom.dev4-cci-social-13.x-drupal-10.3.x.html#mysite.com >> #17 /usr/local/share/boa-drush/lib/Drush/Boot/BaseBoot.php(67): drush_dispatch()
.var.aegir.platforms.drupal.10.distro.1-dev.custom.dev4-cci-social-13.x-drupal-10.3.x.html#mysite.com >> #18 /usr/local/share/boa-drush/includes/preflight.inc(67): Drush\Boot\BaseBoot->bootstrap_and_dispatch()
.var.aegir.platforms.drupal.10.distro.1-dev.custom.dev4-cci-social-13.x-drupal-10.3.x.html#mysite.com >> #19 /usr/local/share/boa-drush/drush.php(12): drush_main()
.var.aegir.platforms.drupal.10.distro.1-dev.custom.dev4-cci-social-13.x-drupal-10.3.x.html#mysite.com >> #20 {main}
.var.aegir.platforms.drupal.10.distro.1-dev.custom.dev4-cci-social-13.x-drupal-10.3.x.html#mysite.com >> TypeError: Cannot assign null to property Drupal\ai_assistant_api\Entity\AiAssistant::$history_context_length of type string in Drupal\Core\Entity\EntityBase->__construct() (line 63 of /drupal-10.3.x/html/core/lib/Drupal/Core/Entity/EntityBase.php).

Steps to reproduce

drush updatedb
and it halts with the above error.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

AI Assistants API

Created by

πŸ‡ΊπŸ‡ΈUnited States SocialNicheGuru

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

Comments & Activities

Production build 0.71.5 2024