• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
[TH] Reactions

[TH] Reactions [Paid] 1.0.5 Patch Level 4

No permission to buy ($35.00)

Nirjonadda

Well-known member
Getting error from "Convert likes to reactions".

Code:
InvalidArgumentException: No entity found for 'profile_post_comment' with ID 11 in src/addons/ThemeHouse/Reactions/Repository/ReactedContent.php at line 236

ThemeHouse\Reactions\Repository\ReactedContent->rebuildContentReactCache() in src/addons/ThemeHouse/Reactions/Entity/ReactedContent.php at line 209

ThemeHouse\Reactions\Entity\ReactedContent->rebuildContentReactCache() in src/addons/ThemeHouse/Reactions/Entity/ReactedContent.php at line 108

ThemeHouse\Reactions\Entity\ReactedContent->_postSave() in src/XF/Mvc/Entity/Entity.php at line 1137

XF\Mvc\Entity\Entity->save() in src/addons/ThemeHouse/Reactions/Repository/ReactedContent.php at line 197

ThemeHouse\Reactions\Repository\ReactedContent->convertLikeToReaction() in src/addons/ThemeHouse/Reactions/Job/ConvertLike.php at line 61

ThemeHouse\Reactions\Job\ConvertLike->rebuildById() in src/XF/Job/AbstractRebuildJob.php at line 47

XF\Job\AbstractRebuildJob->run() in src/XF/Job/Manager.php at line 241

XF\Job\Manager->runJobInternal() in src/XF/Job/Manager.php at line 187

XF\Job\Manager->runJobEntry() in src/XF/Job/Manager.php at line 103

XF\Job\Manager->runByIds() in src/XF/Admin/Controller/Tools.php at line 120

XF\Admin\Controller\Tools->actionRunJob() in src/XF/Mvc/Dispatcher.php at line 249

XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 88

XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41

XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1879

XF\App->run() in src/XF.php at line 328

XF::runApp() in admin.php at line 13

Code:
InvalidArgumentException: No entity found for 'profile_post_comment' with ID 11 src/addons/ThemeHouse/Reactions/Repository/ReactedContent.php:236

Generated by: Nirjon Dec 5, 2017 at 3:14 PM

Stack trace

#0 src/addons/ThemeHouse/Reactions/Entity/ReactedContent.php(209): ThemeHouse\Reactions\Repository\ReactedContent->rebuildContentReactCache('profile_post_co...', 11, 2)

#1 src/addons/ThemeHouse/Reactions/Entity/ReactedContent.php(108): ThemeHouse\Reactions\Entity\ReactedContent->rebuildContentReactCache()

#2 src/XF/Mvc/Entity/Entity.php(1137): ThemeHouse\Reactions\Entity\ReactedContent->_postSave()

#3 src/addons/ThemeHouse/Reactions/Repository/ReactedContent.php(197): XF\Mvc\Entity\Entity->save()

#4 src/addons/ThemeHouse/Reactions/Job/ConvertLike.php(61): ThemeHouse\Reactions\Repository\ReactedContent->convertLikeToReaction(Object(DBTech\Credits\XF\Entity\LikedContent))

#5 src/XF/Job/AbstractRebuildJob.php(47): ThemeHouse\Reactions\Job\ConvertLike->rebuildById(585661)

#6 src/XF/Job/Manager.php(241): XF\Job\AbstractRebuildJob->run(99.999999046326)

#7 src/XF/Job/Manager.php(187): XF\Job\Manager->runJobInternal(Array, 99.999999046326)

#8 src/XF/Job/Manager.php(103): XF\Job\Manager->runJobEntry(Array, 99.999999046326)

#9 src/XF/Admin/Controller/Tools.php(120): XF\Job\Manager->runByIds(Array, 100)

#10 src/XF/Mvc/Dispatcher.php(249): XF\Admin\Controller\Tools->actionRunJob(Object(XF\Mvc\ParameterBag))

#11 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)

#12 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))

#13 src/XF/App.php(1879): XF\Mvc\Dispatcher->run()

#14 src/XF.php(328): XF\App->run()

#15 admin.php(13): XF::runApp('XF\\Admin\\App')

