Project

General

Profile

Actions

Bug #75530

closed

Duplicating a pagetree with rightclick, copy and paste throws TYPO3 exception

Added by Tobias Pfender over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Pagetree
Target version:
-
Start date:
2016-04-12
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

I'm trying to copy and paste a pagetree recursive. Recursive copy and delete in user settings is enabled and I'm an admin user. Recursive copy is set to 5.

When I copy and paste the root page, I get the following TYPO3 Exception:
PHP Warning: Invalid argument supplied for foreach() in /var/www/htdocs/typo3_src/typo3/sysext/core/Classes/DataHandling/DataHandler.php line 3635

Only the rootpage is pasted, subpages aren't.


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #74125: Exception throwing in sysext\core\Classes\DataHandling\DataHandler.php on copySpecificPageClosedTYPO3 Release Team2016-03-04

Actions
Actions #1

Updated by Tobias Pfender over 8 years ago

I guess empty tables cause this problem. I added an if condition to check if the foreach element is an array and isn't empty. Works for me.

Actions #2

Updated by Andreas Kienast over 8 years ago

  • Status changed from New to Closed

I'll close this issue as it's a duplicate of #74125.

Actions

Also available in: Atom PDF