Module installation error!

I am running latest freePBX with asterisk 1.4 on Centos5 with all the updates and I am having problem installing some of the un-core modules.
For examples trying to install “Speed dial” I get the following error:


Speed dial functions cannot be installed:

* Module is required.

Please correct this error first.

It looks like I am missing one of the prerequisite modules but the message doesn’t tell me which one(s).

Further, my httpd error logs shows this:

[Mon Oct 01 16:22:02 2007] [error] [client 192.168.1.2] PHP Notice: Undefined variable: needed_module in /var/www/html/admin/functions.inc.php on line 2051, referer: http://192.168.1.161/admin/config.php?display=modules&type=tool&online=1

please let me know where to go from here.

-Matt

can you try this patch against your /var/www/html/admin/functions.inc.php and tell me if it tells you what module it needs? (It may be in ‘raw’ from but should give more info then you are getting).

Index: functions.inc.php
===================================================================
--- functions.inc.php   (revision 5075)
+++ functions.inc.php   (working copy)
@@ -2048,7 +2048,7 @@
                                                                        break;
                                                                }
                                                        } else {
-                                                               $errors[] = sprintf(_('Module %s is required.'), $needed_module);
+                                                               $errors[] = sprintf(_('Module %s is required.'), $matches[1]);
                                                        }
                                                }
                                        break;

Philippe Lindheimer - FreePBX Project Lead
http//freepbx.org - IRC #freepbx

I just applied the patch and the message now tells me the missing module name(s).