Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi,
    probably there’s an error on your Twitter Settings.
    You can turn on the WP_DEBUG to view the issue.

    Debugging in WordPress

    Thread Starter archonic

    (@archonic)

    The error is:
    Fatal error: Cannot redeclare class OAuthSignatureMethod_HMAC_SHA1 in /home/wedding-recyclejail/home/wedding-recycle/public_html/wp-content/plugins/yith-woocommerce-social-login/includes/hybridauth/Hybrid/thirdparty/OAuth/OAuth.php on line 139

    This doesn’t seem to be an error I can do anything about on the Twitter side of things. Unless it is, in which case let me know what I can change.

    I have the same problem. I only get a blank white page with this url:

    https://example.de/wp-content/plugins/yith-woocommerce-social-login/includes/hybridauth/?hauth.start=Twitter&hauth.time=1442070459

    WP_DEBUG don′t show any error. Twitter is setup correctly.

    Any ideas?

    Plugin Author YITHEMES

    (@yithemes)

    Hi archonic,
    do you have other type of social plugin installed at the same time?

    Can you try do deactivate all plugins and try only with woocommerce + yith woocommerce social login installed?

    YITHEMES

    Thread Starter archonic

    (@archonic)

    My theme (oxygen by laborator) and another plugin (wc vendors) both have copy pasta OAuth class files. They’re both very important to the site. I had to go through and wrap reach declaration in an if class_exists condition to get billing code to work. Pretty annoying. I’ve asked wc vendors to namespace their billing code class declarations. It’s billing code after all.

    If code inside these similarly named classes don’t agree, it could really screw things up. Couldn’t they all be declared in one unique class by the name of the plugins?

    Plugin Author YITHEMES

    (@yithemes)

    Hi archonic,
    we ask to our developer if can do a sort of compatibility with wc vendors.
    If this can be done, we send the updates in the next releases.

    YITHEMS

    CosmetiCage

    (@cosmeticage)

    Hello all,

    Any solution?
    I am also facing the same things (Configured well for FB and Google+)

    Lack Twitter

    “Fatal error: Cannot redeclare class OAuthSignatureMethod_HMAC_SHA1 in /home/content/p3pnexwpnas02_data03/08/2802808/html/wp-content/plugins/yith-woocommerce-social-login/includes/hybridauth/Hybrid/thirdparty/OAuth/OAuth.php on line 139”

    Regards,
    CC

    Thread Starter archonic

    (@archonic)

    OAuth classes are often copy and pasted into a plugin without regard for other plugins that could be declaring the same class. This is what WC Vendors did and it’s what YITH does too. You can change the class declaration in /OAuth/OAuth.php on line 139 to check for class existence first with:
    if (!class_exists('OAuthSignatureMethod_HMAC_SHA1'))...

    That risks the other declaration being different and causing an issue but that’s unlikely. That worked for WC Vendors. You’ll probably see similar errors for other similarly named classes. Just keep adding the above conditionals to check for existence before declaring.

    The proper solution in my opinion is name spacing your classes, or declaring them within another class by the name of the plugin.

    Plugin Author YITHEMES

    (@yithemes)

    Hi archonic,
    thank you for your suggest! The plugin use a third part library “HybridAuth” that must be update frequently.
    We will schedulate an update to resolve the problem in the next releases.

    Regards
    YITHEMS

    CosmetiCage

    (@cosmeticage)

    Hi,

    I still do not understand how to solve this

    “Fatal error: Cannot redeclare class OAuthSignatureMethod_HMAC_SHA1 in /home/content/p3pnexwpnas02_data03/08/2802808/html/wp-content/plugins/yith-woocommerce-social-login/includes/hybridauth/Hybrid/thirdparty/OAuth/OAuth.php on line 139”

    Not good at programming..

    Thanks please help!

    Plugin Author YITHEMES

    (@yithemes)

    Hi CosmetiCage,
    probably you have installed another plugin of social at the same time.
    try to deactivate it and try again.

    YITHEMES

    CosmetiCage

    (@cosmeticage)

    Hi,

    I have no social plugin installed.

    What can i do to paste here to resolve this?

    Regards,
    CosmestiCage

    Plugin Author YITHEMES

    (@yithemes)

    Hi CosmestiCage,
    try to deactivate all plugins, but leave YITH WooCommerce Social Login active. After that you can reactivate a plugin one at once, so you can find what is the plugin that declare the class OAuthSignatureMethod_HMAC_SHA1.

    Regards,
    YITHEMES

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Blank page for Twitter login’ is closed to new replies.