Closed mike-moreau closed 2 years ago
Thanks for reporting that - fixed now in Embedded Assets 2.11.1.
Thanks for the quick reply.
I'm seeing a type error after updating to 2.11.1.
2022-06-24 07:18:53 [-][14043][qin5e34r3a223j6rt0bt144efa][error][TypeError] TypeError: spicyweb\embeddedassets\Service::createAsset(): Return value must be of type craft\elements\Asset, string returned in .../vendor/spicyweb/craft-embedded-assets/src/Service.php:333
Stack trace:
#0 .../vendor/spicyweb/craft-embedded-assets/src/Controller.php(53): spicyweb\embeddedassets\Service->createAsset(Object(spicyweb\embeddedassets\models\EmbeddedAsset), Object(craft\models\VolumeFolder))
#1 [internal function]: spicyweb\embeddedassets\Controller->actionSave()
...
Whoops, there was a bit of a typo where it was trying to return the sanitised filename instead of setting it on the asset - not really sure how that was working for me, but anyway... That should now be working properly in 2.11.2, but please let me know if any other issues come up.
That's working perfectly. Thanks again!
Description
Hey there!
Adding one particular new asset fails. A server error is thrown, and the following is found in the logs.
Screen shot shows a possible problem with a whitespace character.
Steps to reproduce
https://www.youtube.com/watch?v=N1nequHmaZE
Other information