WordPress.org

Ready to get started?Download WordPress

Forums

Comments Evolved for WordPress
[resolved] JS Error And Commenting Tabs Misaligned (10 posts)

  1. IHDadmin
    Member
    Posted 1 year ago #

    Hi,

    Great plugin.

    I spent all of my day debugging this JQuery error which was coming up right after activating the plugin. Also the Comments tabs are misaligned which may be because of that JS error only.

    Here is the link: Link

    Please help me :)

    Thanks.

    http://wordpress.org/extend/plugins/gplus-comments/

  2. Brandon Holtsclaw
    Member
    Plugin Author

    Posted 1 year ago #

    mod_pagespoeed is messing up your Javascript, thats not a plugin error

  3. IHDadmin
    Member
    Posted 1 year ago #

    Even after turning of the mod_pagespeed, it's replicating. So please help.
    You can check the link after clearing the cache.

  4. Brandon Holtsclaw
    Member
    Plugin Author

    Posted 1 year ago #

    now it looks like wp-minify is messing with the script and css loading order, you should probably turn off all plugins that concat or change the order of the JS and then test so you can add the proper whitelisted files if needed.

  5. IHDadmin
    Member
    Posted 1 year ago #

    Previously I was using wp-minfy only for css, not for js.
    Although presently I have turned it off to solve this problem.

    Please check again. :)

  6. IHDadmin
    Member
    Posted 1 year ago #

    Found this article: Check Here

    using wp_enqueue_script() or wp_register_script() before init is wrong.

    This may be causing the issue:

    function gplus_comments_init()
    {
      define( 'GPLUS_COMMENTS_VERSION', '1.3.0' );
      defined('GPLUS_COMMENTS_DEBUG') or define('GPLUS_COMMENTS_DEBUG', false);
      defined('GPLUS_COMMENTS_DIR') or define('GPLUS_COMMENTS_DIR', dirname(__FILE__));
      defined('GPLUS_COMMENTS_URL') or define('GPLUS_COMMENTS_URL', rtrim(plugin_dir_url(__FILE__),"/"));
      defined('GPLUS_COMMENTS_LIB') or define('GPLUS_COMMENTS_LIB', GPLUS_COMMENTS_DIR . "/lib");
      defined('GPLUS_COMMENTS_TEMPLATES') or define('GPLUS_COMMENTS_TEMPLATES', GPLUS_COMMENTS_DIR . "/templates");
    
      wp_register_style('gplus_comments_font', GPLUS_COMMENTS_URL . '/font/font.css', null, GPLUS_COMMENTS_VERSION, "all");
      wp_register_style('gplus_comments_tabs_css', GPLUS_COMMENTS_URL . '/styles/tabs.css', array("gplus_comments_font"), GPLUS_COMMENTS_VERSION, "screen");
      wp_register_script('gplus_comments_tabs_js', GPLUS_COMMENTS_URL . '/js/tabs.js', array('jquery-ui-tabs'), GPLUS_COMMENTS_VERSION, true);
      wp_enqueue_script('jquery');
      wp_enqueue_script('jquery-ui-core');
      wp_enqueue_script('jquery-ui-tabs');
    }
    add_action('init', 'gplus_comments_init');
  7. Martin
    Member
    Posted 1 year ago #

    With regard to the JS script loading, I found for my install (prior to this plugin too) that I needed to add the following line to my wp-config.php file

    define('CONCATENATE_SCRIPTS', false);

    Maybe that might help you.

  8. IHDadmin
    Member
    Posted 1 year ago #

    I got the reason. It is happening because of old version of jquery-ui.min.js.

    Its working fine with latest version but its affecting other features on the site. It is included in theme's files.

  9. IHDadmin
    Member
    Posted 1 year ago #

    Previous problem solved with some jquery tweaks but now I am facing another one:
    Steps to reproduce:

    1. Please click on this link
    2. Click on Facebook tab
    3. click on Disqus Tab
    4. click on Google + Tab

    Now you can see that Google+ tab is coming up empty .i.e there is no comment form. It is coming up in first time but not after visiting other tabs.

    please help me. :)

  10. Brandon Holtsclaw
    Member
    Plugin Author

    Posted 1 year ago #

    the theme should not be loading a old jquery ui, it should be using the one bundled with wordpress. Sorry but this is a theme issue not one with the plugin please file a support request with them.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic