[Flow] The form field "[__identity]" is invalid. Flow 2.2

Kompaoré Désiré nkompaore at kode-informatique.com
Tue Jul 8 18:38:59 CEST 2014


Hi,
I've just updated my flow version from 2.0 to 2.2.
I get the following error
-----------------------------
#1243352010: The key
"TYPO3\Fluid\ViewHelpers\FormViewHelper->formFieldNames" was already
stored and you cannot override it.

More information
TYPO3\Fluid\Core\ViewHelper\Exception\InvalidVariableException thrown in
file
/opt/www-dev/public/kode-avocat/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/TYPO3_Fluid_Core_ViewHelper_ViewHelperVariableContainer.php
in line 51.
Reference code: 20140708182959c50c74
------------------------------

1) I've updated fluid FormViewHelper.php with the following code

        if
(!$this->viewHelperVariableContainer->exists('TYPO3\Fluid\ViewHelpers\FormViewHelper',
'formFieldNames')) {
           
$this->viewHelperVariableContainer->add('TYPO3\Fluid\ViewHelpers\FormViewHelper',
'formFieldNames', array());
            }
It then work.

2) But after this modification, when i try to open a link like this :
<f:link.action action="details" controller="Dossier"
arguments="{dossier: dossier}">{dossier.libelle}</f:link.action>

I get the following Error
-----------------------------------
#1255072832: The form field "[__identity]" is invalid.

Reason: "[]" used not as last argument, but somewhere in the middle
(like foo[][bar]).

More information
TYPO3\Flow\Security\Exception\InvalidArgumentForHashGenerationException
thrown in file
mypackage/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/TYPO3_Flow_Mvc_Controller_MvcPropertyMappingConfigurationService.php
in line 75.
Reference code: 20140708181756ce1b69

Go to the FORGE issue tracker and report the issue - if you think it is
a bug!
----------------------------------

the corresponding lines in  Route.yaml are
-
  name: 'Detail dossier'
  uriPattern: 'dossier/details/{dossier}'
  defaults:
    '@controller': 'Dossier'
    '@action': 'details'
  routeParts:
    dossier:
      objectType: '\My\Package\Domain\Model\Dossier'
      uriPattern: '{libelle}'

I need some help

Regards

Désiré Kompaoré
 


More information about the Flow mailing list