Bryan
Active member
- Affected version
- 2.0
This only started today for some reason and there have been no changes to the site since upgrading to XF2 and it had been fine for the last few days.
Any ideas what may be causing this?
Code:
Error: Call to a member function canView() on null src/addons/XFMG/Entity/MediaItem.php:94
Generated by: Unknown account Dec 4, 2017 at 7:32 AM
Stack trace
#0 src/addons/XFMG/Sitemap/Media.php(57): XFMG\Entity\MediaItem->canView()
#1 src/XF/Sitemap/Builder.php(181): XFMG\Sitemap\Media->isIncluded(Object(XFMG\Entity\MediaItem))
#2 src/XF/Sitemap/Builder.php(146): XF\Sitemap\Builder->writeContentTypeData('xfmg_media', 2006, 5.5344219207764)
#3 src/XF/Sitemap/Builder.php(81): XF\Sitemap\Builder->buildType('xfmg_media', 5.5344219207764)
#4 src/XF/Job/Sitemap.php(25): XF\Sitemap\Builder->build(5.5344219207764)
#5 src/XF/Job/Manager.php(241): XF\Job\Sitemap->run(7.9999978542328)
#6 src/XF/Job/Manager.php(187): XF\Job\Manager->runJobInternal(Array, 7.9999978542328)
#7 src/XF/Job/Manager.php(76): XF\Job\Manager->runJobEntry(Array, 7.9999978542328)
#8 job.php(15): XF\Job\Manager->runQueue(false, 8)
#9 {main}
Request state
array(4) {
["url"] => string(8) "/job.php"
["referrer"] => string(27) "https://www.lrukforums.com/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
Any ideas what may be causing this?