Ver 2.1.3 - Online Module Repository fail to load

The modules are not loading. I get :
Terminate Connection to Online Module Repository
Force Refresh of Local Module Cache
Warning: file_get_contents(http://mirror.freepbx.org/version-2.1.3.html): failed to open stream: HTTP request failed! $)n�3f in /var/www/html/admin/page.modules.php on line 113

Warning: file_get_contents(http://mirror.freepbx.org/modules-2.1.xml): failed to open stream: HTTP request failed! in /var/www/html/admin/page.modules.php on line 470

I can manually do a
wget http://mirror.freepbx.org/modules-2.1.xml
so I know this file is there. But when I do
wget http://mirror.freepbx.org/version-2.1.3.html
then I get a empty file.

I think that the problem is in the code that tries to download the XML file. I downloaded the modules-2.1.xml to /usr/src/freepbx-modules/modules.xml
I then edited the /var/www/html/admin/page.modules.php file and uncommented the line //$fn = “/usr/src/freepbx-modules/modules.xml”;

When I try to Connect to Online Module Repository I still get the error about the missing http://mirror.freepbx.org/version-2.1.3.html file. But it finds the XML file.
I can now select to upgrade some modules.
So far so good.
But this file cannot be downloaded and I get:
Warning: file_get_contents(http://mirror.freepbx.org/modules/release//2.1/manager-1.0.4.tgz): failed to open stream: HTTP request failed! in /var/www/html/admin/page.modules.php on line 591
File Integrity FAILED for /var/www/html/admin/modules/_cache/manager-1.0.4.tgz - Aborting

I then download the missig file using wget http://mirror.freepbx.org/modules/release//2.1/manager-1.0.4.tgz and put the file in /var/www/html/admin/modules/_cache/ directory.

When I retry Connect to Online Module Repository then the module is upgraded.

It seems to me that the code that is supposed to download files does not work. I guess that If I download the files refered to in the modules-2.1.xml Then it will work.

About my setup: trixbox 1.2 Then a upgrade to freepbx as described here http://aussievoip.com.au/wiki/index.php?page=freePBX-Upgrading

Did you follow This?

[code:1]wget http://easynews.dl.sourceforge.net/sourceforge/amportal/freepbx-2.1.3.tgz
tar xzf freepbx-2.1.3.tgz

Installing the New Files
cd freepbx-2.1.3
./install_amp
[/code:1]

Dont do any restore, try Module respository first.
(it worked great for us)

Yes