Using AJAX comments and Organic Groups modules together caused some problems for me. Not a long time ago I created an issue in Organic Groups thread... (http://drupal.org/node/1849432) But trying to solve the problem by myself I found out that fixes should be made in ajax_comments.module.

The problem was that that Ajax comments module tried to add a form for posting comments even if a user didn't have rights to do that. It caused the following error:

Notice: Undefined index: title в функции theme_links() (строка 1712 в файле /home/u7015/domains/warp.org.ua/includes/theme.inc).

(To reproduce it you have to visit a node with a group type and ajax-comments enabled, any page you'll visit after this one will show the error above.)

So I've added a check if a user have rights that OG module privileges. This patch will work only with http://drupal.org/project/comment_og module enabled, because it checks a right provided only by this module.

Please, test it and comment. This is my first patch in my life)

CommentFileSizeAuthor
ajax_comments.module.patch1.09 KBmvlabat
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mvlabat’s picture

Issue summary: View changes

reproduse -> reproduce

formatC'vt’s picture

Assigned: mvlabat » Unassigned
Issue summary: View changes
Status: Needs review » Needs work

Path outdated and special-casing code... i don't like it, but we can add this.
mvlabat, please, re-assign to yourself if you are planning to work on this.

formatC'vt’s picture

Title: AJAX comments + OG » Comment OG module Compatibility
firewaller’s picture

Unrelated to the specific issue, but just incase anybody else has issue with Comment OG, it seems that the ajax_comments classes are overwritten by comment_og.

I added a patch to modify the values instead of overriding the entire comment link: https://www.drupal.org/node/2623228#comment-10606726

formatC'vt’s picture

Status: Needs work » Postponed
Related issues: +#2623228: Modify comment links instead of override

yep