#16 {main}

Request state

array(4) {

  ["url"] => string(24) "/admin.php?tools/run-job"

  ["referrer"] => string(50) "/admin.php?tools/run-job"

  ["_GET"] => array(1) {

    ["tools/run-job"] => string(0) ""

  }

  ["_POST"] => array(3) {

    ["_xfRedirect"] => string(60) "/admin.php?tools/rebuild&success=1"

    ["_xfToken"] => string(8) "********"

    ["only_ids"] => string(2) "56"

  }

}
 

Ranger375

Well-known member
Receiving the following error when running the Importer. I cancelled and tried again. It seems to fail around 8%.

Code:
InvalidArgumentException: Attempted to convert NULL to integer [content_user_id] in src/XF/Import/Data/EntityEmulator.php at line 79

XF\Import\Data\EntityEmulator->set() in src/XF/Import/Data/AbstractEmulatedData.php at line 24

XF\Import\Data\AbstractEmulatedData->set() in src/XF/Import/Data/AbstractData.php at line 70

XF\Import\Data\AbstractData->bulkSet() in src/addons/ThemeHouse/Reactions/Import/Importer/DarkPostRatings.php at line 157

ThemeHouse\Reactions\Import\Importer\DarkPostRatings->setupImportReactedContent() in src/addons/ThemeHouse/Reactions/Import/Importer/DarkPostRatings.php at line 128

ThemeHouse\Reactions\Import\Importer\DarkPostRatings->stepReactedContent() in src/XF/Import/Runner.php at line 161

XF\Import\Runner->runStep() in src/XF/Import/Runner.php at line 75

XF\Import\Runner->run() in src/XF/Admin/Controller/Import.php at line 231

XF\Admin\Controller\Import->actionRun() in src/XF/Mvc/Dispatcher.php at line 249

XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 89

XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41

XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1879

XF\App->run() in src/XF.php at line 328

XF::runApp() in admin.php at line 13
Any suggestions are greatly appreciated.
I have the same issue.
 

Jake B.

Well-known member
Getting error from "Convert likes to reactions".

Code:
InvalidArgumentException: No entity found for 'profile_post_comment' with ID 11 in src/addons/ThemeHouse/Reactions/Repository/ReactedContent.php at line 236

ThemeHouse\Reactions\Repository\ReactedContent->rebuildContentReactCache() in src/addons/ThemeHouse/Reactions/Entity/ReactedContent.php at line 209

ThemeHouse\Reactions\Entity\ReactedContent->rebuildContentReactCache() in src/addons/ThemeHouse/Reactions/Entity/ReactedContent.php at line 108

ThemeHouse\Reactions\Entity\ReactedContent->_postSave() in src/XF/Mvc/Entity/Entity.php at line 1137

XF\Mvc\Entity\Entity->save() in src/addons/ThemeHouse/Reactions/Repository/ReactedContent.php at line 197

ThemeHouse\Reactions\Repository\ReactedContent->convertLikeToReaction() in src/addons/ThemeHouse/Reactions/Job/ConvertLike.php at line 61

ThemeHouse\Reactions\Job\ConvertLike->rebuildById() in src/XF/Job/AbstractRebuildJob.php at line 47

XF\Job\AbstractRebuildJob->run() in src/XF/Job/Manager.php at line 241

XF\Job\Manager->runJobInternal() in src/XF/Job/Manager.php at line 187

XF\Job\Manager->runJobEntry() in src/XF/Job/Manager.php at line 103

XF\Job\Manager->runByIds() in src/XF/Admin/Controller/Tools.php at line 120

XF\Admin\Controller\Tools->actionRunJob() in src/XF/Mvc/Dispatcher.php at line 249

XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 88

XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41

XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1879

XF\App->run() in src/XF.php at line 328

XF::runApp() in admin.php at line 13

Code:
InvalidArgumentException: No entity found for 'profile_post_comment' with ID 11 src/addons/ThemeHouse/Reactions/Repository/ReactedContent.php:236

Generated by: Nirjon Dec 5, 2017 at 3:14 PM

Stack trace

