Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
序列化';关闭';使用TYPO3 10.4.0中的ext:form在FAL文件上载中不允许_Typo3 - Fatal编程技术网

序列化';关闭';使用TYPO3 10.4.0中的ext:form在FAL文件上载中不允许

序列化';关闭';使用TYPO3 10.4.0中的ext:form在FAL文件上载中不允许,typo3,Typo3,我在10.4.0(编写器模式)上使用EXT:Form中的FAL FileUpload字段得到一个PHP异常“不允许序列化‘Closure’” 如果FormState数组包含类型为TYPO3\CMS\Extbase\Domain\Model\FileReference的对象,则序列化在/public/TYPO3/sysext/form/Classes/ViewHelpers/FormViewHelper.php第48行中不起作用 serialize(object(TYPO3\CMS\Form\Do

我在10.4.0(编写器模式)上使用EXT:Form中的FAL FileUpload字段得到一个PHP异常“不允许序列化‘Closure’”

如果FormState数组包含类型为TYPO3\CMS\Extbase\Domain\Model\FileReference的对象,则序列化在/public/TYPO3/sysext/form/Classes/ViewHelpers/FormViewHelper.php第48行中不起作用

serialize(object(TYPO3\CMS\Form\Domain\Runtime\FormState))

这是虫子吗

所提到的行为是TYPO3版本10.4.0和10.4.4之间的一个bug,在TYPO3版本10.4.5中已通过以下提交解决并修复了该bug

[BUGFIX] Fix serialization of FileReference objects

FileReferences objects contain references to File
objects which itself contain service dependencies
(e.g. event dispatcher) which are not seralizable.

This leads to problems for instance when having
a multi-step form containing file uploads where
file reference objects are being serialized.
参考资料:


您的表单定义是否包含多个页面(“步骤”),例如摘要页面?在这种情况下,我会遇到相同的错误。是的,我在调用摘要页面时会遇到此错误。只有提交FAL反对时才会发生错误。我在TYPO3 Bugtracker上添加了一个问题:该问题在TYPO3 v10.4.5中已修复