While Signature for Forums is enabled and one attempts to display a forum post the following error message is raised:

PHP Fatal error:  Call to undefined function signature_forum_get_signature(
) in /var/www/html/cm7/sites/all/modules/advanced_forum/includes/advanced_forum_preprocess_node.inc on line 95, referer: http://www.xxxx.yyy/cm7/de/forum/250

On this site also Advanced Forum 7.x-2.0-beta1 is installed.

Is the name of this function misspelled?

Comments

Niklas Fiekas’s picture

Priority: Normal » Major

Thanks for reporting this. When I removed the function I wasn't aware that Advanced forum relies on it. module_exists() indicates almost always that there is something wrong^^.

GStegemann’s picture

You,re welcome.

Are you going to re-add the function?

Niklas Fiekas’s picture

Either so or fix advanced forum in another way. I am not sure, yet. I think I'll have time to test it later today.

Arekay’s picture

Sub

Niklas Fiekas’s picture

Please stop subscribing, start following. But thanks for reminding me that this issue still must be solved ;)

liam mcdermott’s picture

I haven't really looked at this, but my instinct is to post a patch to Adv. Forum. Wonder if it even needs all that stuff just for Signatures for Forums. :/

Freso’s picture

Freso’s picture

Hm. Reading over the code, it seems the proper way to add signatures now is... to let Drupal's node system add them on its own, in which case signature_forum hooks into it? Is that right? So advanced_forum should really just not try and call signature_forum at all? Let me know if I'm correct, as a patch for this would be trivial.

Niklas Fiekas’s picture

Yes. Exactly. At least it should work like that.

troky’s picture

Project: Signatures for Forums » Advanced Forum
Version: 7.x-1.x-dev » 7.x-2.x-dev
Status: Active » Closed (duplicate)

It is AF bug. Using some old code from 6.x. Leftovers removed and Drupal core is handling signatures now.

Patch submitted to #1340512: Fatal error: Call to undefined function signature_forum_get_signature().