Table is empty, broken query

Created on 31 August 2023, about 1 year ago
Updated 1 September 2023, about 1 year ago

Problem/Motivation

Our site is using the contact form module, when running the checks, I got an error message:

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'drupal9.t' doesn't exist: SELECT `entity_id`, `field_body_value` FROM t; Array ( ) in Drupal\security_review\Checks\Field->run() (line 107 of /app/web/modules/contrib/security_review/src/Checks/Field.php).

Steps to reproduce

- Enable contact form module, create a form that has field_body field.
- Run the checks.

Proposed resolution

- Check to make sure $table is not empty first.

πŸ› Bug report
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States hungdo

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

Comments & Activities

Production build 0.71.5 2024