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!

Support Resolved Server error

AnjaV

New Member
Hi, eversince I installed MOTM I keep having servererrors like this:

src/addons/XFA/XFMGMediaOfTheMonth/Cron/XFMGMediaOfTheMonth.php(239): XF::handlePhpError(2, '[E_WARNING] Att...', '/home/lurofoto/...', 239)
#1 src/addons/XFA/XFMGMediaOfTheMonth/Cron/XFMGMediaOfTheMonth.php(23): XFA\XFMGMediaOfTheMonth\Cron\XFMGMediaOfTheMonth::cronMode2()
#2 src/XF/Job/Cron.php(37): XFA\XFMGMediaOfTheMonth\Cron\XFMGMediaOfTheMonth::cron(Object(XF\Entity\CronEntry))
#3 src/XF/Job/Manager.php(260): XF\Job\Cron->run(8)
#4 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#5 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 8)
#6 job.php(43): XF\Job\Manager->runQueue(false, 8)
#7 {main}
and this

#0 src/addons/XFA/XFMGMediaOfTheMonth/Listener.php(132): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] Att...', '/home/lurofoto/...', 132)
#1 src/XF/Extension.php(52): XFA\XFMGMediaOfTheMonth\Listener::templateMacroPreRender(Object(SV\StandardLib\XF\Template\Templater), 'admin', 'option_macros', 'option_form_blo...', Array, Array)
#2 src/XF/App.php(2853): XF\Extension->fire('templater_macro...', Array, 'admin option_ma...')
#3 src/XF/Template/Templater.php(761): XF\App->fire('templater_macro...', Array, 'admin option_ma...')
#4 internal_data/code_cache/templates/l7/s0/admin/notice_list.php(116): XF\Template\Templater->callMacro('option_macros', 'option_form_blo...', Array, Array)
#5 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
#6 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('notice_list', Array)
#7 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#8 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:Notice\\Listi...', 'admin:notice_li...', Array)
#9 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#12 src/XF/App.php(2351): XF\Mvc\Dispatcher->run()
#13 src/XF.php(517): XF\App->run()
#14 admin.php(13): XF::runApp('XF\\Admin\\App')
#15 {main}

What do I need to do to stop this?
 
The error is cut (first line).

Could you provide the whole error log so I can see the error.
 
Sorry I can't. This is all I got to see

The title is: Attempt to read property "language_id"on null
Maybe that is helpful?
 
Yes that's helpful.
I can fix that first error, but this also comes from the fact that you haven't set a user for the notifications, option name xfa_mgmotm_creator_user_id.

For the second error, you don't have more info ?

The error can be found in he server error logs in admincp and you will have more info.
I think you are getting this error when you are going in the options.
 
Thanks so far!

For the second error, you don't have more info ?
Oh yes I have. That's a template error (E warning) Attempt to read property "group_id" on null

option name xfa_mgmotm_creator_user_id.
What name would I use? (and where do I find this?) Sorry, I'm not familiar with this add-on software
 
Last edited:
Any user you would like to be the author of the threads/posts notifications for MOTM.
It's in the options in admincp.

I'll investigate the errors.
 
I am not able to reproduce the second error.

Did it happen once or do you get it on a regular basis ?
On which page ?
 
It happens several times but not very often. I have 6 template errors at the moment and they were all created last Sunday

src/addons/XENTR/MediaLimit/MacroRender.php(15): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] Att...', '/home/lurofoto/...', 15)
and
src/addons/XFA/XFMGMediaOfTheMonth/Listener.php(132): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] Att...', '/home/lurofoto/...', 132)

