Trophy Essentials

Trophy Essentials [Paid] 1.0.5

No permission to buy (£30.00)
I got 3 of these errors:

PHP:
Server error log
TypeError: M2N\TrophyEssentials\Repository\CumulativeTrophy::logCumulativeTrophyAction(): Argument #2 ($user) must be of type XF\Entity\User, null given, called in /home/nginx/domains/xf.com/public/src/addons/M2N/TrophyEssentials/XF/Entity/Thread.php on line 105 src/addons/M2N/TrophyEssentials/Repository/CumulativeTrophy.php:338
Generated by: User Jul 31, 2023 at 12:39 PM

Stack trace
#0 src/addons/M2N/TrophyEssentials/XF/Entity/Thread.php(105): M2N\TrophyEssentials\Repository\CumulativeTrophy::logCumulativeTrophyAction('m2n_post_reply', NULL, true)
#1 src/XF/Entity/Post.php(637): M2N\TrophyEssentials\XF\Entity\Thread->postRemoved(Object(XFMG\XF\Entity\Post))
#2 src/XF/Entity/Post.php(582): XF\Entity\Post->updateThreadRecord()
#3 src/addons/DigitalPoint/Cloudflare/XF/Entity/Post.php(9): XF\Entity\Post->_postSave()
#4 src/addons/XFES/XF/Entity/Post.php(9): DigitalPoint\Cloudflare\XF\Entity\Post->_postSave()
#5 src/XF/Mvc/Entity/Entity.php(1277): XFES\XF\Entity\Post->_postSave()
#6 src/XF/Entity/Post.php(882): XF\Mvc\Entity\Entity->save(true, false)
#7 src/XF/Service/Post/Deleter.php(81): XF\Entity\Post->softDelete('', Object(OzzModz\EmailWhitelist\XF\Entity\User))
#8 src/XF/Pub/Controller/Post.php(270): XF\Service\Post\Deleter->delete('soft', '')
#9 src/XF/Mvc/Dispatcher.php(352): XF\Pub\Controller\Post->actionDelete(Object(XF\Mvc\ParameterBag))
#10 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Post', 'Delete', Object(XF\Mvc\RouteMatch), Object(XenConcept\HideBBCode\XF\Pub\Controller\Post), NULL)
#11 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XenConcept\HideBBCode\XF\Pub\Controller\Post), NULL)
#12 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#13 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
#14 src/XF.php(524): XF\App->run()
#15 index.php(20): XF::runApp('XF\\Pub\\App')
#16 {main}

