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"
}
}