#107408Delete page with CEs as non-admin throws 'Attempt to delete record without delete-permissions.'
Description
When I delete a page as a non-admin via context-menu (either in page-tree or in page-module)
the error ‘Attempt to delete record without delete-permissions.’ is shown.
The page gets deleted but not its content-elements, they still exists in the tt_content database without a deleted flag.
Reproduce
- With styleguide extension created the “styleguide frontend demo” test pages
- Created BE-user (editor)
- Switch to BE-user
- Create test page
- Created content-element
- Delete complete page via context-menu (right click)
Result:
> ‘Attempt to delete record without delete-permissions.’
A page with no content-elements can be deleted successfully, without any error.
The CE can be deleted if you only try to delete a placed element individually.
Reviews 2
Related issues 2
Files 1
History 913
-
Christoph Freund changed subject
Delete page with as non-admin throws 'Attempt to delete record without delete-permissions.'Delete page with CEs as non-admin throws 'Attempt to delete record without delete-permissions.' <span data-processor="relativetime" data-value="2025-09-08T08:00:18+00:00" > 09/08/25, 08:00 </span> -
Steffen Mächtel changed Related to #107344 <span data-processor="relativetime" data-value="2025-09-08T08:52:29+00:00" > 09/08/25, 08:52 </span>
-
Christoph Freund changed category <span data-processor="relativetime" data-value="2025-09-09T08:38:01+00:00" > 09/09/25, 08:38 </span>
-
Kay Röseler commented and changed attached bugfix_core_delete_pages_with_content.patch <span data-processor="relativetime" data-value="2025-09-22T08:55:29+00:00" > 09/22/25, 08:55 </span>
-
Andy Meier commented <span data-processor="relativetime" data-value="2025-09-24T14:19:07+00:00" > 09/24/25, 14:19 </span>
@kroeseler I can confirm, that your patch resolves the issue, which also occurs, wenn deleting pages by the regular delete button in the page properties view. Many thanks!
-
Steffen Mächtel commented <span data-processor="relativetime" data-value="2025-09-24T14:43:57+00:00" > 09/24/25, 14:43 </span>
I can also confirm the patch works for TYPO3 13. I will push this patch to gerrit.
-
Steffen Mächtel changed Related to #97662 <span data-processor="relativetime" data-value="2025-09-24T14:59:56+00:00" > 09/24/25, 14:59 </span>
-
Gerrit Code Review pushed patch set 1 for 13.4 to change 90789 status
NewUnder Review <span data-processor="relativetime" data-value="2025-09-24T15:43:06+00:00" > 09/24/25, 15:43 </span> -
Gerrit Code Review pushed patch set 2 for 13.4 to change 90789 <span data-processor="relativetime" data-value="2025-09-24T15:44:10+00:00" > 09/24/25, 15:44 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 90790 <span data-processor="relativetime" data-value="2025-09-24T16:38:42+00:00" > 09/24/25, 16:38 </span>
-
Gerrit Code Review pushed patch set 3 for 13.4 to change 90789 <span data-processor="relativetime" data-value="2025-10-14T12:12:32+00:00" > 10/14/25, 12:12 </span>
-
Georg Ringer commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2025-11-10T15:15:09+00:00" > 11/10/25, 15:15 </span>Applied in changeset commit:995b7c585cd83d7800d41d79e050417beedc4534.
-
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2025-12-02T13:58:23+00:00" > 12/02/25, 13:58 </span>
Christoph Freund wrote:
> When I delete a page as a non-admin via context-menu (either in page-tree or in page-module)
> the error ‘Attempt to delete record without delete-permissions.’ is shown.
>
> The page gets deleted but not its content-elements, they still exists in the tt_content database without a deleted flag.
>
> h2. Reproduce
>
> # With styleguide extension created the “styleguide frontend demo” test pages
> # Created BE-user (editor)
> # Switch to BE-user
> # Create test page
> # Created content-element
> # Delete complete page via context-menu (right click)
>
> Result:
> > ‘Attempt to delete record without delete-permissions.‘
>
> A page with no content-elements can be deleted successfully, without any error.
> The CE can be deleted if you only try to delete a placed element individually.
Hello Core Team,
We have encountered the same problem here. According to debugging in v13, the error is caused by a change when deleting content elements on a page (when the entire page is deleted).
In v11, the page ID was always passed as INT in the DataHandler when deleting the records of a page. In v13, however, the entire determined ROW (array) is now passed, which then causes a specification for the language check to fail in the backend validation (because there is only “UID => xxx” in the array).
If you change this back to only passing the ID, the deletion of a page with content elements is executed correctly.
Error throws in BackendUserAuthentication on Line 689 (language fields check)
deleteSpecificPage in v11 on Line 5231:
deleteSpecificPage in v13 on Line 5654:
The attached patch fixes the problems.
Best regards,
Kay
Translated with DeepL.com (free version)