Bug #47693
closedAdding an editpanel via typoscript throws an error
0%
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
Updated by Riccardo De Contardi over 9 years ago
- File cattura.png cattura.png added
- Description updated (diff)
- Status changed from New to Closed
- Is Regression set to No
I am not able to reproduce it in TYPO3 6.2.12
My test:
1) TS config (admin user):
admPanel=1
2) TS setup:
config.disablePrefixComment=1 config.admPanel = 1 page = PAGE page.10 < styles.content.get page.100 = EDITPANEL page.100 { label = insert new content element allow = new newRecordFromTable = tt_content }
3) enable FEEDIT system extension
Result: the admin panel is shown; enabling the edit panel and icons works, too (see attached file)
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.