Your version of FreePBX is out of date

Your version of FreePBX is out of date

If you received this error whilst using the Connect to Online Module Repository
function, this means that your system is out of date. Upgrading to the
latest released version is always painless and transparent.

You can not upgrade by simply clicking on the 'Upgrade'
button on the Online Modules page - The only way to upgrade a Core
version is by downloading the released packages

If you're unsure on how to upgrade, follow the "freePBX-Upgrading" Note: Link is dead, removed Updating instructions.
A normal upgrade takes less than 15 seconds (after doing the download)
and there is no interruption to service. Trixbox users MUST read the
'Important' section further down, or else asterisk won't start
properly. You have been warned!

Note that you can use the 'Online Support' module to connect to IRC
and talk to people there if you're unable to upgrade successfully.

If you like freePBX, and use it, why not make a donation? You can
use the button on the right, for any amount. It's all appreciated.
Also, if you need commercial support, you can use the buttons on the
left for prompt help!

Possible errors:

Trixbox Users (important!)
You need to delete the file /usr/lib/asterisk/modules/app_trunkisavail.so

[root@asterisk1 ~]# rm /usr/lib/asterisk/modules/app_trunkisavail.so

[root@asterisk1 ~]#

That module also breaks any non-trixbox upgrades, so it's a good idea to get rid of it anyway.

If you're still seeing the 'You need to upgrade' message:
Unfortunately, there is no way I could force the 2.1 machines to ignore their cached XML update file. You've got two options:

Wait an hour until it times out, and then you'll have the new
module list (It's ok - all your modules are still there, your machine
is still working)

or

From mysql run the command

[root@asterisk1 freepbx]# mysql asterisk

(You may need to put -uasteriskuser and -pamp109 on that line as well - check the file /etc/amportal.conf for ASTDBUSER and ASTDBPASS)

Reading table information for completion of table and column names

You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor. Commands end with ; or \g.

Your MySQL connection id is 1856 to server version: 4.1.20

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> truncate module_xml;

Query OK, 0 rows affected (0.03 sec)

mysql> \q

Bye

[root@asterisk1 freepbx]#

After that, when you go to online modules, it'll download the correct, fresh, copy.