Forums

[Plugin: Ajax Comment Posting] Breaks Dashboard in 2.9.1 (6 posts)

  1. finestimaginary
    Member
    Posted 2 years ago #

    Breaks several of the sidebar navigation dropdowns upon activation.

    http://wordpress.org/extend/plugins/ajax-comment-posting/

  2. macariojames
    Member
    Posted 2 years ago #

    Hey!

    The problem seems to be w/ WP Plugin Activation order. I am having the same problem, too. I'm about to follow instructions here: http://www.dountsis.com/wordpress/wordpress-plugins-activation-order.php

  3. ericherrmann
    Member
    Posted 2 years ago #

    also having the same problem. even when ajax comment posting is the only plugin activated. it also breaks the "quick edit" and any of the "upload/insert" features on the edit posts pages. (also broken in 2.9.2)

  4. Asitis
    Member
    Posted 2 years ago #

    It seems to be a conflict with jQuery.. I cant collapse/expand or do anything in the backend which requires javascript..
    I saw there was a noConflict() line in the script, but that doesnt seem to help.
    Anyone got around to fix this? I'll get on it eitherway and let you know if it works.

  5. Asitis
    Member
    Posted 2 years ago #

    Found it!
    The error (well, in my case) was caused by the loading image in the acp.js file (line 23).
    The error is given at the '+acp_path+' part, which seems to be undefined. If you remove this, define the path or just enter an absolute path, everything works again! :D

  6. Max Bond
    Member
    Posted 2 years ago #

    There is a better way to fix this problem:

    In ajax-comment-posting.php :
    place last two lines:

    add_action('init', 'acp_initialize');
    add_action('wp_head', 'acp_localize');

    inside IF statement:

    if (!is_admin()) {
    add_action('init', 'acp_initialize');
    add_action('wp_head', 'acp_localize');
    }

    That will prevent loading acp.js in admin panel (there is no sense to load it here).

Topic Closed

This topic has been closed to new replies.

About this Topic