Cannot Delete Custom Tokens

Created on 9 February 2025, about 2 months ago

Whenever I try to delete a custom token, the site gets an error and the token is not deleted. I am unable to delete any custom tokens.

Log messages show the following:
-----------------------
Type token_custom
Location /admin/structure/token-custom/manage/post_limit_basic/delete?destination=%2Fadmin%2Fstructure%2Ftoken-custom
Message Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[22007]: Invalid datetime format: 1292 Truncated incorrect DOUBLE value: 'post_limit_basic': DELETE FROM "votingapi_result" WHERE ("entity_type" = :db_condition_placeholder_0) AND ("entity_id" = :db_condition_placeholder_1); Array ( [:db_condition_placeholder_0] => token_custom [:db_condition_placeholder_1] => post_limit_basic ) in Drupal\votingapi\VoteStorage->deleteVotesForDeletedEntity() (line 89 of /var/www/html/website/web/modules/contrib/votingapi/src/VoteStorage.php).
Severity Error
-----------------------

Type php
Location /admin/structure/token-custom/manage/post_limit_basic/delete?destination=%2Fadmin%2Fstructure%2Ftoken-custom
Message Drupal\Core\Entity\EntityStorageException: SQLSTATE[22007]: Invalid datetime format: 1292 Truncated incorrect DOUBLE value: 'post_limit_basic': DELETE FROM "votingapi_result" WHERE ("entity_type" = :db_condition_placeholder_0) AND ("entity_id" = :db_condition_placeholder_1); Array ( [:db_condition_placeholder_0] => token_custom [:db_condition_placeholder_1] => post_limit_basic ) in Drupal\Core\Entity\Sql\SqlContentEntityStorage->delete() (line 763 of /var/www/html/website/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
-----------------------

🐛 Bug report
Status

Active

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024