<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed><type>rich</type><version>1.0</version><provider_name>phorkie</provider_name><provider_url>https://p.cweiske.de/</provider_url><title>TYPO3 Fluid ImageViewHelper: The argument "image" was registered with type "object", but is of type "array"</title><author_name>Christian Weiske</author_name><cache_age>86400</cache_age><width>900</width><height>900</height><html>&lt;!-- embedding all files of https://p.cweiske.de/746 --&gt;
&lt;link rel="stylesheet" href="https://p.cweiske.de/css/embed.css"/&gt;
&lt;div class="phork" id="746"&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  
&lt;div class="document"&gt;


&lt;div class="section" id="exception"&gt;
&lt;h1&gt;Exception&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;(1/1) #1256475113 InvalidArgumentException&lt;/p&gt;
&lt;p&gt;The argument &amp;quot;image&amp;quot; was registered with type &amp;quot;object&amp;quot;, but is of type &amp;quot;array&amp;quot; in view helper &amp;quot;TYPO3CMSFluidViewHelpersImageViewHelper&amp;quot;.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Code:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
{v:resource.record.fal(table:'pages', field: 'media', record: page)
  -&amp;gt; v:iterator.first()
  -&amp;gt; v:variable.set(name: 'image')}
&amp;lt;f:if condition=&amp;quot;{image}&amp;quot;&amp;gt;
  &amp;lt;f:image image=&amp;quot;{image}&amp;quot; /&amp;gt;
&amp;lt;/f:if&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="section" id="solution"&gt;
&lt;h1&gt;Solution&lt;/h1&gt;
&lt;p&gt;Use &amp;quot;asObjects=1&amp;quot; for v:resource.record.fal:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
{v:resource.record.fal(table:'pages', field: 'media', record: page, asObjects: 1)}
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;

 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/746/rev-raw/30c7af1181fb2f5b4a8fe5767374b98e17bfba9f/README.rst" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/746#README.rst"&gt;README.rst&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</html></oembed>
