- InvalidArgumentException: Accessed unknown getter 'likes' on XFMG:MediaItem[11]
- src/XF/Mvc/Entity/Entity.php:194
#0 src/XF/Mvc/Entity/Entity.php(106): XF\Mvc\Entity\Entity->get('likes')
#1 internal_data/code_cache/templates/l1/s3/public/xfmg_media_view.php(156): XF\Mvc\Entity\Entity->offsetGet('likes')
#2 src/XF/Template/Templater.php(1294): XF\Template\Templater->{closure}(Object(ThemeHouse\UIX\XF\Template\Templater), Array)
#3 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('xfmg_media_view', Array)
#4 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#5 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Html->renderView('XFMG:Media\\View', 'public:xfmg_med...', Array)
#6 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#7 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#8 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#9 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#10 src/XF.php(390): XF\App->run()
#11 index.php(20): XF::runApp('XF\\Pub\\App')
#12 {main}
- InvalidArgumentException: Accessed unknown getter 'like_users' on XFMG:MediaItem[11]
- src/XF/Mvc/Entity/Entity.php:194
#0 src/XF/Mvc/Entity/Entity.php(101): XF\Mvc\Entity\Entity->get('like_users')
#1 src/XF/Template/Templater.php(2612): XF\Mvc\Entity\Entity->__get('like_users')
#2 [internal function]: XF\Template\Templater->fnLikesContent(Object(ThemeHouse\UIX\XF\Template\Templater), false, Object(XFMG\Entity\MediaItem), '/media/20180707...', Array)
#3 src/XF/Template/Templater.php(915): call_user_func_array(Array, Array)
#4 internal_data/code_cache/templates/l1/s3/public/xfmg_media_view.php(158): XF\Template\Templater->fn('likes_content', Array)
#5 src/XF/Template/Templater.php(1294): XF\Template\Templater->{closure}(Object(ThemeHouse\UIX\XF\Template\Templater), Array)
#6 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('xfmg_media_view', Array)
#7 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#8 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Html->renderView('XFMG:Media\\View', 'public:xfmg_med...', Array)
#9 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#12 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#13 src/XF.php(390): XF\App->run()
#14 index.php(20): XF::runApp('XF\\Pub\\App')
#15 {main}
This error only occurs when viewing a media item.