SyTry
Member
Bonjour,
Quand je veux rejeter une présentation j'ai cette erreur sur le panel :
J'ai l'erreur via la modération inline :

Le prefixe reste en "En attente" mais l'email de rejet est bien envoyer !
Quand je veux rejeter une présentation j'ai cette erreur sur le panel :
- Error: Call to a member function isPrefixValid() on null
- src/XF/Entity/Thread.php:687
Code:
#0 src/XF/Mvc/Entity/Entity.php(1248): XF\Entity\Thread->_preSave()
#1 src/XF/Mvc/Entity/Entity.php(1101): XF\Mvc\Entity\Entity->preSave()
#2 src/addons/XFA/ForceUsersIntroduceThemselves/Service/Thread/Disapprove.php(51): XF\Mvc\Entity\Entity->save()
#3 src/addons/XFA/ForceUsersIntroduceThemselves/XF/InlineMod/Thread.php(41): XFA\ForceUsersIntroduceThemselves\Service\Thread\Disapprove->run()
#4 src/XF/InlineMod/SimpleAction.php(79): XFA\ForceUsersIntroduceThemselves\XF\InlineMod\Thread->XFA\ForceUsersIntroduceThemselves\XF\InlineMod\{closure}(Object(SyTryC\PrefixForumListing\XF\Entity\Thread), Array)
#5 src/XF/InlineMod/AbstractAction.php(87): XF\InlineMod\SimpleAction->applyToEntity(Object(SyTryC\PrefixForumListing\XF\Entity\Thread), Array)
#6 src/XF/InlineMod/AbstractAction.php(80): XF\InlineMod\AbstractAction->applyInternal(Object(XF\Mvc\Entity\ArrayCollection), Array)
#7 src/XF/Pub/Controller/InlineMod.php(131): XF\InlineMod\AbstractAction->apply(Object(XF\Mvc\Entity\ArrayCollection), Array)
#8 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\InlineMod->actionPerform(Object(XF\Mvc\ParameterBag))
#9 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:InlineMod', 'Perform', 'json', Object(XF\Mvc\ParameterBag), '', Object(XF\Pub\Controller\InlineMod), Object(XF\Mvc\Reply\Reroute))
#10 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#11 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#12 src/XF.php(329): XF\App->run()
#13 index.php(13): XF::runApp('XF\\Pub\\App')
#14 {main}
Code:
array(4) {
["url"] => string(12) "/inline-mod/"
["referrer"] => string(60) "https://sytrycommunity.fr/forums/presentation-des-membres.4/"
["_GET"] => array(0) {
}
["_POST"] => array(6) {
["type"] => string(6) "thread"
["action"] => string(20) "disapprove_introduce"
["_xfRequestUri"] => string(35) "/forums/presentation-des-membres.4/"
["_xfWithData"] => string(1) "1"
["_xfToken"] => string(8) "********"
["_xfResponseType"] => string(4) "json"
}
}
J'ai l'erreur via la modération inline :

Le prefixe reste en "En attente" mais l'email de rejet est bien envoyer !