Fatal error : undefined function

chapo - November 10, 2008 - 11:44
Project:Conversation Pivots
Version:5.x-2.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

I have a problem with the pivot module.
Pivots work fine, but when cron occurs (via poormanscron), I get the following :
Call to undefined function pivots_magicword_index() in /...../modules/pivots/forum/pivots_forum.module on line 169

This of course disappears if I remove the pivot from the cron job.
The pivot uses the simple Conversation pivots algorithm, with no magic world.
Only Conversation API and Conversation Pivots sub modules are enabled in my drupal config.
I tried to find this function in the module file, without success.
Any idea how to correct this ?

#1

chapo - November 20, 2008 - 12:26

I finally found how to solve this issue. Everything seems to work perfectly now.
However, I'm really surprised to see in Issues that I'm the only one having this problem. I maybe forgot something... Or I'm maybe totally wrong with my patch... But as I said, it works !

Here is the patch :

in pivot_forum.module, line 169 replace
pivots_magicworld_index($algorithm);
with
pivots_forum_index($algorithm);

Easy to fix (cron should call the function taking care of incremental indexing, which is pivots_forum_index()) but I really don't understand why this as not been patched already (If of course I'm right, but cron is almost mandatory when using pivots... Why does it work for others exept me ?)

In case somebody have the same problem, please report here in order to crosscheck.
Thanking you in advance,
And thanking again the developpers of this impressive module.

#2

danithaca - June 12, 2009 - 15:09
 
 

Drupal is a registered trademark of Dries Buytaert.