Project

General

Profile

Actions

Bug #47693

closed

Adding an editpanel via typoscript throws an error

Added by Frank Frewer almost 11 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-04-29
Due date:
% Done:

0%

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

Description

With the following typoscript it should be possible to add an editpanel to the website
lib.myLib = EDITPANEL
lib.myLib {
label = insert new content element
allow = new
newRecordFromTable = tt_content
}

But I get an error:
PHP Catchable Fatal Error: Argument 4 passed to t3lib_frontendedit::displayEditPanel() must be an array, null given, called in /my/path/to/typo3/typo3_src-4.5.25/typo3/sysext/cms/tslib/class.tslib_content.php on line 7860 and defined in /my/path/to/typo3/typo3_src-4.5.25/t3lib/class.t3lib_frontendedit.php line 82

This will fix the problem:
Patch typo3/sysext/cms/tslib/class.tslib_content.php ~ line 7860:
- if (!count($dataArr)) {
+ if (!count($dataArr) && $this->data) {
$dataArr = $this->data;
}


Files

cattura.png (28.1 KB) cattura.png Riccardo De Contardi, 2015-05-03 00:19
Actions

Also available in: Atom PDF