Unable To Delete Transaction Entities

Created on 30 August 2024, 8 months ago

Problem/Motivation

Hi,
I'm trying to upgrade Drupal 9->10 and this issue is holding me up. I can't seem to be able to delete the Transaction entities that were used way back in Drupal 7 on my site, but are no longer used. Any help would be greatly appreciated. Thanks ahead of time!

Getting the following error when trying to remove Transaction entities:

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /batch?id=175&op=do_nojs&op=do
StatusText: parsererror
ResponseText: Error: Call to a member function getTargetEntityTypeId() on null in Drupal\transaction\Entity\Transaction->urlRouteParameters() (line 585 of /var/www/html/web/modules/contrib/transaction/src/Entity/Transaction.php).

When trying to delete via drush (ddev drush entity:delete transaction) I get:

[error] Error: Call to a member function getTargetEntityTypeId() on null in Drupal\transaction\Entity\Transaction->urlRouteParameters() (line 585 of /var/www/html/web/modules/contrib/transaction/src/Entity/Transaction.php) #0 /var/www/html/web/core/lib/Drupal/Core/Entity/EntityBase.php(174): Drupal\transaction\Entity\Transaction->urlRouteParameters('add-form')

Steps to reproduce

1. Install Transaction 8.x-1-x.dev
2. Use Transactions and create entities
3. Go to s/uninstall/entity/transaction and click on "Delete all transactions"
error above occurs

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

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

Comments & Activities

  • Issue created by @josephgut
  • Status changed to Closed: cannot reproduce 15 days ago
  • 🇪🇸Spain manuel.adan 🌌

    I was unable to reproduce it following the provided steps in a fresh installation. Nobody else reported being affected by this issue in this time. It could be something specific of your installation. Feel free to reopen if it happens again.

Production build 0.71.5 2024