序列化';关闭';使用TYPO3 10.4.0中的ext:form在FAL文件上载中不允许
我在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行中不起作用序列化';关闭';使用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
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.
参考资料: