Snog
Well-known member
- Affected version
- 2.0 Beta 6
I was hoping to trick xf:avatar into allowing an array instead of an entity when I ran across this error:
I was using this template code:
Code:
Fatal error: Method XF\Widget\WidgetRenderer::__toString() must not throw an exception, caught Error: Call to a member function getAvatarUrl() on array in /var/www/clients/client0/web1/web/src/XF/Template/Templater.php on line 0
Code:
<xf:avatar user="$user" size="xs" forcetype="custom" />