{"type":"rich","version":"1.0","provider_name":"phorkie","provider_url":"https:\/\/p.cweiske.de\/","title":"TYPO3 Fluid ImageViewHelper: The argument \"image\" was registered with type \"object\", but is of type \"array\"","author_name":"Christian Weiske","cache_age":86400,"width":900,"height":900,"html":"<!-- embedding all files of https:\/\/p.cweiske.de\/746 -->\n<link rel=\"stylesheet\" href=\"https:\/\/p.cweiske.de\/css\/embed.css\"\/>\n<div class=\"phork\" id=\"746\">\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  \n<div class=\"document\">\n\n\n<div class=\"section\" id=\"exception\">\n<h1>Exception<\/h1>\n<blockquote>\n<p>(1\/1) #1256475113 InvalidArgumentException<\/p>\n<p>The argument &quot;image&quot; was registered with type &quot;object&quot;, but is of type &quot;array&quot; in view helper &quot;TYPO3CMSFluidViewHelpersImageViewHelper&quot;.<\/p>\n<\/blockquote>\n<p>Code:<\/p>\n<pre class=\"literal-block\">\n{v:resource.record.fal(table:'pages', field: 'media', record: page)\n  -&gt; v:iterator.first()\n  -&gt; v:variable.set(name: 'image')}\n&lt;f:if condition=&quot;{image}&quot;&gt;\n  &lt;f:image image=&quot;{image}&quot; \/&gt;\n&lt;\/f:if&gt;\n<\/pre>\n<\/div>\n<div class=\"section\" id=\"solution\">\n<h1>Solution<\/h1>\n<p>Use &quot;asObjects=1&quot; for v:resource.record.fal:<\/p>\n<pre class=\"literal-block\">\n{v:resource.record.fal(table:'pages', field: 'media', record: page, asObjects: 1)}\n<\/pre>\n<\/div>\n<\/div>\n\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/746\/rev-raw\/30c7af1181fb2f5b4a8fe5767374b98e17bfba9f\/README.rst\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/746#README.rst\">README.rst<\/a>\n <\/div>\n<\/div>\n<\/div>\n"}
