Viewing 12 replies - 16 through 27 (of 27 total)
  • Plugin Author Heateor Support

    (@heateor)

    If you find it ok modifying php file and you are not using Comments feature replace following code in file super_socializer.php, line 720:

    if(the_champ_social_login_enabled() && !is_user_logged_in()){

    with this:

    if(the_champ_social_login_enabled() && !is_user_logged_in() && $GLOBALS[‘pagenow’] === ‘wp-login.php’){

    Im not sure about the results on all pages, check and let me know.

    @newriffa This will load the Javascript of plugin only at “wp-login.php” page. This will make social login work only at “wp-login.php” page. What if the OP decides to integrate social login icons at other pages or to use the social login widget?
    @vismithams I would suggest to make changes in the plugin only when suggested by plugin-author or plugin-contributor. You can see this badge above the profile picture of poster in the left side. If you are making changes in the plugin suggested by anyone else, do it on your own risk. The changes suggested by @newriffa will prevent social login from working when you integrate social login icons at any other page except wp-login.php

    Thread Starter Vivek Narayanankutty Nair

    (@vismithams)

    @heateor Thank you
    I believe you have suggested me to replace code in PHP file and also js URL in cache exclude list. I have followed your advice. Please let me know further. I am using woocommerce and I want even in all login or registration pages SuperSocilizer should work in social login. Will it be?
    Please note I have replaced the code line 720 as suggested by you and still all those js URLs are in cache exclude list in wp-rocket

    Thread Starter Vivek Narayanankutty Nair

    (@vismithams)

    @heateor Yes, you are correct if we replaced @newriffa given new code to the plugin PHP file, it will only work on wp-login page only. I cross-checked it. Hence I revoked the changes and now social login is working on all pages but the error theChampSiteUrl is coming back.

    @heateor can you please give me an ultimate solution to this?

    Plugin Author Heateor Support

    (@heateor)

    JS minify or Rocket cache is doing something wrong.
    You can try the following to fix it:
    1. Toggle “Include javascript in website footer” option at Super Socializer > General Options page in admin
    2. Toggle “Load all Javascript files in single file” option at Super Socializer > General Options page in admin
    3. Try all possible combinations of above two options.
    Every time you make changes in plugin configuration, clear website cache before refreshing your webpage to check if error is gone.

    Thread Starter Vivek Narayanankutty Nair

    (@vismithams)

    @heateor Everything tried as per your support replies but nothing worked. I believe this issue only with my website. Like @newriffa said if it is not harming my site, better to leave as it is. Thank you for your time

    Plugin Author Heateor Support

    (@heateor)

    Sorry about that. It’s really weird issue.

    Hi,

    I have similar issue in different conditions:

    a) If SG Optimizer plugin (SiteGround) is configured as follows:
    ON – Minify JavaScript Files
    OFF – Combine JavaScript Files
    ON – Defer Render-blocking JS
    Super Socializer works perfectly without any workaround.

    b) If SG Optimizer plugin (SiteGround) is configured as follows:
    ON – Minify JavaScript Files
    ON – Combine JavaScript Files
    ON – Defer Render-blocking JS
    Super Socializer breaks with “theChampSiteUrl is not defined”

    Thread Starter Vivek Narayanankutty Nair

    (@vismithams)

    @yanmanwai Yes. Tested and it worked. This is absolutely the right solution. thank you @yanmanwai
    @heateor should note of this solution.

    It’s more efficient if it is B solution to reduce the number of request to server and increase speed loading. But this can only be approached with @heateor ‘s team fixes

    Plugin Author Heateor Support

    (@heateor)

    @yanmanwai Thanks for the info. We will look into it.

    Hi,

    I have the same issue with super socializer and wp-rocket, the social login breaks if Combine JavaScript Files option in wp-rocket is enabled.

    Can you please help me to resolve this?

    • This reply was modified 4 years, 3 months ago by afnan93.
    Plugin Author Heateor Support

    (@heateor)

    Hi @afnan93
    Would you drop an email at support[at]heateor[dot]com regarding the same?

Viewing 12 replies - 16 through 27 (of 27 total)
  • The topic ‘theChampSiteUrl is not defined’ is closed to new replies.