Project

General

Profile

Actions

Bug #72683

closed

Exception in sysext\core\Classes\DataHandling\DataHandler.php

Added by Andreas Stenger about 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
DataHandler aka TCEmain
Target version:
-
Start date:
2016-01-13
Due date:
% Done:

0%

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

Description

By copying a page tree using something like:

private function clonePages($conf)
{
    $cmdmap['pages'][$this->pageTreeToCopy]['copy'] = $conf['root'];
    $this->tce->copyTree = $conf['recursiveLevel'];
    $this->tce->start(false, $cmdmap);
    $this->tce->process_cmdmap();
    return $this->tce->copyMappingArray_merged;
}

the method "copySpecificPage" in sysext\core\Classes\DataHandling\DataHandler.php throws an exception.

#1: PHP Warning: Invalid argument supplied for foreach() in /var/www/vagrant/htdocs/public/typo3/sysext/core/Classes/DataHandling/DataHandler.php line 3632

wich is this line:

[...]
foreach ($rows as $row) {
[...]

Adding the following solves the issue for the moment:

[...]
+ if(is_array($rows)) {
    foreach ($rows as $row) {
[...]

Probably happening since it was reworked.
Checked the file from 7.3 (from GitHub), worked as expected.

Actions #1

Updated by Anja Leichsenring about 8 years ago

  • Complexity set to easy
Actions #2

Updated by Georg Ringer about 8 years ago

  • Status changed from New to Resolved
Actions #3

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF