Ajax Comments Stopped Working (2 posts)

  1. iselltheta
    Posted 3 years ago #

    I have a weird one. On my site http://macrostory.com I installed spectacu.la comments about 8 months ago. And the ajax comments have been working awesome. All of a sudden today it stopped working. When I post a comment rather than the page staying static and the comment being added, I get an entire page refresh. And if I reply to a comment I get a new browser open.

    What's odd is I changed nothing today. No change to WordPress, no change to this plug in or any other plug in. It just stopped working. Any idea what could be the cause?

    Thank You!

  2. iselltheta
    Posted 3 years ago #

    Doing a little research a new version of JQuery was released today and my plugin calls for the most recent version. Problem is I don't know how to specify the prior version. It looks like I need to change that here, but not sure how.

    // Make sure we have jQuery version 1.3.2 or better
    				if ( isset( $wp_scripts->registered[ 'jquery' ]->ver ) && version_compare( $wp_scripts->registered[ 'jquery' ]->ver, '1.3.2', '<' ) ){
    					wp_deregister_script( 'jquery' );
    					wp_register_script( 'jquery', SPEC_COMMENT_URL . "/js/jquery.js", array( ), '1.3.2', true );

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.