[TH] Reactions [Deleted]

  • ErrorException: Template error: Template admin:widget_def_options_th_memberReact_reactions is unknown
  • src/XF/Template/Templater.php:564
  • Generated by: Zuse
  • Jan 26, 2018 at 11:42 PM
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Template admin:...', '/home/legendo1/...', 564, Array)
#1 src/XF/Template/Templater.php(564): trigger_error('Template admin:...', 512)
#2 src/XF/Template/Templater.php(519): XF\Template\Templater->getTemplateData('admin', 'widget_def_opti...')
#3 src/XF/Template/Templater.php(1229): XF\Template\Templater->getTemplateCode('admin', 'widget_def_opti...')
#4 src/XF/Widget/AbstractWidget.php(47): XF\Template\Templater->renderTemplate('widget_def_opti...', Array)
#5 src/XF/Entity/Widget.php(34): XF\Widget\AbstractWidget->renderOptions()
#6 [internal function]: XF\Entity\Widget->renderOptions()
#7 src/XF/Template/Templater.php(920): call_user_func_array(Array, Array)
#8 internal_data/code_cache/templates/l1/s0/admin/widget_edit.php(93): XF\Template\Templater->method(Object(XF\Entity\Widget), 'renderOptions', Array)
#9 src/XF/Template/Templater.php(1230): XF\Template\Templater->{closure}(Object(ThemeHouse\Reactions\XF\Template\Templater), Array)
#10 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('widget_edit', Array)
#11 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#12 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Html->renderView('XF:Widget\\Edit', 'admin:widget_ed...', Array)
#13 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#14 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#15 src/XF/App.php(1880): XF\Mvc\Dispatcher->run()
#16 src/XF.php(328): XF\App->run()
#17 admin.php(13): XF::runApp('XF\\Admin\\App')
#18 {main}
Request state
array(4) {
["url"] => string(56) "/admin.php?widgets/th-reactions-member-reactions.41/edit"
["referrer"] => string(43) "https://www.gnonline.net/admin.php?widgets/"
["_GET"] => array(1) {
["widgets/th-reactions-member-reactions_41/edit"] => string(0) ""
}
["_POST"] => array(0) {
}
}

This error is safe to ignore, looks like the options template for one of the widgets is missing, oddly enough there aren't actually any options for that widget so it'd just be an empty template anyways, and this error will only show up when editing that widget. We'll add in the empty template to resolve the error on the next update :)
 
Try running the "Convert Reactions to Likes" rebuilder

I get this error message after a few seconds:
  • TypeError: Argument 3 passed to XF\Repository\LikedContent::insertLike() must be an instance of XF\Entity\User, null given, called in /home/******/public_html/src/addons/ThemeHouse/Reactions/Entity/ReactedContent.php on line 143
  • src/XF/Repository/LikedContent.php:73
  • Generated by: ******
  • Jan 29, 2018 at 7:25 PM
Stack trace
#0 src/addons/ThemeHouse/Reactions/Entity/ReactedContent.php(143): XF\Repository\LikedContent->insertLike('post', 1023322, NULL, false)
#1 src/addons/ThemeHouse/Reactions/Job/ConvertLikeReaction.php(61): ThemeHouse\Reactions\Entity\ReactedContent->toggleLike(true)
#2 src/XF/Job/AbstractRebuildJob.php(47): ThemeHouse\Reactions\Job\ConvertLikeReaction->rebuildById(32831)
#3 src/XF/Job/Manager.php(241): XF\Job\AbstractRebuildJob->run(7.9999990463257)
#4 src/XF/Job/Manager.php(187): XF\Job\Manager->runJobInternal(Array, 7.9999990463257)
#5 src/XF/Job/Manager.php(103): XF\Job\Manager->runJobEntry(Array, 7.9999990463257)
#6 src/XF/Admin/Controller/Tools.php(120): XF\Job\Manager->runByIds(Array, 8)
#7 src/XF/Mvc/Dispatcher.php(249): XF\Admin\Controller\Tools->actionRunJob(Object(XF\Mvc\ParameterBag))
#8 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'RunJob', 'html', Object(XF\Mvc\ParameterBag), 'tools', Object(XF\Admin\Controller\Tools), NULL)
#9 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#10 src/XF/App.php(1880): XF\Mvc\Dispatcher->run()
#11 src/XF.php(328): XF\App->run()
#12 admin.php(13): XF::runApp('XF\\Admin\\App')
#13 {main}

