[MMO] Thread After Ban

[MMO] Thread After Ban 2.1.0

No permission to download
Will be good if ban issuer is also thread starter, at least as an option. As you already specify who banned user.
 
Hi,

when I try to mark a post as SPAM, I get this error message:


Code:
Server-Fehlerprotokoll
TypeError: Argument 1 passed to XF::asVisitor() must be an instance of XF\Entity\User, null given, called in /htdocs/src/addons/MMO/ThreadAfterBan/XF/Repository/Banning.php on line 39 src/XF.php:473
Generiert von: Unbekanntes Konto 4 März 2021 um 08:08
Stack-Trace
#0 src/addons/MMO/ThreadAfterBan/XF/Repository/Banning.php(39): XF::asVisitor(NULL, Object(Closure))
#1 src/XF/Spam/Cleaner.php(56): MMO\ThreadAfterBan\XF\Repository\Banning->banUser(Object(SV\WarningImprovements\XF\Entity\User), 0, 'Spam. Wende dic...', NULL)
#2 src/XF/ApprovalQueue/AbstractHandler.php(172): XF\Spam\Cleaner->banUser()
#3 src/XF/ApprovalQueue/Thread.php(42): XF\ApprovalQueue\AbstractHandler->_spamCleanInternal(Object(SV\WarningImprovements\XF\Entity\User))
#4 [internal function]: XF\ApprovalQueue\Thread->actionSpamClean(Object(SV\MultiPrefix\XF\Entity\Thread))
#5 src/XF/ApprovalQueue/AbstractHandler.php(120): call_user_func_array(Array, Array)
#6 src/XF/Job/ApprovalQueueProcess.php(67): XF\ApprovalQueue\AbstractHandler->performAction('spam_clean', Object(SV\MultiPrefix\XF\Entity\Thread))
#7 src/XF.php(479): XF\Job\ApprovalQueueProcess->XF\Job\{closure}()
#8 src/XF/Job/ApprovalQueueProcess.php(68): XF::asVisitor(Object(SV\WarningImprovements\XF\Entity\User), Object(Closure))
#9 src/XF/Job/Manager.php(253): XF\Job\ApprovalQueueProcess->run(G)
#10 src/XF/Job/Manager.php(195): XF\Job\Manager->runJobInternal(Array, G)
#11 src/XF/Job/Manager.php(79): XF\Job\Manager->runJobEntry(Array, G)
#12 job.php(42): XF\Job\Manager->runQueue(false, 8)
#13 {main}
Status der Anfrage
array(4) {
  ["url"] => string(8) "/job.php"
  ["referrer"] => string(35) "https://xxx.admin.php"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Back
Top Bottom