• Resolved rzack

    (@rzack)


    Hello, we have some custom functionality tied to whether or not a user has authenticated with a social login using Super Socializer. This had been working properly with version 7.9.2, however we noticed that our Super Socializer plugin was very behind on updates so we updated the plugin to version 7.11.16, and it has broken our custom functionality.

    The errors we now see in the Javascript console look like this:

    Failed to load resource – plugins/super-socializer/js/front/social_login/facebook.js

    Failed to load resource – plugins/super-socializer/js/front/social_login/linkedin.js

    Error: Could not execute ‘theChampLinkedInOnLoad’. Please provide a valid function for callback.

    ReferenceError: Can’t find variable: theChampFacebookAuthUrl

    Is there a guide or any documentation you could point us to that demonstrates the new structure, or any advice as to how to migrate the working code from version 7.9.2 to the new 7.11.16 structure? Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Heateor Support

    (@heateor)

    Hi there,

    Looks like the Javascript files are still being requested (due to any cache plugin you might be using) as the webpage loads, which aren’t used anymore in the plugin.
    You would like to try clearing website cache.

    Thread Starter rzack

    (@rzack)

    Hi, thanks for the reply. However, this is not a caching issue because our customizations are trying to enqueue and use the Super Socializer Javascript files directly, and these seem to no longer exist in your new structure.

    Could you please let us know:

    What are the new replacement files for facebook.js and linkedin.js — is that the combined.js file we see in /js/front/combined.js ?

    What is the new replacement functions for theChampLinkedInOnLoad?

    Interestingly, our custom functionality seems to still work with Super Socializer’s Twitter authentication, just not with FB/LinkedIn.

    I think we just need to know more about how the structure changed for FB and LinkedIn in the new 7.11.16 structure… thank you!

    Plugin Author Heateor Support

    (@heateor)

    What are the new replacement files for facebook.js and linkedin.js

    You don’t need these anymore.

    What are the new replacement files for facebook.js and linkedin.js

    Yes, that or wp-content/plugins/super-socializer/js/front/social_login/general.js and wp-content/plugins/super-socializer/js/front/social_login/common.js
    Twitter login didn’t require it’s own twitter.js file neither it does now.
    You just need to use onclick="theChampInitiateLogin(this)" on each social login icon you want to use. If you still face any problem, you can enable social login from the plugin options and check how social login icons trigger the authentication popup window.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Could not execute theChampLinkedInOnLoad’ is closed to new replies.