I have just installed the module. I have followed the screencast and can't get it to work.

I get the "x comments Add Comment" buttons but when I click on them nothing happens.

I'm a bit of a novice with Drupal, but I am learning as much as I can quickly.

I am building a site that I am launching next weekend.

I am also using it with your tutorials for a image gallery.

I have included screen shots of my View and webpage.

Your help is appreciated.

Comments

DFABRI’s picture

Assigned: DFABRI » Unassigned
DFABRI’s picture

Category: support » bug
Priority: Major » Critical
omega.OFN’s picture

Hi guys, looks like an outstanding module, however I seem to have the same issue as outlined here (or similar in the issue queue).
I installed the module, enabled it, added the Content(Inline Comment) Field to a View (just as shown in the Screencast). The view shows the 2 Links (View and Add Comment).
However, when clicking on such links nothing happens. When hovering over the link the right url is shown in the status bar, also when right clicking on the links and telling the browser to open the link in a new tab, it opens the correct page (directly to the links view or add of the respective node being accessed).
It looks, as if the Ajax does not execute.
I am using Drupal 7.12, Views 7.x-3.3 and Chaos Tools 7.x-1.0 and tried it with Inline Ajax Comments Version 7.x-1.0-beta2 and 7.x-1.x-dev, without success.
Please let me know if there is any further information I can give you.

Anonymous’s picture

after upgrading to drupal 7.14 i can add comments, but can't view existing ones.

Anonymous’s picture

@omega.OFN and DFABRI...
i've an error in the firebug console but my output is in german. please upgrade to drupal 7.14, run firebug and report the errors here to support the maintainer.

regards

Anonymous’s picture

i've changed my theme and for some reason now it works...

omega.OFN’s picture

Hi guys,
I have experimented with my issue(s) a little bit.
First I have set up my typical environment to use:
Drupal 7.14, Admin Menu 7.x-3.0-rc3, Admin 7.x-2.0-beta3, CTools 7.x-1.0, Devel 7.x-1.2, References 7.x-2.0, Entity API 7.x-1.0-rc3, Panels 7.x-3.2, Rules 7.x-2.1, Rules Link 7.x-1.0-beta3, Views 7.x-3.3, Views Bulk Operations 7.x-3.0-rc1;
and of course Inline Comments 7.x-1.0-beta;
I deployed the patch under issue "Ajax links don't work if basepath is not "/" "(link: http://drupal.org/node/1533038)
Clean URLs are enabled! Created a view as a list of nodes of a content type with an Inline Comment field added.

After that, following interaction can be experienced with the view created:
(1)View Inline Comments:
* if Comments available: Ajax works fine; comments show up as supposed to; no errors in Firebug Console
* if 0 Comments: Error message in Firebug Console:
>>GET http://ourfactory.net/nillionaire/ajax/inline_comments/get_comments/4379
>>500 Service unavailable (with message) -> 736ms
>>jquery.js?v=1.4.4 (Line 142)
>>Details of Answer
>>EntityMalformedException: Missing bundle property on entity of type comment. in entity_extract_ids() (line 7539 of /home/content/04/7836004/html/nillionaire/includes/common.inc).
* pressing "0 Comments" again prints another "Loading..." label instead of the comment threat; error message repeats.

(2) Reply to comments opened up with "View Comments"
If there are any comments available and I press view comments, I can also press reply for the existing comments -> redirects me to the comment form, enter and save -> works okay!

(3) Add Comments
* Clicking on "Add Comments" slides up the comment form (I tried it with both, opened and closed View of existing comments)
* Entering title and body of comment and press "Save"
-> Popup Window: Ajax Error
-> Firebug Console:
>> POST http://ourfactory.net/ajax/inline_comments/add_comments 404 Not Found 106ms
>> jquery.js?v=1.4.4 (Line 142)
>>
>> Detail POST:
>> action /nillionaire/comment/reply/4379
>> comment_text tesatas
>> nid 4379
>> uid 1
>> Source
>> comment_text=tesatas&nid=4379&uid=1&action=%2Fnillionaire%2Fcomment%2Freply%2F4379
>>
>> Detail Answer (redirect to 404 page)
>> ...404 (Page Not Found) Error - Ever feel like you're in the wrong place?...
//(and so on...)

Let me know if there is anything else you need.

PS: I also generally use CKEditor and Voting API, which show up in the this issue queue as well. However for this environment I have not even installed these modules.
Also relates a little bit to issue "Does this module require a prerequisite module version for Views/CTools?" (http://drupal.org/node/1469450)

grasmash’s picture

@omega

Try adding the class 'views-row' to your views rows. For table views, this is not the default row class. This module relies upon that class. Ideally, the module should just a hook to add its own class.

simon georges’s picture

@omega.OFN, you can eventually check #1533038: Ajax links don't work if basepath is not "/", it seems the fact that you're not at the root of your server could cause that.

steveoliver’s picture

Version: 7.x-1.0-beta2 » 7.x-1.x-dev
Priority: Critical » Normal
Issue summary: View changes
Status: Active » Postponed (maintainer needs more info)

omega.OFN,

Please check the two suggestions in #8 and #9 to see if either resolves your issue. There is also #1578220: 'Add Comment' link does not work when there are 0 comments which may help. In the meantime, lowering priority and changing status.