Title: Error setting the Twitter API version
Last modified: December 25, 2023

---

# Error setting the Twitter API version

 *  Resolved [BenLinders](https://wordpress.org/support/users/benlinders/)
 * (@benlinders)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/error-setting-the-twitter-api-version/)
 * I get an error when trying to share on Twitter. Looks like the function to set
   the twitter API to version 2 is not found.
 * Error message in my log file:
 * Fatal error: Uncaught Error: Call to undefined method Abraham\TwitterOAuth\TwitterOAuth::
   setApiVersion() in /home/public/sites/www.benlinders.com/wp-content/plugins/tweet-
   old-post/includes/admin/services/class-rop-twitter-service.php:637
 * What can cause this error?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-setting-the-twitter-api-version%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Support [Poonam Namdev](https://wordpress.org/support/users/poonam9/)
 * (@poonam9)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/error-setting-the-twitter-api-version/#post-17301723)
 * Hi [@benlinders](https://wordpress.org/support/users/benlinders/),
 * ​Sorry to hear about the difficulties encountered.
 * Is there any error in the sharing log of ROP dashboard? If yes, please share 
   a screenshot so we can take a closer look at this issue.
 *  Thread Starter [BenLinders](https://wordpress.org/support/users/benlinders/)
 * (@benlinders)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/error-setting-the-twitter-api-version/#post-17302916)
 * Hi [@poonam9](https://wordpress.org/support/users/poonam9/)
 * There is no error in the sharing log. It only mentions that posts were shared
   on Facebook, but nothing about sharing on Twitter, no error.
 * What can be the problem?
 *  Plugin Support [AndreeaR](https://wordpress.org/support/users/andreearadacina21/)
 * (@andreearadacina21)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/error-setting-the-twitter-api-version/#post-17336373)
 * Hey [@benlinders](https://wordpress.org/support/users/benlinders/)
 * Thank you for using ROP!
 * Could you please follow the instructions outlined here and check if the issue
   persists? You can find the instructions at [https://docs.revive.social/article/1908-how-to-solve-453-twitter-error-in-rop](https://docs.revive.social/article/1908-how-to-solve-453-twitter-error-in-rop).
 * Best regards,
 * Andreea
 *  Thread Starter [BenLinders](https://wordpress.org/support/users/benlinders/)
 * (@benlinders)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/error-setting-the-twitter-api-version/#post-17336797)
 * I had already found these instructions, have done them, and checked them. Unfortunately,
   the problem prrsists.
 * Ben Linders
 *  Plugin Support [Poonam Namdev](https://wordpress.org/support/users/poonam9/)
 * (@poonam9)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/error-setting-the-twitter-api-version/#post-17339282)
 * Hi Ben,
 * Please make sure you are using the latest version of plugin. Remove Twitter account
   from your plugin settings and add it again.
 * If you still have the same issue, deactivate other plugins and check if it resolves
   the issue.
 *  Thread Starter [BenLinders](https://wordpress.org/support/users/benlinders/)
 * (@benlinders)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/error-setting-the-twitter-api-version/#post-17341215)
 * Hi [@poonam9](https://wordpress.org/support/users/poonam9/)
 * I am using the latest version. I disabled all plugins but I still get the same
   error message and no sharing on Twitter:
 * **Jan 13, 22:20:04 Fatal error: Uncaught Error: Call to undefined method Abraham\
   TwitterOAuth\TwitterOAuth::setApiVersion() in /home/public/sites/www.benlinders.
   com/wp-content/plugins/tweet-old-post/includes/admin/services/class-rop-twitter-
   service.php:637**
 * Did anybody look at the error message that I already included in my first post???
 * Ben Linders
 *  Plugin Support [Poonam Namdev](https://wordpress.org/support/users/poonam9/)
 * (@poonam9)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/error-setting-the-twitter-api-version/#post-17351819)
 * Hi [@benlinders](https://wordpress.org/support/users/benlinders/),
 * I’m sorry to hear that you’re still facing difficulties, but we haven’t been 
   able to replicate the issue. We recommend you remove your Twitter account from
   the plugin and then add it again. Here’s a guide that will help you add your 
   own API keys: [https://docs.revive.social/article/1908-how-to-solve-453-twitter-error-in-rop](https://docs.revive.social/article/1908-how-to-solve-453-twitter-error-in-rop).
 * Hope it helps!
 *  Thread Starter [BenLinders](https://wordpress.org/support/users/benlinders/)
 * (@benlinders)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/error-setting-the-twitter-api-version/#post-17351846)
 * I don’t know what happened, but it’s working now. Suddenly my postings on Twitter
   were there, and I see in the log that it’s successfull.
 * thanks for bearing with me.
 * Ben Linders
 *  Plugin Support [irinelenache](https://wordpress.org/support/users/irinelenache/)
 * (@irinelenache)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/error-setting-the-twitter-api-version/#post-17354434)
 * Hello [@benlinders](https://wordpress.org/support/users/benlinders/),
 * We’re glad that the Twitter integration is working fine now.
 * If you encounter any other issues, don’t hesitate to open another support topic!
 * Have a great day ahead,
 * Irinel
 *  Thread Starter [BenLinders](https://wordpress.org/support/users/benlinders/)
 * (@benlinders)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/error-setting-the-twitter-api-version/#post-17354853)
 * I found out what the problem is!
 * There seems to be some conflict between the plugins Revive Old Post and Super
   Socializer ([https://wordpress.org/plugins/super-socializer/](https://wordpress.org/plugins/super-socializer/)).
 * The reason Revive Old post worked was because I deactivated the plugin Super 
   Socializer. Whet I activate the plugin Super Socializer I get an error with Revive
   Old Post.
 * Are you aware of any conflicts/clashes between these two plugins? Are they compatible?
   Or conflicting in some way?
 * Please let me know your thoughts?

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Error setting the Twitter API version’ is closed to new replies.

 * ![](https://ps.w.org/tweet-old-post/assets/icon-256x256.gif?rev=3127181)
 * [Revive Social – Social Media Auto Post and Scheduling Automation Plugin](https://wordpress.org/plugins/tweet-old-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tweet-old-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tweet-old-post/)
 * [Active Topics](https://wordpress.org/support/plugin/tweet-old-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tweet-old-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tweet-old-post/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [twitter](https://wordpress.org/support/topic-tag/twitter/)

 * 10 replies
 * 4 participants
 * Last reply from: [BenLinders](https://wordpress.org/support/users/benlinders/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/error-setting-the-twitter-api-version/#post-17354853)
 * Status: resolved