Solved Errors after upgrade to PHP v8.0

Sadiq6210

Licensed
Licensed
User Moods Manager
Required Custom Fields On Upgrade
Change Type Resource
Joined
Aug 26, 2019
Messages
63
Reaction score
26
Hi,

I am receiving the below error hundreds times only if I move to PHP8.0, no errors if I select PHP7.3

  • rrorException: Template error: [E_WARNING] Attempt to read property "moods_id" on null
  • src/addons/XenSoluce/UserMoodsManager/Listener.php:28
  • Generated by: Unknown account
  • 18 Jun 2021 at 4:42 PM

Stack trace​

#0 src/addons/XenSoluce/UserMoodsManager/Listener.php(28): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] Att...', '/home/userhere/p...', 28)
#1 [internal function]: XenSoluce\UserMoodsManager\Listener::templaterFnMoodsBannerUser(Object(XENTR\RichUsername\XF\Template\Templater), false, Object(SV\WhoReplied\XF\Entity\User), true)
#2 src/XF/Template/Templater.php(1105): call_user_func_array(Array, Array)
#3 internal_data/code_cache/templates/l3/s1/public/xs_umm_macros.php(29): XF\Template\Templater->func('moods_banner_us...', Array, false)
#4 src/XF/Template/Templater.php(1628): XF\Template\Templater->{closure}(Object(XENTR\RichUsername\XF\Template\Templater), Array, NULL)
#5 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('xs_umm_macros', Array)
#6 src/XF/Template/Template.php(31): XF\Template\Template->render()
#7 src/addons/XenSoluce/UserMoodsManager/XF/Template/Templater.php(16): XF\Template\Template->__toString()
#8 [internal function]: XenSoluce\UserMoodsManager\XF\Template\Templater->fnUserBanners(Object(XENTR\RichUsername\XF\Template\Templater), false, Object(SV\WhoReplied\XF\Entity\User), Array)
#9 src/XF/Template/Templater.php(1105): call_user_func_array(Array, Array)
#10 internal_data/code_cache/templates/l3/s1/public/message_macros.php(40): XF\Template\Templater->func('user_banners', Array)
#11 src/XF/Template/Templater.php(801): XF\Template\Templater->{closure}(Object(XENTR\RichUsername\XF\Template\Templater), Array, NULL)
#12 internal_data/code_cache/templates/l3/s1/public/post_macros.php(25): XF\Template\Templater->callMacro('message_macros', 'user_info', Array, Array)
#13 src/XF/Template/Templater.php(964): XF\Template\Templater->{closure}(Object(XENTR\RichUsername\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#14 src/XF/Template/Templater.php(900): XF\Template\Templater->renderExtensionInternal('user_cell', Array, Array, Object(XF\Template\ExtensionSet))
#15 internal_data/code_cache/templates/l3/s1/public/post_macros.php(146): XF\Template\Templater->renderExtension('user_cell', Array, Object(XF\Template\ExtensionSet))
#16 src/XF/Template/Templater.php(964): XF\Template\Templater->{closure}(Object(XENTR\RichUsername\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#17 src/XF/Template/Templater.php(900): XF\Template\Templater->renderExtensionInternal('full_body', Array, Array, Object(XF\Template\ExtensionSet))
#18 internal_data/code_cache/templates/l3/s1/public/post_macros.php(178): XF\Template\Templater->renderExtension('full_body', Array, Object(XF\Template\ExtensionSet))
#19 src/XF/Template/Templater.php(801): XF\Template\Templater->{closure}(Object(XENTR\RichUsername\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#20 internal_data/code_cache/templates/l3/s1/public/thread_view.php(802): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#21 src/XF/Template/Templater.php(1628): XF\Template\Templater->{closure}(Object(XENTR\RichUsername\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#22 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#23 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#24 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#25 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#26 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#27 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#28 src/XF/App.php(2337): XF\Mvc\Dispatcher->run()
#29 src/XF.php(488): XF\App->run()
#30 index.php(20): XF::runApp('XF\\Pub\\App')
#31 {main}

Request state​

