PHP error when editing redirects

Created on 28 November 2023, 12 months ago
Updated 18 December 2023, 11 months ago

Problem/Motivation

PHP error when editing redirects.

Steps to reproduce

With redirect extensions installed, edit an existing redirect. The following error occurs:

Drupal\Core\Entity\EntityStorageException: rowCount() is supported for DELETE, INSERT, or UPDATE statements performed with structured query builders only, since they would not be portable across database engines otherwise. If the query builders are not sufficient, use a prepareStatement() with an $allow_row_count argument set to TRUE, execute() the Statement and get the number of matched rows via rowCount(). in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 817 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
Drupal\redirect_extensions\RedirectDatabaseStorage->redirectExists('9661') (Line: 50)
redirect_extensions_redirect_update(Object)
call_user_func_array(Object, Array) (Line: 409)

Proposed resolution

Fix similar to https://www.drupal.org/project/comment_limit/issues/3329567 πŸ› Drupal 10 rowCount error Fixed

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dgroene

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024