Freepbx-cron-scheduler.php error

Hello,

I am a freepbx novice so please bear with me. I can get around a little bit but by no means am I proficient.

Here are my current versions. I know they are old. As a beginner to VOIP,
I am trying to get familiar with the system before making any changes. At some point, once I work out as many of the issues I am having as I can, I will get up the nerve to do an update.

This is a production system (about 30 extensions) and I can’t afford to
have it crash on me without having the knowlege to repair it.

Trixbox version Version: 1.2.3
Kernel Version 2.6.9-34.0.2.ELsmp (SMP)
Distro Name CentOS release 4.4 (Final)
Created by phpSysInfo-2.5.2_rc2

Version
Asterisk 1.2.12.1

FreePBX 2.3.1.1 on 10.0.0.5


My issue at this time:

This just started (as far as I can tell) at 9:04 this AM 1/6/2010. I got an email:

From: Cron Daemon [mailto:[email protected]]
Sent: Wednesday, January 06, 2010 9:04 AM
To: [email protected]
Subject: Cron asterisk@asterisk1
/var/lib/asterisk/bin/freepbx-cron-scheduler.php


Fatal error: Unsupported operand types in /var/lib/asterisk/bin/module_admin on line 142
_____________________________________________

I looked at line 142 in module_admin and found this:

$modules += $modules_online;

I presume the “+” doesn’t belong there? IE the unsupported operand type? Can I (should I) just delete it ?

Below is the section that the line is from. The date on module_admin is Dec 2007. IE no mods have been made to it since then. What would cause this to all of a sudden start happening now, and how did this “+” get there?

Any help much appreciated.

Thanks.


function showList($online = false) {
$modules_local = module_getinfo();
$modules = $modules_local;
if ($online) {
$modules_online = module_getonlinexml();
$modules += $modules_online;
}
ksort($modules);

    outn(str_pad("Module", 20));
    outn(str_pad("Version", 18));
    out("Status");

    outn(str_repeat('-', 19).' ');
    outn(str_repeat('-', 17).' ');
    out(str_repeat('-', 19).' ');

You’ve got nothing to lose so go for it. You can always put it back. In some programming languages, it would mean add $modules_online to the value of $modules and store the new value in $modules. I doubt that it means that here.

The error you see is no related to the line that you reference. The code is still the same in the latest release.

You can try this:

/var/lib/asterisk/bin/module_admin listonline

You should get a list of modules that differ from those that you have online, or a list that says Enabled and up to date