array(4) {
["url"] => string(29) "/forum/threads/6142/page-1122"
["referrer"] => bool(false)
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
 

SyTry

Administrator
Staff member
Administrator
Moderator
Licensed
Joined
Jul 8, 2019
Messages
414
Reaction score
204
Hello, this should be fixed in the 2.2.0 version coming today ! ;)

Regards, SyTry
 
Solution

Sadiq6210

Licensed
Licensed
User Moods Manager
Required Custom Fields On Upgrade
Change Type Resource
Joined
Aug 26, 2019
Messages
63
Reaction score
26
Thanks for the update

Unfortunately I am still receiving more errors (only in PHP 8)

Code:
[LIST]
[*]ErrorException: Template error: [E_WARNING] Attempt to read property "Moods" on null
[*]src/addons/XenSoluce/UserMoodsManager/XF/Template/Templater.php:26
[*]Generated by: Unknown account
[*]25 Jun 2021 at 12:32 PM
[/LIST]
[HEADING=2]Stack trace[/HEADING]
#0 src/addons/XenSoluce/UserMoodsManager/XF/Template/Templater.php(26): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] Att...', '/home/user/p...', 26)
#1 [internal function]: XenSoluce\UserMoodsManager\XF\Template\Templater->fnAvatar(Object(XENTR\RichUsername\XF\Template\Templater), false, NULL, 'm', false, Array)
#2 src/XF/Template/Templater.php(1105): call_user_func_array(Array, Array)
#3 internal_data/code_cache/templates/l3/s1/public/message_macros.php(19): XF\Template\Templater->func('avatar', Array)
#4 src/XF/Template/Templater.php(801): XF\Template\Templater->{closure}(Object(XENTR\RichUsername\XF\Template\Templater), Array, NULL)
#5 internal_data/code_cache/templates/l3/s1/public/post_macros.php(25): XF\Template\Templater->callMacro('message_macros', 'user_info', Array, Array)
#6 src/XF/Template/Templater.php(964): XF\Template\Templater->{closure}(Object(XENTR\RichUsername\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#7 src/XF/Template/Templater.php(900): XF\Template\Templater->renderExtensionInternal('user_cell', Array, Array, Object(XF\Template\ExtensionSet))
#8 internal_data/code_cache/templates/l3/s1/public/post_macros.php(146): XF\Template\Templater->renderExtension('user_cell', Array, Object(XF\Template\ExtensionSet))
#9 src/XF/Template/Templater.php(964): XF\Template\Templater->{closure}(Object(XENTR\RichUsername\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#10 src/XF/Template/Templater.php(900): XF\Template\Templater->renderExtensionInternal('full_body', Array, Array, Object(XF\Template\ExtensionSet))
#11 internal_data/code_cache/templates/l3/s1/public/post_macros.php(178): XF\Template\Templater->renderExtension('full_body', Array, Object(XF\Template\ExtensionSet))
#12 src/XF/Template/Templater.php(801): XF\Template\Templater->{closure}(Object(XENTR\RichUsername\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#13 internal_data/code_cache/templates/l3/s1/public/thread_view.php(802): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#14 src/XF/Template/Templater.php(1628): XF\Template\Templater->{closure}(Object(XENTR\RichUsername\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#15 src/addons/BR/ModernStatistic/XF/Template/Templater.php(27): XF\Template\Templater->renderTemplate('thread_view', Array, true)
#16 src/XF/Template/Template.php(24): BR\ModernStatistic\XF\Template\Templater->renderTemplate('public:thread_v...', Array)
#17 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#18 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#19 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#20 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#21 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#22 src/XF/App.php(2337): XF\Mvc\Dispatcher->run()
#23 src/XF.php(488): XF\App->run()
#24 index.php(20): XF::runApp('XF\\Pub\\App')
#25 {main}
[HEADING=2]Request state[/HEADING]
array(4) {
  ["url"] => string(21) "/forum/threads/31744/"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

Code:
[LIST]
[*]ErrorException: Template error: [E_WARNING] Attempt to read property "Moods" on null
[*]src/addons/XenSoluce/UserMoodsManager/Listener.php:28
[*]Generated by: Unknown account
[*]25 Jun 2021 at 12:32 PM
[/LIST]
[HEADING=2]Stack trace[/HEADING]
#0 src/addons/XenSoluce/UserMoodsManager/Listener.php(28): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] Att...', '/home/user/p...', 28)
#1 [internal function]: XenSoluce\UserMoodsManager\Listener::templaterFnMoodsBannerUser(Object(XENTR\RichUsername\XF\Template\Templater), false, NULL, true)
#2 src/XF/Template/Templater.php(1105): call_user_func_array(Array, Array)
#3 internal_data/code_cache/templates/l3/s1/public/xs_umm_macros.php(29): XF\Template\Templater->func('moods_banner_us...', Array, false)
#4 src/XF/Template/Templater.php(1628): XF\Template\Templater->{closure}(Object(XENTR\RichUsername\XF\Template\Templater), Array, NULL)
#5 src/addons/BR/ModernStatistic/XF/Template/Templater.php(27): XF\Template\Templater->renderTemplate('xs_umm_macros', Array, true)
#6 src/XF/Template/Template.php(24): BR\ModernStatistic\XF\Template\Templater->renderTemplate('public:xs_umm_m...', Array)
#7 src/XF/Template/Template.php(31): XF\Template\Template->render()
#8 src/addons/XenSoluce/UserMoodsManager/XF/Template/Templater.php(16): XF\Template\Template->__toString()
#9 [internal function]: XenSoluce\UserMoodsManager\XF\Template\Templater->fnUserBanners(Object(XENTR\RichUsername\XF\Template\Templater), false, NULL, Array)
#10 src/XF/Template/Templater.php(1105): call_user_func_array(Array, Array)
#11 internal_data/code_cache/templates/l3/s1/public/message_macros.php(40): XF\Template\Templater->func('user_banners', Array)
#12 src/XF/Template/Templater.php(801): XF\Template\Templater->{closure}(Object(XENTR\RichUsername\XF\Template\Templater), Array, NULL)
#13 internal_data/code_cache/templates/l3/s1/public/post_macros.php(25): XF\Template\Templater->callMacro('message_macros', 'user_info', Array, Array)
#14 src/XF/Template/Templater.php(964): XF\Template\Templater->{closure}(Object(XENTR\RichUsername\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#15 src/XF/Template/Templater.php(900): XF\Template\Templater->renderExtensionInternal('user_cell', Array, Array, Object(XF\Template\ExtensionSet))
#16 internal_data/code_cache/templates/l3/s1/public/post_macros.php(146): XF\Template\Templater->renderExtension('user_cell', Array, Object(XF\Template\ExtensionSet))
#17 src/XF/Template/Templater.php(964): XF\Template\Templater->{closure}(Object(XENTR\RichUsername\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#18 src/XF/Template/Templater.php(900): XF\Template\Templater->renderExtensionInternal('full_body', Array, Array, Object(XF\Template\ExtensionSet))
#19 internal_data/code_cache/templates/l3/s1/public/post_macros.php(178): XF\Template\Templater->renderExtension('full_body', Array, Object(XF\Template\ExtensionSet))
#20 src/XF/Template/Templater.php(801): XF\Template\Templater->{closure}(Object(XENTR\RichUsername\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#21 internal_data/code_cache/templates/l3/s1/public/thread_view.php(802): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#22 src/XF/Template/Templater.php(1628): XF\Template\Templater->{closure}(Object(XENTR\RichUsername\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#23 src/addons/BR/ModernStatistic/XF/Template/Templater.php(27): XF\Template\Templater->renderTemplate('thread_view', Array, true)
#24 src/XF/Template/Template.php(24): BR\ModernStatistic\XF\Template\Templater->renderTemplate('public:thread_v...', Array)
#25 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#26 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#27 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#28 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#29 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#30 src/XF/App.php(2337): XF\Mvc\Dispatcher->run()
#31 src/XF.php(488): XF\App->run()
#32 index.php(20): XF::runApp('XF\\Pub\\App')
#33 {main}
[HEADING=2]Request state[/HEADING]
array(4) {
  ["url"] => string(21) "/forum/threads/31744/"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

[URL='https://www.uob-bh.com/forum/admin.php?logs/server-errors/4/delete'][/URL]


Code:
[LIST]
[*]ErrorException: Template error: [E_WARNING] Attempt to read property "user_id" on null
[*]src/addons/XenSoluce/UserMoodsManager/Listener.php:67
[*]Generated by: Unknown account
[*]25 Jun 2021 at 12:32 PM
[/LIST]
[HEADING=2]Stack trace[/HEADING]
#0 src/addons/XenSoluce/UserMoodsManager/Listener.php(67): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] Att...', '/home/user/p...', 67)
#1 [internal function]: XenSoluce\UserMoodsManager\Listener::templaterFnMoodsBannerUser(Object(XENTR\RichUsername\XF\Template\Templater), false, NULL, true)
#2 src/XF/Template/Templater.php(1105): call_user_func_array(Array, Array)
#3 internal_data/code_cache/templates/l3/s1/public/xs_umm_macros.php(29): XF\Template\Templater->func('moods_banner_us...', Array, false)
#4 src/XF/Template/Templater.php(1628): XF\Template\Templater->{closure}(Object(XENTR\RichUsername\XF\Template\Templater), Array, NULL)
#5 src/addons/BR/ModernStatistic/XF/Template/Templater.php(27): XF\Template\Templater->renderTemplate('xs_umm_macros', Array, true)
#6 src/XF/Template/Template.php(24): BR\ModernStatistic\XF\Template\Templater->renderTemplate('public:xs_umm_m...', Array)
#7 src/XF/Template/Template.php(31): XF\Template\Template->render()
#8 src/addons/XenSoluce/UserMoodsManager/XF/Template/Templater.php(16): XF\Template\Template->__toString()
#9 [internal function]: XenSoluce\UserMoodsManager\XF\Template\Templater->fnUserBanners(Object(XENTR\RichUsername\XF\Template\Templater), false, NULL, Array)
#10 src/XF/Template/Templater.php(1105): call_user_func_array(Array, Array)
#11 internal_data/code_cache/templates/l3/s1/public/message_macros.php(40): XF\Template\Templater->func('user_banners', Array)
#12 src/XF/Template/Templater.php(801): XF\Template\Templater->{closure}(Object(XENTR\RichUsername\XF\Template\Templater), Array, NULL)
#13 internal_data/code_cache/templates/l3/s1/public/post_macros.php(25): XF\Template\Templater->callMacro('message_macros', 'user_info', Array, Array)
#14 src/XF/Template/Templater.php(964): XF\Template\Templater->{closure}(Object(XENTR\RichUsername\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#15 src/XF/Template/Templater.php(900): XF\Template\Templater->renderExtensionInternal('user_cell', Array, Array, Object(XF\Template\ExtensionSet))
#16 internal_data/code_cache/templates/l3/s1/public/post_macros.php(146): XF\Template\Templater->renderExtension('user_cell', Array, Object(XF\Template\ExtensionSet))
#17 src/XF/Template/Templater.php(964): XF\Template\Templater->{closure}(Object(XENTR\RichUsername\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#18 src/XF/Template/Templater.php(900): XF\Template\Templater->renderExtensionInternal('full_body', Array, Array, Object(XF\Template\ExtensionSet))
#19 internal_data/code_cache/templates/l3/s1/public/post_macros.php(178): XF\Template\Templater->renderExtension('full_body', Array, Object(XF\Template\ExtensionSet))
#20 src/XF/Template/Templater.php(801): XF\Template\Templater->{closure}(Object(XENTR\RichUsername\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#21 internal_data/code_cache/templates/l3/s1/public/thread_view.php(802): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#22 src/XF/Template/Templater.php(1628): XF\Template\Templater->{closure}(Object(XENTR\RichUsername\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#23 src/addons/BR/ModernStatistic/XF/Template/Templater.php(27): XF\Template\Templater->renderTemplate('thread_view', Array, true)
#24 src/XF/Template/Template.php(24): BR\ModernStatistic\XF\Template\Templater->renderTemplate('public:thread_v...', Array)
#25 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#26 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#27 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#28 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#29 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#30 src/XF/App.php(2337): XF\Mvc\Dispatcher->run()
#31 src/XF.php(488): XF\App->run()
#32 index.php(20): XF::runApp('XF\\Pub\\App')
#33 {main}
[HEADING=2]Request state[/HEADING]
array(4) {
  ["url"] => string(21) "/forum/threads/31744/"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Top Bottom