[TYPO3-german] Fehlermeldung: "The action "edit" (controller "Twin") is not allowed by this plugin."

Ralf-Rene Schröder ralf.rene at online.de
Tue Mar 24 13:59:19 CET 2015


Am 24.03.2015 um 09:06 schrieb Chris Wolff - AERTiCKET AG:
> Hi Hast du die Extension mal per Extension Manager Deaktiviert/Aktiviert?
> Ich hab festgestellt das gerade bei änderungen der actions der der codecache nicht korrekt aktualisiert wird.
das zwar noch nicht, aber den kompletten Cache über das InstallTool
gelöscht (ich probiere es später, bin grad unterwegs)



> Am 21.03.2015 um 19:13 schrieb Ralf-Rene Schröder:
>> vielleicht hat ja jemand einen Tipp für einen extbase Anfänger ?
>>
>> bei Aufruf der "bearbeiten" Seite mit folgender URL:
>> domain.de/bearbeitungsseite/
>> ?tx_romantica_twins[twin]=XX
>> &tx_romantica_twins[action]=edit
>> &tx_romantica_twins[controller]=Twin
>> &cHash=xxx
>>
>> bekomme ich immer folgenden Fehler:
>> "The action "edit" (controller "Twin") is not allowed by this plugin."
>>
>> aber ich habe in der ext_localconf.php folgendes definiert:
>> \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
>> 'ImageFORMAT.' . $_EXTKEY,
>> 'Twins',
>> array(
>> 	'Twin' => 'list, show, new, create, edit, update'		
>> ),
>> // non-cacheable actions
>> array(
>> 	'Twin' => 'list, show, new, create, edit, update'		
>> )
>> );
>>
>> und auch in der flexform steht folgendes:
>> <switchableControllerActions>
>> <TCEforms>
>> <label>Select function</label>
>> <config>
>> <type>select</type>
>> <items>
>> ...
>> 	<numIndex index="4">
>> 		<numIndex index="0">Twin bearbeiten</numIndex>
>> 		<numIndex index="1">Twin->edit;Twin->update</numIndex>
>> 	</numIndex>
>> ...
>> </items>
>> </config>
>> </TCEforms>
>> </switchableControllerActions>
>>
>> die entsprechenden Controller lauten:
>> 	/**
>> 	 * action edit
>> 	 *
>> 	 * @param \imageFORMAT\Romantica\Domain\Model\Twin $twin
>> 	 * @ignorevalidation $twin
>> 	 * @return void
>> 	 */
>> public function editAction(\imageFORMAT\Romantica\Domain\Model\Twin $twin) {
>> 	$this->view->assign('twin', $twin);
>> }
>>
>> 	/**
>> 	 * action update
>> 	 *
>> 	 * @param \imageFORMAT\Romantica\Domain\Model\Twin $twin
>> 	 * @return void
>> 	 */
>> public function updateAction(\imageFORMAT\Romantica\Domain\Model\Twin
>> $twin) {
>> 	$this->addFlashMessage('The object was updated. Please be aware that 
>> this action is publicly accessible unless you implement an access check.
>> See <a
>> href="http://wiki.typo3.org/T3Doc/Extension_Builder/Using_the_Extension_Builder#1._Model_the_domain"
>> target="_blank">Wiki</a>', '',
>> \TYPO3\CMS\Core\Messaging\AbstractMessage::ERROR);
>> 	$this->twinRepository->update($twin);
>> 	$this->redirect('list');
>> }
>>
>> also noch original, ich hab noch nicht mal die Prüfung auf die 
>> "erlaubnis" zum editieren (also ob es ein eigener Datensatz ist)
>>
>> was fehlt noch ???
>> list und show funktionieren...
>> bei create habe ich das gleiche Problem...
>>


-- 
image[FORMAT] - Ralf-René Schröder
http://www.image-format.eu ... Wir geben Ihrem Image das richtige Format


More information about the TYPO3-german mailing list