Hello
Since yesterday I’ve got an error message in the backend of Neos:
"Required argument “asset” is not set. - Check the logs for details"
The output of the log file:
Exception #1298012500 in line 203 of /Users/adrianhirschi/development/local/neos/AntProduction/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/Neos_Flow_Mvc_Controller_ActionController.php: Required argument "asset" is not set.
11 Neos\Flow\Mvc\Controller\AbstractController_Original::mapRequestArgumentsToControllerArguments()
10 Neos\Flow\Mvc\Controller\ActionController_Original::processRequest(Neos\Flow\Mvc\ActionRequest, Neos\Flow\Mvc\ActionResponse)
9 Neos\Flow\Mvc\Dispatcher_Original::initiateDispatchLoop(Neos\Flow\Mvc\ActionRequest, Neos\Flow\Mvc\ActionResponse)
8 Neos\Flow\Mvc\Dispatcher_Original::dispatch(Neos\Flow\Mvc\ActionRequest, Neos\Flow\Mvc\ActionResponse)
7 call_user_func_array(array|2|, array|2|)
6 Neos\Flow\ObjectManagement\DependencyInjection\DependencyProxy::__call("dispatch", array|2|)
5 Neos\Flow\Mvc\DispatchComponent_Original::handle(Neos\Flow\Http\Component\ComponentContext)
4 Neos\Flow\Http\Component\ComponentChain_Original::handle(Neos\Flow\Http\Component\ComponentContext)
3 Neos\Flow\Http\Component\ComponentChain_Original::handle(Neos\Flow\Http\Component\ComponentContext)
2 Neos\Flow\Http\RequestHandler::handleRequest()
1 Neos\Flow\Core\Bootstrap::run()
HTTP REQUEST:
127.0.0.1:8081Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:77.0) Gecko/20100101 Firefox/77.0*/*de,en-US;q=0.7,en;q=0.3gzip, deflatehttp://127.0.0.1:8081/neos/content?node=%2Fsites%2Fsite%40user-adrianhirschi%3Blanguage%3Dde21dbb53db95958be3d5c691d18dce6fcmultipart/form-data; boundary=---------------------------91877875918732146853223241372http://127.0.0.1:808125590095keep-aliveNeos_Session=p86RvzutfPQYnRUfBy4bui7y2to7ZD1w
HTTP RESPONSE:
200
PHP PROCESS:
Inode: 5812068
PID: 3098
UID: 501
GID: 20
User: adrianhirschi
Before the error appears, I’ve developed the Header and the Footer for the page and everything was working fine. Yesterday I’ve started to build the hero element for the page, that was the first time when the error apperaed.
The .yaml file of the hero:
'AntProduction.Site:Content.Hero':
superTypes:
'Neos.Neos:Content': true
ui:
label: 'Hero Image'
icon: crown
group: hero
position: 50
inspector:
tabs:
settings:
label: 'Settings'
icon: cogs
position: 100
groups:
image:
tab: settings
label: 'Image'
icon: icon-image
properties:
heroImage:
type: Neos\Media\Domain\Model\ImageInterface
ui:
label: 'Hero Image'
reloadIfChanged: true
inspector:
group: 'image'
alternativeText:
type: string
ui:
label: 'Alternative Text'
inspector:
group: image
And the .fusion file:
prototype(AntProduction.Site:Content.Hero) < prototype(Neos.Neos:ContentComponent) {
heroImageSrc = Neos.Fusion:Case {
image {
condition = ${q(node).property('heroImage') ? true : false}
renderer = Sitegeist.Kaleidoscope:AssetImageSource {
asset = ${q(node).property('heroImage')}
}
}
dummyImage {
condition = ${site.context.inBackend}
renderer = Sitegeist.Kaleidoscope:DummyImageSource
}
}
alternativeText = ${q(node).property('alternativeText')}
renderer = afx`
<Sitegeist.Kaleidoscope:Image
@if.hasSource={props.heroImageSrc}
class="antproduction-hero"
alt={props.alternativeText}
imageSource={props.heroImageSrc}
srcset="320w, 400w, 600w, 800w, 1000w, 1200w, 1600w"
sizes="(min-width: 800px) 1000px, (min-width: 480px) 800px, (min-width: 320px) 440px, 100vw"
/>
`
}
I guess that the error isn’t thrown by the hero, because I’m not able to change any pictures on the page that I was able to change some days ago. Flushing the cache does not work too.
Using Neos.Neos:ImageUri throws the same error as Sitegeist.Kaleidoscope:AssetImageSource that’s why I think the error is thrown somewhere else.
I’ve also checked the part of the PHP file mentioned in the log but wasn’t able to understand the PHP code.
Has someone an idea what to do and how to solve this problem?
I’m looking forward to any kind of help!
Adrian