• Resolved rphrus

    (@rphrus)


    Hi,
    My Super Socializer plugin’s social login does not open up when I log in using facebook, google. When I disable SG optimizer, it works. Please help.

Viewing 15 replies - 1 through 15 (of 16 total)
  • Hi SG Optimizer Devs,

    First off this plugin is a gem for the WordPress. Quite useful. Kudos for such a great job with this plugin ??
    I am developer of Super Socializer plugin. I would like to know if there is any way to make the Super Socializer work with your plugin. Let me know if there are any changes that we need to make in our plugin for this.
    Thanks in advance.

    Plugin Author Stanimir Stoyanov

    (@sstoqnov)

    SiteGround Representative

    Hey @rphrus

    Would it be possible to provide your site URL please, so I can check on live env what is causing the issues?

    @the_champ I will let you know if you need to change something in your plugin.

    For now, I want to check the issue first, and then we will decide how to proceed.

    Regards,
    Stanimir

    Thread Starter rphrus

    (@rphrus)

    You can easily download the FREE https://www.ads-software.com/plugins/super-socializer/ and test it there.

    Plugin Author Stanimir Stoyanov

    (@sstoqnov)

    SiteGround Representative

    Hey,

    We have managed to replicate the issue on our end.

    When the js combinator is enabled, tho social login pup-up was opening a blank page instead of the login screen for the specific social network and an Uncaught reference error was appearing in the console.

    We will fix the issue in the next version.

    To fix the issue for your website you would have to add 'theChampSiteUrl' to the excluded_inline_content using the sgo_javascript_combine_excluded_inline_content filter

    After adding this, click Purge SG Cache and the login pop-up should work fine and the error in the console should not be present anymore.

    If you notice any other issues, feel free to reach back at us.

    Regards,
    Stanimir

    I have this issue, however when I enter the URL to exclude them
    /wp-content/uploads/siteground-optimizer-assets/ SGO is not finding any min.js files, so I can not exclude URLs.
    How are the URLs entered to make the exclude work?

    Checking the folder there are five files.
    the_champ_ss_general_scripts.mim.js
    the_champ_sl_common.mim.js
    the_champ_fb_sdk.mim.js
    the_champ_fb_commenting.mim.js
    the_champ_share_counts.mim.js

    If I disable sgo_javascript_combine, the issue is fixed, but this not the ideal solution.

    Cheers Colin

    @sstoqnov Would appreciate if you could reply to the query of @kellscolin2020

    Tried this from “Combine Javascript Files (Cannot Exclude JS FIle)” post

    add_filter( ‘sgo_js_combine_exclude’, ‘js_combine_exclude’ );
    function js_combine_exclude( $exclude_list ) {
    // Add the style handle to exclude list.
    $exclude_list[] = ‘theChampSiteUrl’ ;

    return $exclude_list;
    }

    Does not work.

    Where can I access the filter you mention “sgo_javascript_combine_excluded_inline_content” filter

    Cheers Colin

    Have found it.

    The following works
    add_filter( ‘sgo_javascript_combine_excluded_inline_content’, ‘js_combine_exclude_inline_script’ );
    function js_combine_exclude_inline_script( $exclude_list ) {
    $exclude_list[] = ‘theChampSiteUrl’;

    return $exclude_list;
    }

    Resolved

    Thread Starter rphrus

    (@rphrus)

    @kellscolin2020 where do you add this code in? I am a newbie, please be specific. Thanks.

    Hi @rphrus
    This code and others can be found on the plugin SG Optimizer – View Details – Description – Plugin Compatibility Section.
    This also tells you to insert the code in your functions.php file.

    An easier way is to install the Snippets plugin, add a Snippet then paste the code into the new Snippet. Save and Activate.
    Snippets also allow you to Deactive / Activate and edit when you require.

    Thread Starter rphrus

    (@rphrus)

    Do I have to leave ‘theChampSiteUrl’ as is? or should I modify it? Thanks.

    Exactly as I have it

    add_filter( ‘sgo_javascript_combine_excluded_inline_content’, ‘js_combine_exclude_inline_script’ );
    function js_combine_exclude_inline_script( $exclude_list ) {
    $exclude_list[] = ‘theChampSiteUrl’;

    return $exclude_list;
    }

    Thread Starter rphrus

    (@rphrus)

    @kellscolin2020 I tried to put it in my theme’s function.php and this is what I got.
    Warning: Use of undefined constant ??sgo_javascript_combine_excluded_inline_content?? – assumed ‘??sgo_javascript_combine_excluded_inline_content??’ (this will throw an Error in a future version of PHP) in /home/…

    Warning: Use of undefined constant ??js_combine_exclude_inline_script?? – assumed ‘??js_combine_exclude_inline_script??’ (this will throw an Error in a future version of PHP) in /home/…

    I’d suggest installing the Snippet plugin that’s how I’ve done mime.

    Hi!

    I have the same problem, I tried to update both super socializer(7.12.46) and SG optimizer(5.6.0), but it doesn’t work.

    I tried to disable super socializer, it is working.

    I tried both the snippet plugin and directly adding the above code in function.php. The former doesn’t solve the problem while the latter throws me an error an the main page.

    I am seeking for help.

    My website: https://www.nyushforum.website/

    • This reply was modified 4 years, 7 months ago by seal.
Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘SG optimizer disables social login of of super socializer plugin’ is closed to new replies.