- π·π΄Romania claudiu.cristea Arad π·π΄
Yes, the bug is still there and the patch is fixing the issue. Long field name dedicated tables are built by using a hash to avoid going beyond the max table name length. This was spotted also in π Missing Table? Closed: works as designed
- πΊπΈUnited States smustgrave
Can you verify if this is happening in the 2.x branch?
- Status changed to Postponed: needs info
over 1 year ago 5:44pm 1 September 2023 - πΊπΈUnited States smustgrave
Following up if this can be tried on 2.x branch before closing?
- Status changed to Needs review
over 1 year ago 8:48pm 13 September 2023 - πΊπΈUnited States smustgrave
Scratch that found a dup that seems to have gotten this a week ago.
- π²πΎMalaysia akmalfikri
This also happened on database with table prefix in them.
Example :
The website encountered an unexpected error. Please try again later.Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db.block_content__body' doesn't exist: SELECT `entity_id`, `body_value` FROM block_content__body
while the table should bedb.drupal_block_content__body
instead. - πΊπΈUnited States greggles Denver, Colorado, USA
@akmalfikri thanks for the report. Does the proposed patch solve the problem?
- πΊπΈUnited States smustgrave
@akmalfikri following up if you tested the patch?
- Status changed to Postponed: needs info
12 months ago 7:30pm 30 December 2023 - Status changed to Fixed
12 months ago 11:28am 10 January 2024 Automatically closed - issue fixed for 2 weeks with no activity.
- π¬π§United Kingdom czollli
Hello,
This is still an issue with latest version (3.1.1)
on Drupal 10.3.9 + CiviCRM
although it does not look due to the long field name.2024/12/12 11:38:44 [error] 401842#401842: *383659 FastCGI sent in stderr: "PHP message: Uncaught PHP Exception Drupal\Core\Database\DatabaseExceptionWrapper: "SQLSTATE[42S02]: Base table or view not found: 1146 Table 'i9_drupal10.civicrm_action_schedule' doesn't exist: SELECT COUNT(*) AS "expression" FROM (SELECT 1 AS "expression" FROM "civicrm_action_schedule" "t") "subquery"; Array ( ) " at /var/www/html/circle/drupal10/web/core/modules/mysql/src/Driver/Database/mysql/ExceptionHandler.php line 56" while reading response header from upstream, client:
Is it possible the problem is that we use separate database for drupal and civicrm?
- π²πΎMalaysia akmalfikri
@smustgrave Prefix issue is fixed on latest patch. Thanks!