XF 2.1 TypeError: Argument 3 passed to GuzzleHttp\Client::request

MesterPerfect

Active member
Server error log
TypeError: Argument 3 passed to GuzzleHttp\Client::request() must be of the type array, string given, called in /home/MySite.com/public_html/vb/src/vendor/guzzlehttp/guzzle/src/Client.php on line 89 · src/vendor/guzzlehttp/guzzle/src/Client.php:128
Generated by: Baaziz Nacer · Oct 9, 2020 at 6:49 PM
Stack trace
#0 src/vendor/guzzlehttp/guzzle/src/Client.php(89): GuzzleHttp\Client->request()
#1 src/addons/MJ/OneSignal/OneSignal.php(44): GuzzleHttp\Client->__call()
#2 src/addons/MJ/OneSignal/Repository/OneSignal.php(225): MJ\OneSignal\OneSignal::request()
#3 src/addons/MJ/OneSignal/Repository/OneSignal.php(159): MJ\OneSignal\Repository\OneSignal->_sendNoti()
#4 src/addons/MJ/OneSignal/Repository/OneSignal.php(98): MJ\OneSignal\Repository\OneSignal->sendNotification()
#5 src/addons/MJ/OneSignal/XF/Entity/UserAlert.php(12): MJ\OneSignal\Repository\OneSignal->sendFromAlert()
#6 src/XF/Mvc/Entity/Entity.php(1219): MJ\OneSignal\XF\Entity\UserAlert->_postSave()
#7 src/XF/Repository/UserAlert.php(141): XF\Mvc\Entity\Entity->save()
#8 src/XF/Repository/UserAlert.php(98): XF\Repository\UserAlert->insertAlert()
#9 src/XF/Reaction/AbstractHandler.php(181): XF\Repository\UserAlert->alertFromUser()
#10 src/XF/Repository/Reaction.php(201): XF\Reaction\AbstractHandler->sendReactionAlert()
#11 src/XF/Repository/Reaction.php(142): XF\Repository\Reaction->insertReaction()
#12 src/XF/ControllerPlugin/Reaction.php(65): XF\Repository\Reaction->reactToContent()
#13 src/XF/ControllerPlugin/Reaction.php(19): XF\ControllerPlugin\Reaction->actionToggleReaction()
#14 src/XF/ControllerPlugin/Reaction.php(12): XF\ControllerPlugin\Reaction->actionReact()
#15 src/XF/Pub/Controller/Post.php(371): XF\ControllerPlugin\Reaction->actionReactSimple()
#16 src/XF/Mvc/Dispatcher.php(350): XF\Pub\Controller\Post->actionReact()
#17 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass()
#18 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch()
#19 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop()
#20 src/XF/App.php(2191): XF\Mvc\Dispatcher->run()
#21 src/XF.php(391): XF\App->run()
#22 index.php(20): XF::runApp()
#23 {main}
Request state
array(4) {
["url"] => string(35) "/vb/posts/11639/react?reaction_id=1"
["referrer"] => string(242) "https://MySite.com/vb/threads/تحميل-المتصفح-العملاق-google-chrome-86-0-4240-68-beta-أحدث-إصدار.5270/"
["_GET"] => array(1) {
["reaction_id"] => string(1) "1"
}
["_POST"] => array(4) {
["_xfRequestUri"] => string(222) "/vb/threads/%D8%AA%D8%AD%D9%85%D9%8A%D9%84-%D8%A7%D9%84%D9%85%D8%AA%D8%B5%D9%81%D8%AD-%D8%A7%D9%84%D8%B9%D9%85%D9%84%D8%A7%D9%82-google-chrome-86-0-4240-68-beta-%D8%A3%D8%AD%D8%AF%D8%AB-%D8%A5%D8%B5%D8%AF%D8%A7%D8%B1.5270/"
["_xfWithData"] => string(1) "1"
["_xfToken"] => string(8) "********"
["_xfResponseType"] => string(4) "json"
}
}
 
Back
Top Bottom