#0 src/addons/ThemeHouse/Reactions/Entity/ReactedContent.php(209): ThemeHouse\Reactions\Repository\ReactedContent->rebuildContentReactCache('profile_post_co...', 11, 2)

#1 src/addons/ThemeHouse/Reactions/Entity/ReactedContent.php(108): ThemeHouse\Reactions\Entity\ReactedContent->rebuildContentReactCache()

#2 src/XF/Mvc/Entity/Entity.php(1137): ThemeHouse\Reactions\Entity\ReactedContent->_postSave()

#3 src/addons/ThemeHouse/Reactions/Repository/ReactedContent.php(197): XF\Mvc\Entity\Entity->save()

#4 src/addons/ThemeHouse/Reactions/Job/ConvertLike.php(61): ThemeHouse\Reactions\Repository\ReactedContent->convertLikeToReaction(Object(DBTech\Credits\XF\Entity\LikedContent))

#5 src/XF/Job/AbstractRebuildJob.php(47): ThemeHouse\Reactions\Job\ConvertLike->rebuildById(585661)

#6 src/XF/Job/Manager.php(241): XF\Job\AbstractRebuildJob->run(99.999999046326)

#7 src/XF/Job/Manager.php(187): XF\Job\Manager->runJobInternal(Array, 99.999999046326)

#8 src/XF/Job/Manager.php(103): XF\Job\Manager->runJobEntry(Array, 99.999999046326)

#9 src/XF/Admin/Controller/Tools.php(120): XF\Job\Manager->runByIds(Array, 100)

#10 src/XF/Mvc/Dispatcher.php(249): XF\Admin\Controller\Tools->actionRunJob(Object(XF\Mvc\ParameterBag))

#11 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)

#12 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))

#13 src/XF/App.php(1879): XF\Mvc\Dispatcher->run()

#14 src/XF.php(328): XF\App->run()

#15 admin.php(13): XF::runApp('XF\\Admin\\App')

#16 {main}

Request state

array(4) {

  ["url"] => string(24) "/admin.php?tools/run-job"

  ["referrer"] => string(50) "/admin.php?tools/run-job"

  ["_GET"] => array(1) {

    ["tools/run-job"] => string(0) ""

  }

  ["_POST"] => array(3) {

    ["_xfRedirect"] => string(60) "/admin.php?tools/rebuild&success=1"

    ["_xfToken"] => string(8) "********"

    ["only_ids"] => string(2) "56"

  }

}
Looks like for some reason the likes associated with a deleted profile post weren't removed when the profile post was, I'll have to add in something to check for this

Thanks for the reply - however I get this issue:

View attachment 163298
Will have to look into this, not sure why content_user_id for something would ever be null, however
 

Nirjonadda

Well-known member
Looks like for some reason the likes associated with a deleted profile post weren't removed when the profile post was, I'll have to add in something to check for this
Also I am getting lot of Server error logs about ErrorException: [E_NOTICE] Trying to get property of non-object src/addons/ThemeHouse/Reactions/Entity/ReactedContent.php:193

Code:
ErrorException: [E_NOTICE] Trying to get property of non-object src/addons/ThemeHouse/Reactions/Entity/ReactedContent.php:193

Generated by: Nirjon Dec 5, 2017 at 3:12 PM

Stack trace

#0 src/addons/ThemeHouse/Reactions/Entity/ReactedContent.php(193): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/home/nadda/pub...', 193, Array)

#1 src/addons/ThemeHouse/Reactions/Entity/ReactedContent.php(158): ThemeHouse\Reactions\Entity\ReactedContent->adjustUserReactCount(2, 1)

#2 src/addons/ThemeHouse/Reactions/Entity/ReactedContent.php(90): ThemeHouse\Reactions\Entity\ReactedContent->adjustReactCount(14416, 1489, 2, 1271107, 'post', 1)

#3 src/XF/Mvc/Entity/Entity.php(1137): ThemeHouse\Reactions\Entity\ReactedContent->_postSave()

#4 src/addons/ThemeHouse/Reactions/Repository/ReactedContent.php(197): XF\Mvc\Entity\Entity->save()

