When i put it the the quicktab block
its is giving a notice
'Notice: Undefined index: comments in comment_block_static_comments() (line 153 of /sites/all/modules/commentsblock/commentsblock.module).

Please fix this

Thanks
Ashish

CommentFileSizeAuthor
#15 issue-1840182.patch559 byteslsolesen
#14 issue-1840182.patch475 byteslsolesen

Comments

ashish.verma85’s picture

Priority: Major » Normal

i used ajax comments with that, and it worked fine for me.....but still there is an issue if one is not using ajax comments with quicktabs.

pyxio’s picture

I have the same problem. Notice: Undefined index: comments in comment_block_static_comments() (line 153 of... is there a fix for this yet? Cheers, Kevin

ashish.verma85’s picture

Hi
yes, install ajax comments to your website, and its on you then you want to active ajax comment on comment form or not, but somehow that will solve the error

Thanks
Ashish

pyxio’s picture

Thanks Ashish, that worked fine. However, I hope the module maintainer will resolve the problem so the user does not have to install yet another module. Cheers, Kevin

marcoka’s picture

so basically this happens if you put the commentblock into a quicktab?

ashish.verma85’s picture

Hi

yes, but not in default quick tab, in second or third

Thanks
Ashish

pyxio’s picture

Greetings,

Will this be fixed soon? Unfortunately, ajax comments does not work with php 5.4 so I unable to use it to resolve the error. Cheers, K

marcoka’s picture

i will not implement an extra ajax functionality if this is already taken care of another module. And additionally i have no skill with ajax :)

rajmataj’s picture

Have tried this module and it does not work out of the box. Although I'd rather not install another dependent module just to make this one work, I tried anyways with Ajax Comments but that did not allow the form to show as a block on a node - quicktabs or not. Error is:

Notice: Undefined index: comments in include() (line 40 of [my local path info]/modules/comment/comment-wrapper.tpl.php).

Using:

  • Drupal 7.19
  • Commentsblock 7.x-2.0-beta1
  • AJAX Comments 7.x-1.0-alpha1
marcoka’s picture

out of the box? what do you mean with that. a notice would not make it non functional.

did you put it into a quicktab too?

tinny’s picture

To fix the notice Notice: Undefined index: comments in comment_block_static_comments() (line 153 of /sites/all/modules/commentsblock/commentsblock.module).

I added this condition:

 if (isset($build['comments'])) {
      $comments[$nid]['comments'] = $build['comments'];
} 

It only happens when adding a new comment.

plazik’s picture

I had the same problem.
#11 fixed it.

plazik’s picture

Title: Small bug » Notice: Undefined index: comments in comment_block_static_comments() (line 153 of /sites/all/modules/commentsblock/commentsblock
Status: Needs work » Needs review
lsolesen’s picture

StatusFileSize
new475 bytes

Expressed as a patch.

lsolesen’s picture

StatusFileSize
new559 bytes
lsolesen’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

rroose’s picture

Issue summary: View changes

Is it me or is the patch not working anymore?

marcoka’s picture

just apply that manually then. i can fix this without a patch (its a small change) too if we get this RTBC.