- Issue created by @nayana_mvr
Not able to edit existing images/ add new image when Image(Focal Point) is selected as Image widget. The error says " The website encountered an unexpected error. Try again later."
I checked in admin/Reports/Recent log messages and found a php error while editing existing image:
Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db.crop_field_data' doesn't exist: SELECT "cfd"."type" AS "type", "cfd"."cid" AS "cid" FROM "crop_field_data" "cfd" WHERE "cfd"."uri" = :db_condition_placeholder_0; Array ( [:db_condition_placeholder_0] => public://2024-07/about-benefits-back-FNL-2_0.jpg ) in Drupal\crop\CropStorage->getCrop() (line 41 of /var/www/html/modules/contrib/crop/src/CropStorage.php).
While adding new image:
Drupal\Core\Entity\EntityStorageException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db.crop' doesn't exist: SELECT "base_table"."vid" AS "vid", "base_table"."cid" AS "cid" FROM "crop" "base_table" INNER JOIN "crop_field_data" "crop_field_data" ON "crop_field_data"."cid" = "base_table"."cid" WHERE "crop_field_data"."uri" LIKE :db_condition_placeholder_0 ESCAPE '\\'; Array ( [:db_condition_placeholder_0] => public://2024-07/mina-guli-weight-water-hero\_1.jpeg ) in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 817 of /var/www/html/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
I'm not sure if this is related to Crop API module. But raising it here as this occurs while setting Image(Focal Point) widget.
Fix required
Active
2.0
Other Code