gotski
Active member
- Affected version
- 2
Hello, I received some errors:
#0 src/addons/XFMG/BbCode/Gallery.php(59): XFMG\Entity\MediaItem->canView()
#1 [internal function]: XFMG\BbCode\Gallery::renderTagGallery(Array, 'media, 65387', Array, Array, Object(XF\BbCode\Renderer\Html))
#2 src/XF/BbCode/Renderer/Html.php(234): call_user_func(Array, Array, 'media, 65387', Array, Array, Object(XF\BbCode\Renderer\Html))
#3 src/XF/BbCode/Traverser.php(49): XF\BbCode\Renderer\Html->renderTag(Array, Array)
#4 src/XF/BbCode/Traverser.php(29): XF\BbCode\Traverser->renderSubTree(Array, Array)
#5 src/XF/BbCode/Traverser.php(18): XF\BbCode\Traverser->renderAst(Array, Object(XF\BbCode\RuleSet), Array)
#6 src/XF/SubContainer/BbCode.php(202): XF\BbCode\Traverser->render('[GALLERY=media,...', Object(XF\BbCode\Parser), Object(XF\BbCode\RuleSet), Array)
#7 src/XF/Template/Templater.php(1839): XF\SubContainer\BbCode->render('[GALLERY=media,...', 'html', 'post', Object(XFMG\XF\Entity\Post), Array)
#8 [internal function]: XF\Template\Templater->fnBbCode(Object(XF\Template\Templater), false, '[GALLERY=media,...', 'post', Object(XFMG\XF\Entity\Post))
#9 src/XF/Template/Templater.php(861): call_user_func_array(Array, Array)
#10 internal_data/code_cache/templates/l1/s2/public/post_macros.php(121): XF\Template\Templater->fn('bb_code', Array, false)
#11 src/XF/Template/Templater.php(643): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Array)
#12 internal_data/code_cache/templates/l1/s2/public/thread_view.php(516): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#13 src/XF/Template/Templater.php(1230): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array)
#14 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#15 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#16 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#17 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#18 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#19 src/XF/App.php(1879): XF\Mvc\Dispatcher->run()
#20 src/XF.php(328): XF\App->run()
#21 index.php(13): XF::runApp('XF\\Pub\\App')
#22 {main}
[SIZE=5]Request state[/SIZE]
array(4) {
["url"] => string(95) "/threads/threadname.4268/page-28"
["referrer"] => string(123) "https://www.sitename.net/threads/threadname.4268/page-27"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
- Error: Call to a member function canView() on null
- src/addons/XFMG/Entity/MediaItem.php:94
- Generated by: member
- Dec 8, 2017 at 9:25 PM
#0 src/addons/XFMG/BbCode/Gallery.php(59): XFMG\Entity\MediaItem->canView()
#1 [internal function]: XFMG\BbCode\Gallery::renderTagGallery(Array, 'media, 65387', Array, Array, Object(XF\BbCode\Renderer\Html))
#2 src/XF/BbCode/Renderer/Html.php(234): call_user_func(Array, Array, 'media, 65387', Array, Array, Object(XF\BbCode\Renderer\Html))
#3 src/XF/BbCode/Traverser.php(49): XF\BbCode\Renderer\Html->renderTag(Array, Array)
#4 src/XF/BbCode/Traverser.php(29): XF\BbCode\Traverser->renderSubTree(Array, Array)
#5 src/XF/BbCode/Traverser.php(18): XF\BbCode\Traverser->renderAst(Array, Object(XF\BbCode\RuleSet), Array)
#6 src/XF/SubContainer/BbCode.php(202): XF\BbCode\Traverser->render('[GALLERY=media,...', Object(XF\BbCode\Parser), Object(XF\BbCode\RuleSet), Array)
#7 src/XF/Template/Templater.php(1839): XF\SubContainer\BbCode->render('[GALLERY=media,...', 'html', 'post', Object(XFMG\XF\Entity\Post), Array)
#8 [internal function]: XF\Template\Templater->fnBbCode(Object(XF\Template\Templater), false, '[GALLERY=media,...', 'post', Object(XFMG\XF\Entity\Post))
#9 src/XF/Template/Templater.php(861): call_user_func_array(Array, Array)
#10 internal_data/code_cache/templates/l1/s2/public/post_macros.php(121): XF\Template\Templater->fn('bb_code', Array, false)
#11 src/XF/Template/Templater.php(643): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Array)
#12 internal_data/code_cache/templates/l1/s2/public/thread_view.php(516): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#13 src/XF/Template/Templater.php(1230): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array)
#14 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#15 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#16 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#17 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#18 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#19 src/XF/App.php(1879): XF\Mvc\Dispatcher->run()
#20 src/XF.php(328): XF\App->run()
#21 index.php(13): XF::runApp('XF\\Pub\\App')
#22 {main}
[SIZE=5]Request state[/SIZE]
array(4) {
["url"] => string(95) "/threads/threadname.4268/page-28"
["referrer"] => string(123) "https://www.sitename.net/threads/threadname.4268/page-27"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}