Both showing this:
array(4) {
["url"] => string(23) "/admin.php?advertising/"
["referrer"] => string(47) "https://lurofoto.eu/admin.php?logs/server-error"
["_GET"] => array(1) {
["advertising/"] => string(0) ""
}
["_POST"] => array(0) {
}

Maybe that is helpful?
 
Last edited:
Any user you would like to be the author of the threads/posts notifications for MOTM.
It's in the options in admincp.
Filled it in. Now wait and see what happens every time cron is running. I'll let you know the results.
 
Could it be related to the fact that I created several usergroups?

This is what I found:
Stack trace

#0 src/addons/XFA/XFMGMediaOfTheMonth/Listener.php(132): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] Att...', '/home/lurofoto/...', 132)
#1 src/XF/Extension.php(52): XFA\XFMGMediaOfTheMonth\Listener::templateMacroPreRender(Object(SV\StandardLib\XF\Template\Templater), 'admin', 'option_macros', 'option_form_blo...', Array, Array)
#2 src/XF/App.php(2853): XF\Extension->fire('templater_macro...', Array, 'admin:eek:ption_ma...')
#3 src/XF/Template/Templater.php(761): XF\App->fire('templater_macro...', Array, 'admin:eek:ption_ma...')
#4 internal_data/code_cache/templates/l7/s0/admin/notice_list.php(116): XF\Template\Templater->callMacro('option_macros', 'option_form_blo...', Array, Array)
#5 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
#6 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('notice_list', Array)
#7 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#8 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:Notice\\Listi...', 'admin:notice_li...', Array)
#9 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#12 src/XF/App.php(2351): XF\Mvc\Dispatcher->run()
#13 src/XF.php(517): XF\App->run()
#14 admin.php(13): XF::runApp('XF\\Admin\\App')
#15 {main}

And
Stack trace

#0 src/addons/XENTR/MediaLimit/MacroRender.php(15): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] Att...', '/home/lurofoto/...', 15)
#1 src/XF/Extension.php(52): XENTR\MediaLimit\MacroRender::preRender(Object(SV\StandardLib\XF\Template\Templater), 'admin', 'option_macros', 'option_form_blo...', Array, Array)
#2 src/XF/App.php(2853): XF\Extension->fire('templater_macro...', Array, 'admin:eek:ption_ma...')
#3 src/XF/Template/Templater.php(761): XF\App->fire('templater_macro...', Array, 'admin:eek:ption_ma...')
#4 internal_data/code_cache/templates/l7/s0/admin/notice_list.php(116): XF\Template\Templater->callMacro('option_macros', 'option_form_blo...', Array, Array)
#5 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
#6 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('notice_list', Array)
#7 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#8 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:Notice\\Listi...', 'admin:notice_li...', Array)
#9 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#12 src/XF/App.php(2351): XF\Mvc\Dispatcher->run()
#13 src/XF.php(517): XF\App->run()
#14 admin.php(13): XF::runApp('XF\\Admin\\App')
#15 {main}

I'm sorry, this is all I got but I appreciate your patience with me :)
 
No I don't think it is related.

Could I get an admin access to your forum please ?
If so please send me the info per PM.

I'll go check if I see why you got that second error and if something need to be fixed.

Thanks,
Clément
 
Well I released a version that fixes only the first problematic.
So yeah to investigate the other one it would be interesting.
 
I haven't had the template error since last Sunday so is it okay, that if I get a new template error, I'll get back to you and provide you with the admin access?
 
Hi MtoR, The template error is back. It seems the cron is set on Sunday.
I'll provide you with the login as soon as you're ready for it because of the 2 step verification.
Notice: most is written in Dutch but I think you can switch to English
 
It's going to be complicated for me to be online at a given time as I am on holidays.

Can you post the error you got ?
 
Well if your on holidays you should enjoy that!

  • ErrorException: Template error: [E_WARNING] Attempt to read property "group_id" on null
  • src/addons/XFA/XFMGMediaOfTheMonth/Listener.php:132

  • Gegenereerd door: LuRo
  • 27 december 2021 om 09:21

Stack trace

#0 src/addons/XFA/XFMGMediaOfTheMonth/Listener.php(132): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] Att...', '/home/lurofoto/...', 132)
#1 src/XF/Extension.php(52): XFA\XFMGMediaOfTheMonth\Listener::templateMacroPreRender(Object(SV\StandardLib\XF\Template\Templater), 'admin', 'option_macros', 'option_form_blo...', Array, Array)
#2 src/XF/App.php(2853): XF\Extension->fire('templater_macro...', Array, 'admin:eek:ption_ma...')
#3 src/XF/Template/Templater.php(761): XF\App->fire('templater_macro...', Array, 'admin:eek:ption_ma...')
#4 internal_data/code_cache/templates/l7/s0/admin/advertising_list.php(98): XF\Template\Templater->callMacro('option_macros', 'option_form_blo...', Array, Array)
#5 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
#6 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('advertising_lis...', Array)
#7 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#8 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:Advertising\\...', 'admin:advertisi...', Array)
#9 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#12 src/XF/App.php(2351): XF\Mvc\Dispatcher->run()
#13 src/XF.php(517): XF\App->run()
#14 admin.php(13): XF::runApp('XF\\Admin\\App')
#15 {main}

Aanvraagstatus

array(4) {
["url"] => string(23) "/admin.php?advertising/"
["referrer"] => string(43) "https://lurofoto.eu/admin.php?logs/sitemap/"
["_GET"] => array(1) {
["advertising/"] => string(0) ""
}
["_POST"] => array(0) {
}


  • ErrorException: Template error: [E_WARNING] Attempt to read property "group_id" on null
  • src/addons/XENTR/MediaLimit/MacroRender.php:15

  • Gegenereerd door: LuRo
  • 27 december 2021 om 09:21

Stack trace

#0 src/addons/XENTR/MediaLimit/MacroRender.php(15): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] Att...', '/home/lurofoto/...', 15)
#1 src/XF/Extension.php(52): XENTR\MediaLimit\MacroRender::preRender(Object(SV\StandardLib\XF\Template\Templater), 'admin', 'option_macros', 'option_form_blo...', Array, Array)
#2 src/XF/App.php(2853): XF\Extension->fire('templater_macro...', Array, 'admin:eek:ption_ma...')
#3 src/XF/Template/Templater.php(761): XF\App->fire('templater_macro...', Array, 'admin:eek:ption_ma...')
#4 internal_data/code_cache/templates/l7/s0/admin/advertising_list.php(98): XF\Template\Templater->callMacro('option_macros', 'option_form_blo...', Array, Array)
#5 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
#6 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('advertising_lis...', Array)
#7 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#8 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:Advertising\\...', 'admin:advertisi...', Array)
#9 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#12 src/XF/App.php(2351): XF\Mvc\Dispatcher->run()
#13 src/XF.php(517): XF\App->run()
#14 admin.php(13): XF::runApp('XF\\Admin\\App')
#15 {main}

Aanvraagstatus

array(4) {
["url"] => string(23) "/admin.php?advertising/"
["referrer"] => string(43) "https://lurofoto.eu/admin.php?logs/sitemap/"
["_GET"] => array(1) {
["advertising/"] => string(0) ""
}
["_POST"] => array(0) {
}
}
 
Top