What's new
Xen Factory

Register today to become a member! Once signed in, you'll be able to start purchasing our products, ask questions, request support and suggest new ideas!

  • Clement is on vacation leave until the 22nd of August.
    Support or questions about his add-on will be answered on a very very slow basis till his return. Sorry for the inconvenience.
  • We are aware that a no permission error was shown when you tried to purchase in the last 2 days, this is now fixed.

Bug Resolved Template error: [E_WARNING] Attempt to read property "xfa_motm" on null

NICK97

Member
I am receiving lots of errors in adminCP right after I have upgraded php 8.0


Code:
ErrorException: Template error: [E_WARNING] Attempt to read property "xfa_motm" on null src/addons/XFA/XFMGMediaOfTheMonth/XFMG/Entity/MediaItem.php:198
Generated by: Unknown account Jan 13, 2022 at 3:04 PM
Stack trace
#0 src/addons/XFA/XFMGMediaOfTheMonth/XFMG/Entity/MediaItem.php(198): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] Att...', '/home/thkw8765/...', 198)
#1 src/XF/Template/Templater.php(1191): XFA\XFMGMediaOfTheMonth\XFMG\Entity\MediaItem->canViewMotmVotes()
#2 internal_data/code_cache/templates/l1/s150/public/xfmg_media_view_macros.php(408): XF\Template\Templater->method(Object(TickTackk\ChangeContentOwner\XFMG\Entity\MediaItem), 'canViewMotmVote...', Array)
#3 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, NULL)
#4 src/addons/MaZ/AMP/XF/Template/Templater.php(139): XF\Template\Templater->callMacro('xfmg_media_view...', 'info_sidebar', Array, Array, Object(XF\Template\MacroState))
#5 internal_data/code_cache/templates/l1/s150/public/xfmg_media_view.php(621): MaZ\AMP\XF\Template\Templater->callMacro('xfmg_media_view...', 'info_sidebar', Array, Array)
#6 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, NULL)
#7 src/addons/MaZ/AMP/XF/Template/XF22/Templater.php(52): XF\Template\Templater->renderTemplate('xfmg_media_view', Array, true, NULL)
#8 src/XF/Template/Template.php(24): MaZ\AMP\XF\Template\XF22\Templater->renderTemplate('public:xfmg_med...', Array)
#9 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#10 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XFMG:Media\\View', 'public:xfmg_med...', Array)
#11 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#12 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#13 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#14 src/XF/App.php(2351): XF\Mvc\Dispatcher->run()
#15 src/XF.php(517): XF\App->run()
#16 index.php(20): XF::runApp('XF\\Pub\\App')
#17 {main}
Request state
/home/thkw8765/public_html/src/XF/Debugger.php:44:
array(4) {
  'url' =>
  string(27) "/media/20171006174734_1.67/"
  'referrer' =>
  bool(false)
  '_GET' =>
  array(0) {
  }
  '_POST' =>
  array(0) {
  }
}

as well I have temporary disable the addon until it’s is fixed
 

Attachments

  • C8AF6B01-9A50-46BA-A743-904B4BA3CDB7.png
    C8AF6B01-9A50-46BA-A743-904B4BA3CDB7.png
    500.5 KB · Views: 1
  • 0C0E88BA-0A1F-4135-A903-E84B16639FF4.png
    0C0E88BA-0A1F-4135-A903-E84B16639FF4.png
    515.9 KB · Views: 1
Top