#5 src/addons/ThemeHouse/Reactions/Job/ConvertLike.php(61): ThemeHouse\Reactions\Repository\ReactedContent->convertLikeToReaction(Object(DBTech\Credits\XF\Entity\LikedContent))

#6 src/XF/Job/AbstractRebuildJob.php(47): ThemeHouse\Reactions\Job\ConvertLike->rebuildById(583312)

#7 src/XF/Job/Manager.php(241): XF\Job\AbstractRebuildJob->run(100)

#8 src/XF/Job/Manager.php(187): XF\Job\Manager->runJobInternal(Array, 100)

#9 src/XF/Job/Manager.php(103): XF\Job\Manager->runJobEntry(Array, 100)

#10 src/XF/Admin/Controller/Tools.php(120): XF\Job\Manager->runByIds(Array, 100)

#11 src/XF/Mvc/Dispatcher.php(249): XF\Admin\Controller\Tools->actionRunJob(Object(XF\Mvc\ParameterBag))

#12 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)

#13 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))

#14 src/XF/App.php(1879): XF\Mvc\Dispatcher->run()

#15 src/XF.php(328): XF\App->run()

#16 admin.php(13): XF::runApp('XF\\Admin\\App')

#17 {main}

Request state

array(4) {

  ["url"] => string(24) "/admin.php?tools/run-job"

  ["referrer"] => string(50) "/admin.php?tools/run-job"

  ["_GET"] => array(1) {

    ["tools/run-job"] => string(0) ""

  }

  ["_POST"] => array(3) {

    ["_xfRedirect"] => string(60) "/admin.php?tools/rebuild&success=1"

    ["_xfToken"] => string(8) "********"

    ["only_ids"] => string(2) "56"

  }

}
 

Nirjonadda

Well-known member
@Mike Creuzer @Jake B. Does this add-on Improved compatibility with PHP 7.2 ? I am getting lot of Server error log.

Code:
Server error log

ErrorException: Template error: count(): Parameter must be an array or an object that implements Countable src/addons/ThemeHouse/Reactions/XF/Template/Templater.php:126

Generated by: Unknown account Dec 6, 2017 at 6:20 PM

Stack trace

#0 [internal function]: XF\Template\Templater->handleTemplateError(2, 'count(): Parame...', '/home/nadda/pub...', 126, Array)

#1 src/addons/ThemeHouse/Reactions/XF/Template/Templater.php(126): count(NULL)

#2 [internal function]: ThemeHouse\Reactions\XF\Template\Templater->fnReactionContentList(Object(ThemeHouse\Reactions\XF\Template\Templater), false, Object(haydric\toRights\XF\Entity\Post), NULL, Array, true, '3')

#3 src/XF/Template/Templater.php(861): call_user_func_array(Array, Array)

#4 internal_data/code_cache/templates/l1/s22/public/th_display_reactions.php(28): XF\Template\Templater->fn('reaction_conten...', Array, false)

#5 src/XF/Template/Templater.php(643): XF\Template\Templater->{closure}(Object(ThemeHouse\Reactions\XF\Template\Templater), Array, Array)

#6 internal_data/code_cache/templates/l1/s22/public/post_macros.php(435): XF\Template\Templater->callMacro('th_display_reac...', 'reactions_bar', Array, Array)

#7 src/XF/Template/Templater.php(643): XF\Template\Templater->{closure}(Object(ThemeHouse\Reactions\XF\Template\Templater), Array, Array)

#8 internal_data/code_cache/templates/l1/s22/public/thread_view.php(531): XF\Template\Templater->callMacro('post_macros', 'post', Array, 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('thread_view', 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:Thread\\View', 'public:thread_v...', 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(1879): XF\Mvc\Dispatcher->run()

#16 src/XF.php(328): XF\App->run()

#17 index.php(13): XF::runApp('XF\\Pub\\App')

#18 {main}

Request state

array(4) {

  ["url"] => string(15) "/threads/62195/"

  ["referrer"] => string(54) "/forums/collected-chti.111/"

  ["_GET"] => array(0) {

  }

  ["_POST"] => array(0) {

  }

}
 

Jake B.