Request state
array(4) {
  ["url"] => string(22) "/posts/24314932/delete"
  ["referrer"] => string(74) "https://xf.com/threads/title.1498858/"
  ["_GET"] => array(1) {
    ["/posts/24314932/delete"] => string(0) ""
  }
  ["_POST"] => array(7) {
    ["_xfToken"] => string(8) "********"
    ["reason"] => string(0) ""
    ["hard_delete"] => string(1) "0"
    ["_xfRedirect"] => string(74) "https://xf.com/threads/title.1498858/"
    ["_xfRequestUri"] => string(54) "/threads/title.1498858/"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
I got 3 of these errors:

PHP:
Server error log
TypeError: M2N\TrophyEssentials\Repository\CumulativeTrophy::logCumulativeTrophyAction(): Argument #2 ($user) must be of type XF\Entity\User, null given, called in /home/nginx/domains/xf.com/public/src/addons/M2N/TrophyEssentials/XF/Entity/Thread.php on line 105 src/addons/M2N/TrophyEssentials/Repository/CumulativeTrophy.php:338
Generated by: User Jul 31, 2023 at 12:39 PM

Stack trace
#0 src/addons/M2N/TrophyEssentials/XF/Entity/Thread.php(105): M2N\TrophyEssentials\Repository\CumulativeTrophy::logCumulativeTrophyAction('m2n_post_reply', NULL, true)
#1 src/XF/Entity/Post.php(637): M2N\TrophyEssentials\XF\Entity\Thread->postRemoved(Object(XFMG\XF\Entity\Post))
#2 src/XF/Entity/Post.php(582): XF\Entity\Post->updateThreadRecord()
#3 src/addons/DigitalPoint/Cloudflare/XF/Entity/Post.php(9): XF\Entity\Post->_postSave()
#4 src/addons/XFES/XF/Entity/Post.php(9): DigitalPoint\Cloudflare\XF\Entity\Post->_postSave()
#5 src/XF/Mvc/Entity/Entity.php(1277): XFES\XF\Entity\Post->_postSave()
#6 src/XF/Entity/Post.php(882): XF\Mvc\Entity\Entity->save(true, false)
#7 src/XF/Service/Post/Deleter.php(81): XF\Entity\Post->softDelete('', Object(OzzModz\EmailWhitelist\XF\Entity\User))
#8 src/XF/Pub/Controller/Post.php(270): XF\Service\Post\Deleter->delete('soft', '')
#9 src/XF/Mvc/Dispatcher.php(352): XF\Pub\Controller\Post->actionDelete(Object(XF\Mvc\ParameterBag))
#10 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Post', 'Delete', Object(XF\Mvc\RouteMatch), Object(XenConcept\HideBBCode\XF\Pub\Controller\Post), NULL)
#11 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XenConcept\HideBBCode\XF\Pub\Controller\Post), NULL)
#12 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#13 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
#14 src/XF.php(524): XF\App->run()
#15 index.php(20): XF::runApp('XF\\Pub\\App')
#16 {main}

Request state
array(4) {
  ["url"] => string(22) "/posts/24314932/delete"
  ["referrer"] => string(74) "https://xf.com/threads/title.1498858/"
  ["_GET"] => array(1) {
    ["/posts/24314932/delete"] => string(0) ""
  }
  ["_POST"] => array(7) {
    ["_xfToken"] => string(8) "********"
    ["reason"] => string(0) ""
    ["hard_delete"] => string(1) "0"
    ["_xfRedirect"] => string(74) "https://xf.com/threads/title.1498858/"
    ["_xfRequestUri"] => string(54) "/threads/title.1498858/"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
Thank you. Investigating.
 
  • Like
Reactions: rdn
hello, I have an issue of compatibility with this add-on:

When a user posts as anonynous (it should not count any trophy) there is an error, and the user cannot post:
Screenshot 2023-10-03 at 13.31.58.webp

And in the admin panel here is the error code:
PHP:
TypeError: M2N\TrophyEssentials\Repository\CumulativeTrophy::logCumulativeTrophyAction(): Argument #2 ($user) must be of type XF\Entity\User, null given, called in /home/airbaltic/public_html/src/addons/M2N/TrophyEssentials/XF/Entity/Thread.php on line 78
src/addons/M2N/TrophyEssentials/Repository/CumulativeTrophy.php:338
Generated by: sfj
Oct 3, 2023 at 12:31 PM

Stack trace
#0 src/addons/M2N/TrophyEssentials/XF/Entity/Thread.php(78): M2N\TrophyEssentials\Repository\CumulativeTrophy::logCumulativeTrophyAction('m2n_post_reply', NULL)
#1 src/addons/Truonglv/AnonymousPosting/XF/Entity/Thread.php(85): M2N\TrophyEssentials\XF\Entity\Thread->postAdded(Object(Truonglv\AnonymousPosting\XF\Entity\Post))
#2 src/XF/Entity/Post.php(632): Truonglv\AnonymousPosting\XF\Entity\Thread->postAdded(Object(Truonglv\AnonymousPosting\XF\Entity\Post))
#3 src/XF/Entity/Post.php(582): XF\Entity\Post->updateThreadRecord()
#4 src/addons/XFES/XF/Entity/Post.php(9): XF\Entity\Post->_postSave()
#5 src/addons/Truonglv/AnonymousPosting/XF/Entity/Post.php(250): XFES\XF\Entity\Post->_postSave()
#6 src/XF/Mvc/Entity/Entity.php(1277): Truonglv\AnonymousPosting\XF\Entity\Post->_postSave()
#7 src/XF/Service/Thread/Replier.php(214): XF\Mvc\Entity\Entity->save(true, false)
#8 src/addons/DigitalPoint/Analytics/XF/Service/Thread/Replier.php(9): XF\Service\Thread\Replier->_save()
#9 src/XF/Service/ValidateAndSavableTrait.php(42): DigitalPoint\Analytics\XF\Service\Thread\Replier->_save()
#10 src/XF/Pub/Controller/Thread.php(616): XF\Service\Thread\Replier->save()
#11 src/XF/Mvc/Dispatcher.php(352): XF\Pub\Controller\Thread->actionAddReply(Object(XF\Mvc\ParameterBag))
#12 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'AddReply', Object(XF\Mvc\RouteMatch), Object(XFES\XF\Pub\Controller\Thread), NULL)
#13 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XFES\XF\Pub\Controller\Thread), NULL)
#14 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#15 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
#16 src/XF.php(524): XF\App->run()
#17 index.php(20): XF::runApp('XF\\Pub\\App')
#18 {main}

Request state
array(4) {
["url"] => string(34) "/threads/forum-review.69/add-reply"
["referrer"] => string(60) "https://www.airbaltic-community.com/threads/forum-review.69/"
["_GET"] => array(0) {
}
["_POST"] => array(11) {
["_xfToken"] => string(8) "********"
["message_html"] => string(40) "<p>This is a test reply as anonymous</p>"
["tap_is_anonymous_posting"] => string(1) "1"
["attachment_hash"] => string(32) "0e44a22ca3ac471745951072cc876e32"
["attachment_hash_combined"] => string(84) "{"type":"post","context":{"thread_id":69},"hash":"0e44a22ca3ac471745951072cc876e32"}"
["last_date"] => string(10) "1696332050"
["last_known_date"] => string(10) "1696332050"
["load_extra"] => string(1) "1"
["_xfRequestUri"] => string(25) "/threads/forum-review.69/"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}

Thank you for your help
 
hello, I have an issue of compatibility with this add-on:

When a user posts as anonynous (it should not count any trophy) there is an error, and the user cannot post:
View attachment 291939

And in the admin panel here is the error code:
PHP:
TypeError: M2N\TrophyEssentials\Repository\CumulativeTrophy::logCumulativeTrophyAction(): Argument #2 ($user) must be of type XF\Entity\User, null given, called in /home/airbaltic/public_html/src/addons/M2N/TrophyEssentials/XF/Entity/Thread.php on line 78
src/addons/M2N/TrophyEssentials/Repository/CumulativeTrophy.php:338
Generated by: sfj
Oct 3, 2023 at 12:31 PM

Stack trace
#0 src/addons/M2N/TrophyEssentials/XF/Entity/Thread.php(78): M2N\TrophyEssentials\Repository\CumulativeTrophy::logCumulativeTrophyAction('m2n_post_reply', NULL)
#1 src/addons/Truonglv/AnonymousPosting/XF/Entity/Thread.php(85): M2N\TrophyEssentials\XF\Entity\Thread->postAdded(Object(Truonglv\AnonymousPosting\XF\Entity\Post))
#2 src/XF/Entity/Post.php(632): Truonglv\AnonymousPosting\XF\Entity\Thread->postAdded(Object(Truonglv\AnonymousPosting\XF\Entity\Post))
#3 src/XF/Entity/Post.php(582): XF\Entity\Post->updateThreadRecord()
#4 src/addons/XFES/XF/Entity/Post.php(9): XF\Entity\Post->_postSave()
#5 src/addons/Truonglv/AnonymousPosting/XF/Entity/Post.php(250): XFES\XF\Entity\Post->_postSave()
#6 src/XF/Mvc/Entity/Entity.php(1277): Truonglv\AnonymousPosting\XF\Entity\Post->_postSave()
#7 src/XF/Service/Thread/Replier.php(214): XF\Mvc\Entity\Entity->save(true, false)
#8 src/addons/DigitalPoint/Analytics/XF/Service/Thread/Replier.php(9): XF\Service\Thread\Replier->_save()
#9 src/XF/Service/ValidateAndSavableTrait.php(42): DigitalPoint\Analytics\XF\Service\Thread\Replier->_save()
#10 src/XF/Pub/Controller/Thread.php(616): XF\Service\Thread\Replier->save()
#11 src/XF/Mvc/Dispatcher.php(352): XF\Pub\Controller\Thread->actionAddReply(Object(XF\Mvc\ParameterBag))
#12 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'AddReply', Object(XF\Mvc\RouteMatch), Object(XFES\XF\Pub\Controller\Thread), NULL)
#13 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XFES\XF\Pub\Controller\Thread), NULL)
#14 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#15 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
#16 src/XF.php(524): XF\App->run()
#17 index.php(20): XF::runApp('XF\\Pub\\App')
#18 {main}

Request state
array(4) {
["url"] => string(34) "/threads/forum-review.69/add-reply"
["referrer"] => string(60) "https://www.airbaltic-community.com/threads/forum-review.69/"
["_GET"] => array(0) {
}
["_POST"] => array(11) {
["_xfToken"] => string(8) "********"
["message_html"] => string(40) "<p>This is a test reply as anonymous</p>"
["tap_is_anonymous_posting"] => string(1) "1"
["attachment_hash"] => string(32) "0e44a22ca3ac471745951072cc876e32"
["attachment_hash_combined"] => string(84) "{"type":"post","context":{"thread_id":69},"hash":"0e44a22ca3ac471745951072cc876e32"}"
["last_date"] => string(10) "1696332050"
["last_known_date"] => string(10) "1696332050"
["load_extra"] => string(1) "1"
["_xfRequestUri"] => string(25) "/threads/forum-review.69/"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}

Thank you for your help
Are you using the latest version of Trophy Essentials?
 
Just thought I would let you know; the Easter Sale on M2N Addons is live now, and will run until Apr 2, 2024 at 12:00 AM!

All products: 15% off

I should add that those thinking about renewing, we will be releasing an update on all (or nearly all) of our addons to support Xenforo 2.3 as soon as possible.
 
Last edited:
Top Bottom