Viewing 15 replies - 1 through 15 (of 27 total)
  • Thread Starter Vivek Narayanankutty Nair

    (@vismithams)

    Do any respond to this?

    @vismithams my browser shows error at:
    var theChampTwitterAuthUrl = theChampSiteUrl + “?SuperSocializerAuth=Twitter&super_socializer_redirect_to=” + theChampTwitterRedirect;

    Please, check Twitter auth URL or redirect URL in your settings and let me know.

    Thread Starter Vivek Narayanankutty Nair

    (@vismithams)

    All social accounts have been checked and updated as per instructions links provided by the plugin. Stil the issue remains. See here https://i.imgur.com/cl7yvwy.png

    Please help further

    @vismithams it seems the issue is non-harmful, check the login page where the actual Authentication is happening following url:
    https://healthcarentsickcare.com/wp-login.php

    The plugin seems falsely generating script in a non login page.
    The issue is in file: super_socializer.php, Line: 720:

    if(the_champ_social_login_enabled() && !is_user_logged_in()){
    // JS HERE
    }

    We could use:
    $GLOBALS['pagenow'] === 'wp-login.php'

    Thread Starter Vivek Narayanankutty Nair

    (@vismithams)

    You want me to add this
    $GLOBALS[‘pagenow’] === ‘wp-login.php
    in in file: super_socializer.php

    I am nontechie hence asking. Kindly guide

    Plugin Author Heateor Support

    (@heateor)

    Sorry for the late reply. I cannot see the Javascript error you mentioned.

    @vismithams better you leave as is while its harmless. If you find difficulties in login or register using twitter or facebook let us know.

    Thread Starter Vivek Narayanankutty Nair

    (@vismithams)

    @newriffa thank you. No error not making any harm in login and registration using social ids. But I worried about speed if unnecessary js calls load on all or specific pages. error is still there, check the latest screenshot https://i.imgur.com/vMDb5V5.png

    @heateor I am sorry for reading your reply. Check the screenshot of error https://i.imgur.com/vMDb5V5.png

    Anyhow if this issue cant to resolved by you then I suggest closing this support ticket.
    Thank you very much @newriffa for your time and timely help

    Plugin Author Heateor Support

    (@heateor)

    See the screenshot https://imgur.com/4jYAWR5
    Probably the JS minify is breaking the Javascript and causing the Javascript errors. You would like to try excluding following JS files from the JS minify:
    wp-content/plugins/super-socializer/js/front/sharing/sharing.js
    wp-content/plugins/super-socializer/js/front/facebook/commenting.js
    wp-content/plugins/super-socializer/js/front/facebook/sdk.js
    wp-content/plugins/super-socializer/js/front/social_login/instagram.js
    wp-content/plugins/super-socializer/js/front/social_login/general.js
    wp-content/plugins/super-socializer/js/front/social_login/linking.js
    wp-content/plugins/super-socializer/js/front/social_login/common.js
    wp-content/plugins/super-socializer/js/front/combined.js
    After doing this, clear website cache.

    Thread Starter Vivek Narayanankutty Nair

    (@vismithams)

    @heateor Thank you
    I have added all those files in WP Rocket exclude JS files section https://i.imgur.com/KJz0aSn.png
    Cleared the WP Rocket cache also.

    Stil the problem persist https://i.imgur.com/lzPsxfP.png

    @vismithams most welcome. 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.

    @vismithams its seems what @heateor is saying is true
    <script src="https://cdn.healthcarentsickcare.com/wp-content/cache/min/1/3dd7601268cd19e09ada2ffc79b0b29d.js" data-minify="1" defer=""></script>
    loaded at the bottom of the page(last to load) which contains theChampSiteUrl variables:

    var theChampDefaultLang='en_GB',
    theChampCloseIconPath='https://cdn.healthcarentsickcare.com/wp-content/plugins/super-socializer/images/close.png';
    var theChampSiteUrl='https://healthcarentsickcare.com',
    theChampVerified=0,
    theChampEmailPopup=0

    While the rest of variables are at the top of the page(loaded early) before theChampSiteUrl is loaded. Moreover as @heateor said it is cached and minified.

    Try “include JavaScript in website footer” option.

    Thread Starter Vivek Narayanankutty Nair

    (@vismithams)

    Thank you @heateor @newriffa
    theChampSiteUrl issue resolved after replacing code which @newriffa in php file. and kept all those js files in wp-rocket exclude list.

    Do you want me to remove all those files from the exclude list now?

    And when I refresh the page a new error is also showing up, see here https://i.imgur.com/Ryzj92G.png
    and it show if sometimes and If I refresh the page it will go off. What the cause of it?

    @vismithams ga has todo with “Best Health CheckUp Packages In Pune” but it shows no error from my side.

    Thread Starter Vivek Narayanankutty Nair

    (@vismithams)

    Okay

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