Well-known member
@Mike Creuzer @Jake B. Does this add-on Improved compatibility with PHP 7.2 ? I am getting lot of Server error log.

Code:
Server error log

ErrorException: Template error: count(): Parameter must be an array or an object that implements Countable src/addons/ThemeHouse/Reactions/XF/Template/Templater.php:126

Generated by: Unknown account Dec 6, 2017 at 6:20 PM

Stack trace

#0 [internal function]: XF\Template\Templater->handleTemplateError(2, 'count(): Parame...', '/home/nadda/pub...', 126, Array)

#1 src/addons/ThemeHouse/Reactions/XF/Template/Templater.php(126): count(NULL)

#2 [internal function]: ThemeHouse\Reactions\XF\Template\Templater->fnReactionContentList(Object(ThemeHouse\Reactions\XF\Template\Templater), false, Object(haydric\toRights\XF\Entity\Post), NULL, Array, true, '3')

#3 src/XF/Template/Templater.php(861): call_user_func_array(Array, Array)

#4 internal_data/code_cache/templates/l1/s22/public/th_display_reactions.php(28): XF\Template\Templater->fn('reaction_conten...', Array, false)

#5 src/XF/Template/Templater.php(643): XF\Template\Templater->{closure}(Object(ThemeHouse\Reactions\XF\Template\Templater), Array, Array)

#6 internal_data/code_cache/templates/l1/s22/public/post_macros.php(435): XF\Template\Templater->callMacro('th_display_reac...', 'reactions_bar', Array, Array)

#7 src/XF/Template/Templater.php(643): XF\Template\Templater->{closure}(Object(ThemeHouse\Reactions\XF\Template\Templater), Array, Array)

#8 internal_data/code_cache/templates/l1/s22/public/thread_view.php(531): XF\Template\Templater->callMacro('post_macros', 'post', Array, 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('thread_view', 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:Thread\\View', 'public:thread_v...', 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(1879): XF\Mvc\Dispatcher->run()

#16 src/XF.php(328): XF\App->run()

#17 index.php(13): XF::runApp('XF\\Pub\\App')

#18 {main}

Request state

array(4) {

  ["url"] => string(15) "/threads/62195/"

  ["referrer"] => string(54) "/forums/collected-chti.111/"

  ["_GET"] => array(0) {

  }

  ["_POST"] => array(0) {

  }

}
Can you try opening src/addons/ThemeHouse/Reactions/XF/Template/Templater.php and find if (count($contentReactions) == 0) {
and replace it with if (empty($contentReactions)) { to see if that fixes your issue?
 

Nirjonadda

Well-known member
Can you try opening src/addons/ThemeHouse/Reactions/XF/Template/Templater.php and find if (count($contentReactions) == 0) {
and replace it with if (empty($contentReactions)) { to see if that fixes your issue?
Yes this error fixed but Still are not get working the Can remove own reacts set to No but still showing Undo Reactions button. What the fix for this issue?

 

Jake B.

Well-known member
That permission wasn't even supposed to exist as it had never gotten implemented and I thought it had gotten deleted. I don't think removing the ability to remove a reaction is all that useful (XenForo's like system doesn't have a way to block you from removing your reactions either), but if it's something you need we can look into implementing it
 

Nirjonadda

Well-known member
That permission wasn't even supposed to exist as it had never gotten implemented and I thought it had gotten deleted. I don't think removing the ability to remove a reaction is all that useful (XenForo's like system doesn't have a way to block you from removing your reactions either), but if it's something you need we can look into implementing it
Yes please look into this functionality implement ... (y)
 
Guys, I have been confused as to why I am not receiving alert notifications for a Liked Resource and it turns it out, this has something to do with this add-on, as when disabled it works fine. Any ideas why? I did look in the options for this add-on and could not see an option for Liked Resources, so could be that? Thanks.
 
Guys, I have been confused as to why I am not receiving alert notifications for a Liked Resource and it turns it out, this has something to do with this add-on, as when disabled it works fine. Any ideas why? I did look in the options for this add-on and could not see an option for Liked Resources, so could be that? Thanks.
The add-on doesnt work with xfmg or xf resources as far as I know.