Request state
array(4) {
["url"] => string(24) "/admin.php?tools/run-job"
["referrer"] => string(43) "https://www.sitename.com/admin.php?tools/run-job"
["_GET"] => array(1) {
["tools/run-job"] => string(0) ""
}
["_POST"] => array(3) {
["_xfRedirect"] => string(53) "https://www.sitename.com/admin.php?tools/rebuild&success=1"
["_xfToken"] => string(8) "********"
["only_ids"] => string(4) "1074"
}
}
 
Looks like an issue with guest content or content for a deleted user, thought this was fixed a while back, will have a look!
 
I get this error message after a few seconds:
  • TypeError: Argument 3 passed to XF\Repository\LikedContent::insertLike() must be an instance of XF\Entity\User, null given, called in /home/******/public_html/src/addons/ThemeHouse/Reactions/Entity/ReactedContent.php on line 143
  • src/XF/Repository/LikedContent.php:73
  • Generated by: ******
  • Jan 29, 2018 at 7:25 PM
Stack trace
#0 src/addons/ThemeHouse/Reactions/Entity/ReactedContent.php(143): XF\Repository\LikedContent->insertLike('post', 1023322, NULL, false)
#1 src/addons/ThemeHouse/Reactions/Job/ConvertLikeReaction.php(61): ThemeHouse\Reactions\Entity\ReactedContent->toggleLike(true)
#2 src/XF/Job/AbstractRebuildJob.php(47): ThemeHouse\Reactions\Job\ConvertLikeReaction->rebuildById(32831)
#3 src/XF/Job/Manager.php(241): XF\Job\AbstractRebuildJob->run(7.9999990463257)
#4 src/XF/Job/Manager.php(187): XF\Job\Manager->runJobInternal(Array, 7.9999990463257)
#5 src/XF/Job/Manager.php(103): XF\Job\Manager->runJobEntry(Array, 7.9999990463257)
#6 src/XF/Admin/Controller/Tools.php(120): XF\Job\Manager->runByIds(Array, 8)
#7 src/XF/Mvc/Dispatcher.php(249): XF\Admin\Controller\Tools->actionRunJob(Object(XF\Mvc\ParameterBag))
#8 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'RunJob', 'html', Object(XF\Mvc\ParameterBag), 'tools', Object(XF\Admin\Controller\Tools), NULL)
#9 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#10 src/XF/App.php(1880): XF\Mvc\Dispatcher->run()
#11 src/XF.php(328): XF\App->run()
#12 admin.php(13): XF::runApp('XF\\Admin\\App')
#13 {main}

Request state
array(4) {
["url"] => string(24) "/admin.php?tools/run-job"
["referrer"] => string(43) "https://www.sitename.com/admin.php?tools/run-job"
["_GET"] => array(1) {
["tools/run-job"] => string(0) ""
}
["_POST"] => array(3) {
["_xfRedirect"] => string(53) "https://www.sitename.com/admin.php?tools/rebuild&success=1"
["_xfToken"] => string(8) "********"
["only_ids"] => string(4) "1074"
}
}
I'll get this fixed and pushed out in the next update!
 
Is there a way to make the reaction meun fixed instead of animated sliding? Some users don't have the privilege to rate content beside Like so what is the point of clicking twice?
 
This definitely will be built, but currently we're waiting on XenForo to build their importer framework into xf2 so this becomes possible to do :)
If I'm going to buy and use this addon starting today, will I still be able to import the past ratings, after XF will release the importer?
Or better wait until the addon will be compatible with past ratings?
 
If I'm going to buy and use this addon starting today, will I still be able to import the past ratings, after XF will release the importer?
Or better wait until the addon will be compatible with past ratings?

The importer for post ratings was released quite some time ago :)
 
Purchased, testing it on my localhost, and I got an error while importing.

Solved
 
Last edited:
While in the importer, [TH] Reactions did not recognize a reaction I had defined in XF1.
Since the importer did not recognize it, I did not map it to anything, and ran the importer = error.

A few minutes later, I've redone all the steps, but this time I've mapped a random reaction to it, ran the importer without errors.
 
Nice add-on. Want to let you know I left a misinformed review claiming you couldn't use your existing 'Likes' with this system -- that is not the case.

Is it possible to remove the bar from the user bit? I tried commenting it in th_display_reactions. It worked, but I got lots of server errors (I guess trying to now call a non-existing function?).
1517569771321.webp
 
  • Like
Reactions: nap
Top Bottom