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 #1

Updated by Anonymous over 9 years ago

Still an issue in TYPO3 6.2 LTS!

Actions #2

Updated by Riccardo De Contardi almost 9 years ago

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.

Actions

Also available in: Atom PDF