{{ entry.image.first().url }} won't show image I am on my first Craft CMS test site. Have some problems showing a simple image.
&lt;img src=&quot;{{ entry.hero.first().url }}&quot; title=&quot;{{ hero.title }}&quot;&gt;

I get the title but can't get the URL. The src attr is always empty. Tried a couple of variants like:

entry.hero.first().url()
entry.hero.first().getUrl()
with and without ()
etc.

But entry.hero.first().filename gives me &quot;my_testfile01.jpg&quot;
I can't see what is wrong.
File is local with path set to &quot;./&quot;
Image field has no sub path.
MAMP (Apache + PHP 7)
By the way, is your Craft CMS version 3.x? If so, using &quot;one&quot; is recommended instead of &quot;first&quot;, which is deprecated.