WordPress.org

Ready to get started?Download WordPress

Forums

WP Socializer
[resolved] WP Socializer causes many Javascript errors (13 posts)

  1. johannes3
    Member
    Posted 1 year ago #

    hi,

    without WP Socializer i've no errors, but if the plugin is enabled most of other jscripts wont work anymore.

    errors:

    Uncaught TypeError: Cannot read property 'msie' of undefined jquery.tools.min.js:19
    (anonymous function)jquery.tools.min.js:19
    (anonymous function)jquery.tools.min.js:20
    The "fb-root" div has not been created, auto-creating all.js:49
    FB.getLoginStatus() called before calling FB.init(). all.js:49
    Uncaught TypeError: Cannot read property 'msie' of undefined jquery.fancybox.js:18
    (anonymous function)jquery.fancybox.js:18
    (anonymous function)jquery.fancybox.js:46
    Uncaught TypeError: Cannot read property 'msie' of undefined responsive-scripts.js:6
    (anonymous function)responsive-scripts.js:6
    Uncaught TypeError: Object [object Object] has no method 'tinyNav' responsive-plugins.js:20
    (anonymous function)responsive-plugins.js:20
    Uncaught TypeError: Object [object Object] has no method 'fancybox' shashin.js:22
    (anonymous function)shashin.js:22
    fjquery.min.js:1
    p.fireWithjquery.min.js:1
    st.extend.readyjquery.min.js:1
    xt

    jquery v. 1.9.0
    wp 3.5
    tested with WP Socializer javascript load on header and footer.

    thanks for any help

    http://wordpress.org/extend/plugins/wp-socializer/

  2. danimalweb
    Member
    Posted 1 year ago #

    If you are using the latest version of jQuery they changed somethings last night which showed the error: Uncaught TypeError: Cannot read property 'msie' of undefined on my site, and all the other scripts stopped working too.

    The plugin might be pulling the latest version, in which case change it to an older version of wordpress. Check the plugin homepage.

  3. mixaelll16
    Member
    Posted 1 year ago #

    i have same problem ... of last night my site is crash because 'WP Socializer', i cant see half my page ... when i deactive all is ok ... :(

  4. acorderob
    Member
    Posted 1 year ago #

    Until the author updates the plugin you can edit wp-socializer.php, and replace line 1080 with:

    wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"), false, WPSR_VERSION);

    So it registers the previous version of jquery that works.

    And to the author: i'm concerned that the plugin has to re-register jquery. I suppose this was necesary when wordpress had an older version of jquery, but now it is not.

  5. trevone
    Member
    Posted 1 year ago #

    or in wp-socializer.php go to line 1077 and comment out the jquery register stuff

    agreed, concerned

    if( !is_admin()){<br />
    	// jQuery<br />
    	//wp_deregister_script('jquery');<br />
    	//wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"), false, WPSR_VERSION);<br />
    	//wp_enqueue_script('jquery');<br />
    }
  6. webdesk
    Member
    Posted 1 year ago #

    Thank you guys for posting a solution so quickly! Thanks to you my site is functioning again (after hours of trying to figure out what's wrong)

  7. johannes3
    Member
    Posted 1 year ago #

    yeah. Thanks a lot guys!

  8. Mike Zielonka
    Member
    Posted 1 year ago #

    Same issue here!

    Nice patch!

  9. robintime
    Member
    Posted 1 year ago #

    After freaking out (privately) about an unexpected change on my site, the great guys over at EventEspresso told me about the solution above which I hadn't seen on my own. Easy to implement and the problem was fixed.

  10. llworldtour
    Member
    Posted 1 year ago #

    Similar problem here - it was causing my slider and a collapsible widget to not work right. Thanks for help guys.
    Which sol'n above is best...changing line 1077 OR 1080?
    Thanks!!

  11. llworldtour
    Member
    Posted 1 year ago #

    It seems they just updated the plug-in and fixed it.

  12. johannes3
    Member
    Posted 1 year ago #

    and after update my site is also broken but without jscript error.
    the plugin is gone from wordpress directory
    maybe its better.

    have anyone an alternative?

  13. vaakash
    Member
    Plugin Author

    Posted 1 year ago #

    @johnnes3 The issue is fixed in v2.4.7
    The plugin is back to normal and is working like a charm.

    http://wordpress.org/extend/plugins/wp-socializer/

    Thank you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic