PDOException: There is already an active transaction

Created on 27 June 2022, almost 2 years ago
Updated 31 January 2023, over 1 year ago

Problem/Motivation

I receive this error when I try to request translation for the items in my cart:

PDOException: There is already an active transaction in Drupal\Core\Entity\Sql\SqlContentEntityStorage->delete() (line 749 of /code/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

Steps to reproduce

1. Add one or more translatable items to my cart
2. Go to my cart, select the language(s) that I want to translate them into, and click the 'Request translation' button.

Note the error that is shown about there already being an active transaction. View the recent log messages to see the complete error details.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: won't fix

Version

1.13

Component

Core

Created by

πŸ‡ΊπŸ‡ΈUnited States RichardDavies Portland, Oregon

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.

  • πŸ‡²πŸ‡ΊMauritius j.b

    Hello Richard,
    On what thread is the patch posted? I am unable to find it in the Drupal core issues.

  • πŸ‡ΊπŸ‡ΈUnited States RichardDavies Portland, Oregon

    @jb I don't know if there is a Drupal core issue with this patch. I think someone posed the patch in Pantheon's Slack channel so that's where I got it from. We just saved it to a local file and applied the patch via Composer to work around the issue.

  • πŸ‡²πŸ‡ΊMauritius j.b

    Thanks Richard.
    It works for me also

Production build 0.69.0 2024