XF 2.1 Alert error but only for one member

StryGuardian

Active member
I upgraded my forum to 2.1 and disabled most non-essential addons. There are 4 members of the forum right now, as we have not yet promoted the forum. However, all members except one are able to view their alerts. One member, when attempting to view their alerts, receives the "Oops" error message.

This is the server error I get when this happens.

Code:
TypeError: Argument 3 passed to XF\Template\Templater::fnReaction() must be of the type array, integer given src/XF/Template/Templater.php:3094
Generated by: Runner Jan 31, 2019 at 9:58 PM
Stack trace
#0 [internal function]: XF\Template\Templater->fnReaction(Object(XF\Template\Templater), true, 2, 'alert')
#1 src/XF/Template/Templater.php(915): call_user_func_array(Array, Array)
#2 internal_data/code_cache/templates/l1/s9/public/alert_profile_post_react.php(12): XF\Template\Templater->fn('reaction', Array, true)
#3 src/XF/Template/Templater.php(1294): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array)
#4 src/XF/Alert/AbstractHandler.php(80): XF\Template\Templater->renderTemplate('alert_profile_p...', Array)
#5 src/XF/Entity/UserAlert.php(69): XF\Alert\AbstractHandler->render(Object(XF\Entity\UserAlert))
#6 [internal function]: XF\Entity\UserAlert->render()
#7 src/XF/Template/Templater.php(978): call_user_func_array(Array, Array)
#8 internal_data/code_cache/templates/l1/s9/public/alert_macros.php(18): XF\Template\Templater->method(Object(XF\Entity\UserAlert), 'render', Array)
#9 src/XF/Template/Templater.php(694): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Array)
#10 internal_data/code_cache/templates/l1/s9/public/account_alerts_popup.php(18): XF\Template\Templater->callMacro('alert_macros', 'row', Array, Array)
#11 src/XF/Template/Templater.php(1294): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array)
#12 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('account_alerts_...', Array)
#13 src/XF/Mvc/Renderer/Json.php(84): XF\Template\Template->render()
#14 src/XF/Mvc/Renderer/Json.php(68): XF\Mvc\Renderer\Json->renderHtmlFallback('XF:Account\\Aler...', 'public:account_...', Array)
#15 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Json->renderView('XF:Account\\Aler...', 'public:account_...', Array)
#16 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#17 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#18 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#19 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#20 src/XF.php(390): XF\App->run()
#21 index.php(20): XF::runApp('XF\\Pub\\App')
#22 {main}
Request state
array(4) {
  ["url"] => string(145) "/account/alerts-popup?_xfRequestUri=%2F&_xfWithData=1&_xfToken=1548993459%2Cf5591359ca40d749dbeafaf37e8a49ce&_xfResponseType=json&_=1548993459739"
  ["referrer"] => string(23) "https://flixforums.com/"
  ["_GET"] => array(5) {
    ["_xfRequestUri"] => string(1) "/"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(43) "1548993459,f5591359ca40d749dbeafaf37e8a49ce"
    ["_xfResponseType"] => string(4) "json"
    ["_"] => string(13) "1548993459739"
  }
  ["_POST"] => array(0) {
  }
}

Any ideas?
 
I am getting this server error when any user clicks "Latest Activity" in a user's profile. It happens even when you click your own profile.

Code:
TypeError: Argument 3 passed to XF\Template\Templater::fnReaction() must be of the type array, integer given src/XF/Template/Templater.php:3094
Generated by: StryGuardian Jan 31, 2019 at 10:06 PM
Stack trace
#0 [internal function]: XF\Template\Templater->fnReaction(Object(XF\Template\Templater), true, 2, 'newsfeed')
#1 src/XF/Template/Templater.php(915): call_user_func_array(Array, Array)
#2 internal_data/code_cache/templates/l1/s9/public/news_feed_item_profile_post_react.php(24): XF\Template\Templater->fn('reaction', Array, true)
#3 src/XF/Template/Templater.php(1294): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array)
#4 src/XF/NewsFeed/AbstractHandler.php(102): XF\Template\Templater->renderTemplate('news_feed_item_...', Array)
#5 src/XF/Entity/NewsFeed.php(79): XF\NewsFeed\AbstractHandler->render(Object(XF\Entity\NewsFeed))
#6 [internal function]: XF\Entity\NewsFeed->render()
#7 src/XF/Template/Templater.php(978): call_user_func_array(Array, Array)
#8 internal_data/code_cache/templates/l1/s9/public/news_feed_macros.php(34): XF\Template\Templater->method(Object(XF\Entity\NewsFeed), 'render', Array)
#9 src/XF/Template/Templater.php(694): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Array)
#10 internal_data/code_cache/templates/l1/s9/public/news_feed_macros.php(14): XF\Template\Templater->callMacro('news_feed_macro...', 'feed_item', Array, Array)
#11 src/XF/Template/Templater.php(694): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Array)
#12 internal_data/code_cache/templates/l1/s9/public/member_latest_activity.php(34): XF\Template\Templater->callMacro('news_feed_macro...', 'feed_row', Array, Array)
#13 src/XF/Template/Templater.php(1294): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array)
#14 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('member_latest_a...', Array)
#15 src/XF/Mvc/Renderer/Json.php(84): XF\Template\Template->render()
#16 src/XF/Mvc/Renderer/Json.php(68): XF\Mvc\Renderer\Json->renderHtmlFallback('XF:Member\\Lates...', 'public:member_l...', Array)
#17 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Json->renderView('XF:Member\\Lates...', 'public:member_l...', Array)
#18 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#19 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#20 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#21 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#22 src/XF.php(390): XF\App->run()
#23 index.php(20): XF::runApp('XF\\Pub\\App')
#24 {main}
Request state
array(4) {
  ["url"] => string(174) "/members/stryguardian.1/latest-activity?_xfRequestUri=%2Fmembers%2Fstryguardian.1%2F&_xfWithData=1&_xfToken=1548993981%2C5d147f9bba904b1577cf17d2c8baeea2&_xfResponseType=json"
  ["referrer"] => string(46) "https://flixforums.com/members/stryguardian.1/"
  ["_GET"] => array(4) {
    ["_xfRequestUri"] => string(24) "/members/stryguardian.1/"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(43) "1548993981,5d147f9bba904b1577cf17d2c8baeea2"
    ["_xfResponseType"] => string(4) "json"
  }
  ["_POST"] => array(0) {
  }
}
 
Based on the template name in the trace -- which ends in "react" instead of "reaction" -- this is coming from alerts/news feed entries from a third-party reaction add-on that appears to have conflicts with the 2.1 version of reactions.

They may have an updated version that would resolve the issues. Alternatively, they may be able to help you remove the alerts/news feed entries generated by the add-on to prevent the errors.
 
Back
Top Bottom