From 30c7af1181fb2f5b4a8fe5767374b98e17bfba9f Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Wed, 30 Jun 2021 11:27:39 +0200 Subject: [PATCH 1/1] --- README.rst | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 README.rst diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..ccaca01 --- /dev/null +++ b/README.rst @@ -0,0 +1,22 @@ +Exception +========= + + (1/1) #1256475113 InvalidArgumentException + + The argument "image" was registered with type "object", but is of type "array" in view helper "TYPO3\CMS\Fluid\ViewHelpers\ImageViewHelper". + +Code:: + + {v:resource.record.fal(table:'pages', field: 'media', record: page) + -> v:iterator.first() + -> v:variable.set(name: 'image')} + + + + +Solution +======== + +Use "asObjects=1" for v:resource.record.fal:: + + {v:resource.record.fal(table:'pages', field: 'media', record: page, asObjects: 1)} -- 2.30.2