Created on 25 May 2022, over 2 years ago
Updated 31 January 2023, almost 2 years ago

Problem/Motivation

Go to > /admin/structure/eav/attributes and Add a new attribute - select textfield click save and the whole site will crash :

The website encountered an unexpected error. Please try again later.
TypeError: Drupal\eav_field\Entity\EavAttribute::getValueFieldDefinition(): Return value must be of type Drupal\Core\Field\BaseFieldDefinition, Drupal\field\Entity\FieldConfig returned in Drupal\eav_field\Entity\EavAttribute->getValueFieldDefinition() (line 352 of modules/eav_field/src/Entity/EavAttribute.php).

Drupal 9.3.13
PHP : 8.1.4

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia coaston

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΈπŸ‡°Slovakia coaston

    Update.

    I updated Category as stated in readmifile, and now once I hit save the message is different, it seems there is any reference to removed column called "status" :

    The website encountered an unexpected error. Please try again later.

    Drupal\Core\Entity\EntityStorageException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'field list': INSERT INTO "eav_attribute_field_data" ("aid", "langcode", "label", "admin_label", "machine_name", "value_type", "value_storage_config", "value_config", "value_widget_type", "value_widget_settings", "value_formatter_type", "value_formatter_settings", "description__value", "description__format", "primary", "weight", "status", "default_langcode") VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9, :db_insert_placeholder_10, :db_insert_placeholder_11, :db_insert_placeholder_12, :db_insert_placeholder_13, :db_insert_placeholder_14, :db_insert_placeholder_15, :db_insert_placeholder_16, :db_insert_placeholder_17); Array ( [:db_insert_placeholder_0] => 7 [:db_insert_placeholder_1] => en [:db_insert_placeholder_2] => Test Field [:db_insert_placeholder_3] => Test Field TEST [:db_insert_placeholder_4] => test_field [:db_insert_placeholder_5] => string [:db_insert_placeholder_6] => a:0:{} [:db_insert_placeholder_7] => a:0:{} [:db_insert_placeholder_8] => string_textfield [:db_insert_placeholder_9] => a:0:{} [:db_insert_placeholder_10] => file_filemime [:db_insert_placeholder_11] => a:0:{} [:db_insert_placeholder_12] => [:db_insert_placeholder_13] => [:db_insert_placeholder_14] => 0 [:db_insert_placeholder_15] => 1 [:db_insert_placeholder_16] => 1 [:db_insert_placeholder_17] => 1 ) in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 811 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

  • πŸ‡ΈπŸ‡°Slovakia coaston

    Hi,

    nothing happens after i visit mysite/update.php - nothing found to be updated there.

    so still the same issue even I run update.php.

Production build 0.71.5 2024