• Resolved davethenerd

    (@davethenerd)


    I updated all my keys and tokens and am getting a “Critical Error” any time I click the “Test XPoster” button.

    Looking at the logs, I see:

    [16-Aug-2023 13:47:11 UTC] PHP Fatal error:  Uncaught Error: Call to undefined method GuzzleHttp\Utils::chooseHandler() in /path/to/wp-content/plugins/wp-to-twitter/vendor/guzzlehttp/guzzle/src/functions.php:61
    Stack trace:
    #0 /path/to/wp-content/plugins/backwpup/vendor/guzzlehttp/guzzle/src/HandlerStack.php(42): GuzzleHttp\choose_handler()
    #1 /path/to/wp-content/plugins/wp-to-twitter/vendor/noweh/twitter-api-v2-php/src/AbstractController.php(94): GuzzleHttp\HandlerStack::create()
    #2 /path/to/wp-content/plugins/wp-to-twitter/wp-to-twitter.php(443): Noweh\TwitterApi\AbstractController->performRequest()
    #3 /path/to/wp-content/plugins/wp-to-twitter/wpt-functions.php(123): wpt_post_to_twitter()
    #4 /path/to/wp-content/plugins/wp-to-twitter/wp-to-twitter-manager.php(194): wpt_check_functions()
    #5 /path/to/wp-content/plugins/wp-to-twitter/wp-to-twitter-manager.php(212): wpt_updated_settings()
    #6 /path/to/wp-includes/class-wp-hook.php(310): wpt_update_settings()
    #7 /path/to/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #8 /path/to/wp-includes/plugin.php(517): WP_Hook->do_action()
    #9 /path/to/wp-admin/admin.php(259): do_action()
    #10 {main}
      thrown in /path/to/wp-content/plugins/wp-to-twitter/vendor/guzzlehttp/guzzle/src/functions.php on line 61

    Is it possible that this function simply hasn’t been updated yet, and “live” Tweets will work?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    Have you added the new required bearer token yet?

    Thread Starter davethenerd

    (@davethenerd)

    Yep!

    Plugin Author Joe Dolson

    (@joedolson)

    OK. Then this is probably a conflict with another plugin that’s using GuzzleHTTP at a different version; can you disable your other plugins and see if it works without them?

    If it does, I’d appreciate your finding out which plugin it conflicts with, as it would make my testing easier.

    Thread Starter davethenerd

    (@davethenerd)

    Ah, brilliant! I should’ve seen this… right there in the logs it shows BackWPup. I deactivated that temporarily and boom, the Test Tweet (or whatever we call it now) worked perfectly!

    I receive the same error and i have BackWPup plugin installed too.

    Is there any solution?. I have regressed to 3.6.1 version.

    Thanks.

    Plugin Author Joe Dolson

    (@joedolson)

    You can try installing the version from Github; it incorporates changes that should resolve this; a direct test by a user would be really handy.

    It’s not a release yet, but you could install from the master branch.

    Thread Starter davethenerd

    (@davethenerd)

    I looked on GitHub and the only one I see is 4.0.0 from 2 days ago. Is that now somehow up-to-date?

    Plugin Author Joe Dolson

    (@joedolson)

    As I mentioned, the update hasn’t been marked for release yet; you’d have to pull from the master branch, which is up to date. But at this point, I’ll be releasing in a couple hours, so I wouldn’t worry about it.

    4.0.1 works ok. Thank you very much.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Critical Error on Test XPoster’ is closed to new replies.