1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Dismiss Notice
What Do You Need In The Xf2 Xengallery Version? Vote for your choices here: http://www.sonnb.com/threads/what-do-you-need-in-the-xf2-xengallery-version.1539/

Help Getting Server Errors

Discussion in 'Stop Spam Here' started by Demon_skeith, Jun 4, 2019.

  1. Demon_skeith

    Demon_skeith Authorized Member Authorized

    I'm getting two logged server errors for some reason with this addon:

    • TypeError: Argument 3 passed to sonnb\StopSpamHere\Repository\Log::checkLink() must be an instance of XF\Mvc\Entity\Entity, null given, called in /home/nginx/domains/gaminglatest.com/public/src/addons/sonnb/StopSpamHere/Service/ThreadTrait.php on line 31
    • src/addons/sonnb/StopSpamHere/Repository/Log.php:626
    Stack trace
    #0 src/addons/sonnb/StopSpamHere/Service/ThreadTrait.php(31): sonnb\StopSpamHere\Repository\Log->checkLink('thread', NULL, NULL)
    #1 src/addons/sonnb/StopSpamHere/XF/Service/Thread/Creator.php(15): sonnb\StopSpamHere\XF\Service\Thread\Creator->_sonnbSSH_finalSetup()
    #2 src/XF/Service/Thread/Creator.php(223): sonnb\StopSpamHere\XF\Service\Thread\Creator->finalSetup()
    #3 src/XF/Service/ValidateAndSavableTrait.php(17): XF\Service\Thread\Creator->_validate()
    #4 src/XF/Pub/Controller/Forum.php(742): XF\Service\Thread\Creator->validate(NULL)
    #5 src/XF/Mvc/Dispatcher.php(321): XF\Pub\Controller\Forum->actionPostThread(Object(XF\Mvc\ParameterBag))
    #6 src/XF/Mvc/Dispatcher.php(244): XF\Mvc\Dispatcher->dispatchClass('XF:Forum', 'PostThread', Object(XF\Mvc\RouteMatch), Object(NF\Discord\XF\Pub\Controller\Forum), NULL)
    #7 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(NF\Discord\XF\Pub\Controller\Forum), NULL)
    #8 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
    #9 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
    #10 src/XF.php(390): XF\App->run()
    #11 index.php(20): XF::runApp('XF\\Pub\\App')
    #12 {main}
    Request state
    array(4) {
    ["url"] => string(45) "/forums/gaming-news-discussion.16/post-thread"
    ["referrer"] => string(69) "https://gaminglatest.com/forums/gaming-news-discussion.16/post-thread"
    ["_GET"] => array(1) {
    ["/forums/gaming-news-discussion_16/post-thread"] => string(0) ""
    }
    ["_POST"] => array(14) {
    ["prefix_id"] => string(1) "0"
    ["title"] => string(14) "Evergleam Hill"
    ["message_html"] => string(396) "<p>Hey everyone!</p><p><br></p><p>Looking for a new, fun, super addicting, don't want to put down your phone type of game? Then you will love Evergleam Hill. Run around collecting items, mine for gold, fish, dress up your character and more! Evergleam gives you the opportunity to win prizes you can use in the real world. My latest winnings are a free doughnut at Mister Donut. Check it out!</p>"
    ["attachment_hash"] => string(32) "9d82f110e4445f08a69aa14e8c09fe5d"
    ["attachment_hash_combined"] => string(82) "{"type":"post","context":{"node_id":16},"hash":"9d82f110e4445f08a69aa14e8c09fe5d"}"
    ["tokens_select"] => string(6) "crypto"
    ["tags"] => string(48) "gaming, app, iphone, android, blockchain, crypto"
    ["watch_thread"] => string(1) "1"
    ["_xfSet"] => array(1) {
    ["watch_thread"] => string(1) "1"
    }
    ["poll"] => array(5) {
    ["question"] => string(0) ""
    ["new_responses"] => array(1) {
    [0] => string(0) ""
    }
    ["max_votes_type"] => string(6) "single"
    ["change_vote"] => string(1) "1"
    ["view_results_unvoted"] => string(1) "1"
    }
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(45) "/forums/gaming-news-discussion.16/post-thread"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
    }
    }

    and

    • ErrorException: [E_NOTICE] Undefined index: sonnb_SSH_point_point
    • src/addons/sonnb/StopSpamHere/XF/Service/User/Registration.php:72
    • Generated by: Unknown account
    • Jun 3, 2019 at 9:34 PM
    Stack trace
    #0 src/addons/sonnb/StopSpamHere/XF/Service/User/Registration.php(72): XF::handlePhpError(8, '[E_NOTICE] Unde...', '/home/nginx/dom...', 72, Array)
    #1 src/XF/Service/User/Registration.php(183): sonnb\StopSpamHere\XF\Service\User\Registration->finalSetup()
    #2 src/XF/Service/ValidateAndSavableTrait.php(17): XF\Service\User\Registration->_validate()
    #3 src/XF/Pub/Controller/Register.php(414): XF\Service\User\Registration->validate(NULL)
    #4 src/addons/BlackTea/SteamAuth/XF/Pub/Controller/Register.php(50): XF\Pub\Controller\Register->actionRegister()
    #5 src/addons/sonnb/StopSpamHere/XF/Pub/Controller/Register.php(16): BlackTea\SteamAuth\XF\Pub\Controller\Register->actionRegister()
    #6 src/XF/Mvc/Dispatcher.php(321): sonnb\StopSpamHere\XF\Pub\Controller\Register->actionRegister(Object(XF\Mvc\ParameterBag))
    #7 src/XF/Mvc/Dispatcher.php(244): XF\Mvc\Dispatcher->dispatchClass('XF:Register', 'Register', Object(XF\Mvc\RouteMatch), Object(sonnb\StopSpamHere\XF\Pub\Controller\Register), NULL)
    #8 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(sonnb\StopSpamHere\XF\Pub\Controller\Register), NULL)
    #9 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
    #10 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
    #11 src/XF.php(390): XF\App->run()
    #12 index.php(20): XF::runApp('XF\\Pub\\App')
    #13 {main}
    Request state
    array(4) {
    ["url"] => string(18) "/register/register"
    ["referrer"] => string(25) "https://gaminglatest.com/"
    ["_GET"] => array(1) {
    ["/register/register"] => string(0) ""
    }
    ["_POST"] => array(22) {
    ["username"] => string(0) ""
    ["7cac4c73c90d83f175d99ab8bf91a8957d8c1a4c"] => string(11) "jderosa1723"
    ["8da215882f81f65a9088bafde8796db27cda6713"] => string(0) ""
    ["e98fb7cff7f9ea91d5ec961291489e67f7788804"] => string(21) "jderosa1723@gmail.com"
    ["password"] => string(8) "********"
    ["b951f42ce9fd5db31282e0eca44dfb5652a716d7"] => string(8) "********"
    ["dob_month"] => string(1) "9"
    ["dob_day"] => string(2) "17"
    ["dob_year"] => string(4) "1992"
    ["custom_fields"] => array(4) {
    ["nintendo_network_id"] => string(0) ""
    ["xboxlive"] => string(0) ""
    ["psnaccount"] => string(0) ""
    ["steamprofile"] => string(0) ""
    }
    ["captcha_question_answer"] => string(3) "DLC"
    ["captcha_question_hash"] => string(40) "323fcbb5a243a2a7750d56ac330de05776be85ed"
    ["accept"] => string(1) "1"
    ["reg_key"] => string(16) "jMb3ZLMTAy69YXnM"
    ["sonnbSSH_field"] => string(0) ""
    ["address_field"] => string(0) ""
    ["password_field"] => string(8) "********"
    ["d0fe0295042d582d479edab0a619c92e3139f7fa"] => string(16) "America/New_York"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(1) "/"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
    }
    }

    Any reason why?
     
  2. sonnb

    sonnb Administrator Staff Member

    I will check and feedback you.
     
  3. sonnb

    sonnb Administrator Staff Member

    Can you tell me that you get the first error everytime you start a thread or it is randomly?
     
  4. Demon_skeith

    Demon_skeith Authorized Member Authorized

    I'm not fully sure what is triggering it other than maybe bad settings perhaps? I just know the alerts get triggered every day. Here is another I'm getting:

    • InvalidArgumentException: Passing in the "body" request option as an array to send a POST request has been deprecated. Please use the "form_params" request option to send a application/x-www-form-urlencoded request, or the "multipart" request option to send a multipart/form-data request.
    • src/vendor/guzzlehttp/guzzle/src/Client.php:416
    • Generated by: partieboy
    • Jun 5, 2019 at 9:53 AM
    Stack trace
    #0 src/vendor/guzzlehttp/guzzle/src/Client.php(119): GuzzleHttp\Client->invalidBody()
    #1 src/vendor/guzzlehttp/guzzle/src/Client.php(131): GuzzleHttp\Client->requestAsync('post', Object(GuzzleHttp\Psr7\Uri), Array)
    #2 src/vendor/guzzlehttp/guzzle/src/Client.php(89): GuzzleHttp\Client->request('post', 'http://0aa3e4c8...', Array)
    #3 src/addons/sonnb/StopSpamHere/Service/Akismet.php(153): GuzzleHttp\Client->__call('post', Array)
    #4 src/addons/sonnb/StopSpamHere/Service/Akismet.php(198): sonnb\StopSpamHere\Service\Akismet->_post('0aa3e4c8e08f.re...', '/1.1/comment-ch...', Array)
    #5 src/addons/sonnb/StopSpamHere/Service/Akismet.php(229): sonnb\StopSpamHere\Service\Akismet->_makeApiCall('/1.1/comment-ch...', Array)
    #6 src/addons/sonnb/StopSpamHere/Repository/Log.php(765): sonnb\StopSpamHere\Service\Akismet->isSpam(Array)
    #7 src/addons/sonnb/StopSpamHere/XF/Service/User/SignatureEdit.php(45): sonnb\StopSpamHere\Repository\Log->checkAkismet('signature', 9393, Object(XF\Entity\UserProfile), 'a')
    #8 src/XF/Service/User/SignatureEdit.php(209): sonnb\StopSpamHere\XF\Service\User\SignatureEdit->validateSignature('a', Object(XF\BbCode\Processor), Array)
    #9 src/XF/Pub/Controller/Account.php(227): XF\Service\User\SignatureEdit->setSignature('a', Array)
    #10 src/XF/Mvc/FormAction.php(168): XF\Pub\Controller\Account->XF\Pub\Controller\{closure}(Object(XF\Mvc\FormAction))
    #11 src/XF/Pub/Controller/Account.php(207): XF\Mvc\FormAction->run()
    #12 src/addons/sonnb/StopSpamHere/XF/Pub/Controller/Account.php(15): XF\Pub\Controller\Account->actionSignature()
    #13 src/XF/Mvc/Dispatcher.php(321): sonnb\StopSpamHere\XF\Pub\Controller\Account->actionSignature(Object(XF\Mvc\ParameterBag))
    #14 src/XF/Mvc/Dispatcher.php(244): XF\Mvc\Dispatcher->dispatchClass('XF:Account', 'Signature', Object(XF\Mvc\RouteMatch), Object(NF\Discord\XF\Pub\Controller\Account), NULL)
    #15 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(NF\Discord\XF\Pub\Controller\Account), NULL)
    #16 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
    #17 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
    #18 src/XF.php(390): XF\App->run()
    #19 index.php(20): XF::runApp('XF\\Pub\\App')
    #20 {main}
    Request state
    array(4) {
    ["url"] => string(18) "/account/signature"
    ["referrer"] => string(42) "https://gaminglatest.com/account/signature"
    ["_GET"] => array(1) {
    ["/account/signature"] => string(0) ""
    }
    ["_POST"] => array(5) {
    ["signature_html"] => string(320) "<p><a href="https://www.stadia-gaming.de/" rel="noopener noreferrer" target="_blank"></a></p><p><br></p><p><a href="https://www.stadia-gaming.de/" rel="noopener noreferrer" target="_blank"></a></p><p><br></p><p><a href="https://www.stadia-gaming.de/" rel="noopener noreferrer" target="_blank"></a></p><p><br></p><p>a</p>"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(18) "/account/signature"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
    }
    }
     
  5. sonnb

    sonnb Administrator Staff Member

    This error is because of XF vendor API changes. I need to update the code.
     
    Last edited: Jun 9, 2019
  6. sonnb

    sonnb Administrator Staff Member

    I have fixed all of those 3 issues. An update will be posted soon.
     
    whynot likes this.
  7. Demon_skeith

    Demon_skeith Authorized Member Authorized

    Thanks, I'll keep my eye out for the update.
     
  8. sonnb

    sonnb Administrator Staff Member

    An update has been posted.
     
    snoopy5 likes this.

Share This Page