Incompatibility with styleguide module

Created on 14 October 2022, about 2 years ago
Updated 5 June 2024, 7 months ago

Problem/Motivation

If the module is enabled along with the Styleguide module, a fatal error occurs on the styleguide page.

Steps to reproduce

1. enable read_time
2. enable styleguide
3. visit admin/appearance/styleguide

The following error appears:

Drupal\Core\Database\IntegrityConstraintViolationException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'nid' cannot be null: INSERT INTO "read_time" ("nid", "read_time") VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1); Array ( [:db_insert_placeholder_0] => [:db_insert_placeholder_1] => 0.088888888888889 ) in Drupal\mysql\Driver\Database\mysql\ExceptionHandler->handleExecutionException() (line 50 of core/modules/mysql/src/Driver/Database/mysql/ExceptionHandler.php).
Drupal\Core\Database\StatementWrapper->execute() (Line: 44)
Drupal\mysql\Driver\Database\mysql\Insert->execute() (Line: 386)
Drupal\Core\Database\Query\Merge->execute() (Line: 140)
read_time_node_view()
🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom malcomio

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.

Production build 0.71.5 2024