Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author wpseek

    (@alphawolf)

    Hey Travis,

    can you give any more info on what exactlty does conflict? I just saw that the Socialbox Plugin licence is $6 and it’s not listed in the official WP plugin repository.

    Apart from that, the plugin seems to be frontend plugin while my plugin is a backend plugin, adding a Dashboard Widget to the Admin Dashboard.

    Thread Starter Travis Pflanz

    (@tpflanz)

    The plugin came with the Gonzo theme (https://themeforest.net/item/gonzo-clean-responsive-wp-magazine/2415788)

    I have contacted the theme developer and the plugin developer as well.

    I sent you an email with the SocialBox plugin for testing.

    Plugin Author wpseek

    (@alphawolf)

    Hey Travis, may you please send it to scripts (at) schloebe (dot) de again? Thanks!

    Plugin Author wpseek

    (@alphawolf)

    Travis, unfortunately I can’t do anything in my plugin to fix the incompatibility.

    The issue occurs because SocialBox’ plugin author includes a PHP class without checking if another plugin did include the same class already.

    So basically what he needs to change in his plugin code is in socialbox/includes/socialbox.connector.php in line 156. He needs to change

    require_once('twitteroauth/twitteroauth/twitteroauth.php');

    to

    if( !class_exists('TwitterOAuth') )
               		require_once('twitteroauth/twitteroauth/twitteroauth.php');

    and it’ll be working. ??

    Thread Starter Travis Pflanz

    (@tpflanz)

    Thanks. That’s what I figured. I had already made that change myself, but I always like to contact the developers when I come across a conflict, so each can take a look themselves.

    I appreciate the reply.

    Hello, we have the same problem, only we don’t have that code in /socialbox.connector.php in line 156.
    We do have:

    /**
    		 * Twitter API Base URL
    		 */
    		const TWITTER_API_BASE = "https://api.twitter.com/1/users/show.json?skip_status=true&screen_name=";

    And that code gives an error.

    {"errors": [{"message": "The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview.", "code": 68}]}

    Please can you help?

    Plugin Author wpseek

    (@alphawolf)

    Hey crossmediamiek,

    that problem is not plugin specific, but is more an issue with the Twitter API itself. The Twitter REST API v1 is deprecated, and the error message sais exactly that.

    You’ll need to get in touch with the SocialBox plugin author to resolve the issue.

    A quick’n’dirty fix would be to replace line 156ff. with the following:

    const TWITTER_API_BASE = "https://api.twitter.com/1.1/users/show.json?skip_status=true&screen_name=";

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘WordPress Dashboard Twitter Conflict with SocialBox Plugin’ is closed to new replies.