WordPress.org

Ready to get started?Download WordPress

Forums

gPress
conflict with other plugin, Javascript broken (5 posts)

  1. Chris
    Member
    Posted 3 years ago #

    I have installed your plugin but the tab gPress Options only opens orange and gray menu tabs that I cannot click. Also, tabs on the left sidebar cannot be opened.
    In the Opera error console I see a Javascript error.

    JavaScript - https://mysite.com/wp-admin/admin.php?page=tpp_options_form
    
    Uncaught exception: TypeError: 'f.disabled.concat' is not a function
    Error thrown at line 10, column 353711 in <anonymous function: _tabify>(q) in https://ajax.googleapis.com/ajax/libs/jqueryui/1.7.3/jquery-ui.min.js:
        f.disabled=c.unique(f.disabled.concat(c.map(this.lis.filter(".ui-state-disabled"),function(s,o){return r.lis.index(s)}))).sort();
    called from line 10, column 350276 in <anonymous function: _init>() in https://ajax.googleapis.com/ajax/libs/jqueryui/1.7.3/jquery-ui.min.js:
        this._tabify(true)
    called from line 28, column 0 in <anonymous function: _createWidget>(a, c) in https://mysite.com/wp-content/plugins/gpress/gpress-admin/js/ui-customised.js?ver=3.0.1:
        this._init()
    called from line 25, column 806 in <anonymous function>(h, g) in https://mysite.com/wp-content/plugins/gpress/gpress-admin/js/ui-customised.js?ver=3.0.1:
        arguments.length&&this._createWidget(h,g)
    called from line 27, column 51 in <anonymous function>() in https://mysite.com/wp-content/plugins/gpress/gpress-admin/js/ui-customised.js?ver=3.0.1:
        b.data(this,a,new c(d,this))
    called via Function.prototype.call() from line 29, column 866 in <anonymous function: each>(a, b, d) in https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js:
        var f,e=0,j=a.length,i=j===w||c.isFunction(a);
    called from line 24, column 260 in <anonymous function: each>(a, b) in https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js:
        return c.each(this,a,b)
    called from line 26, column 556 in <anonymous function>(d) in https://mysite.com/wp-content/plugins/gpress/gpress-admin/js/ui-customised.js?ver=3.0.1:
        e?this.each(function(){var g=b.data(this,a),i=g&&b.isFunction(g[d])?g[d].apply(g,f):g;if(i!==g&&i!==undefined){h=i;return false}}):this.each(function(){var g=
    called from line 4, column 3 in <anonymous function>() in https://mysite.com/wp-admin/admin.php?page=tpp_options_form:
        jQuery('.tpp_form_container #tabs').tabs({
    called from line 26, column 460 in <anonymous function: ready>() in https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js:
        a.call(s,c);

    Ah, discovered now that it clashes with the plugin Use Google Libraries - after deactivating that one gPress shows the setup screen as supposed to do.
    Can you please look into it? I really would like to reactivate the Google libraries for better speed. Use Google Libraries didn't conflict with other of my plugins.
    thank you!

  2. FYI, please use the pastebin for all large code excerpts. (we're supposed to remove them per forum rules). It works better anyway and won't get you caught as spam :)

  3. Chris
    Member
    Posted 3 years ago #

    duly noted, and sorry for not having noticed before

  4. Jason Penney
    Member
    Posted 3 years ago #

    FYI: I took a quick look at gPress and it seems to be printing script tags directly rather than using wp_register_script and wp_enqueue_script. In my experience this is the cause of most incompatibilities with Use Google Libraries.

  5. Mark Smalley
    Member
    Plugin Author

    Posted 3 years ago #

    Have just released version 0.2.5 of gPress, and hope that this will be resolved. Please let me know if you are still having problems after upgrading.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic