Project

General

Profile

Actions

Bug #99872

open

Errors with redirects which are attached to deleted pages in redirects module

Added by Sybille Peters almost 2 years ago. Updated over 1 year ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Link Handling & Redirect Handling
Target version:
-
Start date:
2023-02-08
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Redirects, which are attached to deleted pages (sys.redirct.pid) are displayed in the redirects module and have controls available to edit, delete etc. them.

However, when one of these is edited or deleted, an error occurs:

  • delete: no error message, just does not work
  • edit: incorrect error message:
Record with uid 98156 from table pages not found
Edit form could not be loaded
The edit form could not be loaded for the requested records. This might be due to insufficient permissions.

Due to this, these redirects can't be deleted except directly via the database.

Problem description

As admin:

1. Create a redirect
2. delete corresponding page
3. Go to redirects BE module.
4. edit redirect or try to delete it

Versions

  • 11.5.23
  • not tested in v12

DB queries

select uid,pid,source_path,deleted,disabled,target from sys_redirect where source_path like '/en/neuromodulation/events-details/kick-off-meeting-march-2023%';
+-------+-------+-------------------------------------------------------------------------------+---------+----------+---------------------------------+
| uid   | pid   | source_path                                                                   | deleted | disabled | target                          |
+-------+-------+-------------------------------------------------------------------------------+---------+----------+---------------------------------+
| 15008 | 94598 | /en/neuromodulation/events-details/kick-off-meeting-march-2023                |       0 |        0 | t3://page?uid=94597&_language=1 |
| 15009 | 94597 | /en/neuromodulation/events-details/kick-off-meeting-march-2023/registration   |       0 |        0 | t3://page?uid=94818&_language=1 |


select uid,pid,slug,hidden,deleted from pages where uid=94598;
+-------+-------+------------------------------------------------------------+--------+---------+
| uid   | pid   | slug                                                       | hidden | deleted |
+-------+-------+------------------------------------------------------------+--------+---------+
| 94598 | 94594 | /neuromodulation/events-details/workshop-neglect-july-2023 |      1 |       1 |
+-------+-------+------------------------------------------------------------+--------+---------+


Files

redirect_hidden_target.png (10.9 KB) redirect_hidden_target.png Sybille Peters, 2023-08-13 09:08
redirect_target_deleted.png (6.75 KB) redirect_target_deleted.png Sybille Peters, 2023-08-13 09:10
redirect_target_ok.png (7.4 KB) redirect_target_ok.png Sybille Peters, 2023-08-13 09:11
Actions #1

Updated by Sybille Peters almost 2 years ago

  • Description updated (diff)
Actions #2

Updated by Sybille Peters almost 2 years ago

  • Subject changed from Redirects attached to deleted pages are displayed in redirects module and when selecting them an error occurs: The edit form could not be loaded for the requested records. This might be due to insufficient permissions. to Error with redirects which are attached to deleted pages in redirects module: The edit form could not be loaded for the requested records. This might be due to insufficient permissions.
  • Description updated (diff)
Actions #3

Updated by Andreas Kießling over 1 year ago

I can confirm this bug. It was pretty irritating when i tried to directly delete redirects in the backend module but did not see any error message after it failed to do so.

Actions #4

Updated by Sybille Peters over 1 year ago

  • Subject changed from Error with redirects which are attached to deleted pages in redirects module: The edit form could not be loaded for the requested records. This might be due to insufficient permissions. to Errors with redirects which are attached to deleted pages in redirects module
  • Description updated (diff)
Actions #5

Updated by André Buchmann over 1 year ago

I can confirm this also with TYPO3 11.5.30 here. Manual deletion from the Modul shows the mentioned error message. Deletion with the cleanup command is no problem.

Actions #6

Updated by Sybille Peters over 1 year ago

Tested in v13 (current main), behaviour is different and has improved:

1. redirect /oldslug => 1 (1 is existing page, page was deleted, so link target is deleted)

edit:
- there is no error message
- redirect can be edited and saved.
- But there is no visible hint that target is deleted (for hidden pages, there is visible hint that target is hidden)

delete:
- record can be deleted

Screenshots:

hidden target:

ok target

deleted target:

Actions

Also available in: Atom PDF