I get error message when enable comments:

Notice: Undefined variable: a4 in fb_social_comments_node_view() (line 74 of /sites/all/modules/fb_social/modules/fb_social_comments/fb_social_comments.module).

I just added facebook comments that replace drupal core comment section. And facebook comment still not showing.

Comments

myfarmertan’s picture

I get the same error. I'd be happy to provide any other info to help get this fixed. Not sure what would help though.

mmellado’s picture

Got same problem. Subscribing

mmellado’s picture

In my case, comment box IS showing (you need to enable it, it's a block which will appear after you CREATE your plugin). The error stopped appearing after i changed a line of code in the module.

The module seems to be trying to check a variable (Notice: Undefined variable: a4 in fb_social_comments_node_view() (line 74 of /sites/all/modules/fb_social/modules/fb_social_comments/fb_social_comments.module).) . However, it seems like its falling into this error when the variable doesn't exist, so I simply changed line 74 of /sites/all/modules/fb_social/modules/fb_social_comments/fb_social_comments.module from

if ( $a4 ) { //only in page view

to

if ( isset($a4)  ) { //only in page view

Hope this helps you too!

myfarmertan’s picture

That fixed the problem i was having. Now I need to get the plugin settings to remember the content type selection i'm making.

natts’s picture

The above fixed the error message for me too, as expected, but I also have the issue of the content type selection not being remembered, and so the comments box code is never actually output.

This is a major bug :-(

krysty2k9’s picture

the notice error is solved but I still can't display the facebook comment box on a content type ! Any solution ?

feconroses’s picture

I have the same problem that the previous 3 users have. Any solution? Thanks.

ferdi’s picture

Status: Active » Closed (fixed)

Fixed in alpha2 release