|
I had this issue and with the help of our service providers we manage to fix it so here is the solution we used. This is very technical for me..
====START====
Problem: Error “INVALID POST DATA” when installing Extensions via Magento Connect
Solution:
This seemingly-vague error message is rather straight-forward to solve. While I don’t claim to be an expert on Magento, these are the things I did to resolve this problem.
First, make sure that your firewall settings are correct - your site will need to be able to access connect.magentocommerce.com. Ask your host to check to see if it isn’t blocked by accident and that they can ping/traceroute/telnet to it from the server or network (in rare cases there may be networking issues between your host and the Magento’s servers)
Secondly, make sure that permissions are set correctly on the files. This will depend on your hosting setup, but normally the FTP user and the webserver user are different and both will need to have read/write access to the files and folders. I’ve seen recommendations for a permissions level of 664, however I’ve encountered issues with Apache not being able to read folders correctly without the executable bit set, thus 774/775 should be sufficient for everyone. If you’re not sure then please ask your hosting company.
Now, you should stop receiving that error. However, if you retried the download and it gave an error about unknown channels or that the connection to ‘proxy:3128’ failed, then it looks like pear is a bit broken.
This is solved the quickest via SSH. To fix the ‘unknown channels’ error, go into the root magento directory and run the following command:
./pear list-channels
If it can’t find the file, make sure that a) it exists b) it’s set to be executable for your user (if you aren’t sure, make its permissions 777, but note that this is rather insecure)
If the file exists and your user is allowed to run it, you should see a list of channels, eg:
doc.php.net
pear.php.net
pecl.php.net
__uri
Should you not see anything about Magento there, re-configure pear using the following command:
./pear mage-setup
You should see output like the following:
Running initial setup…
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
config-set succeeded
Adding Channel “connect.magentocommerce.com/core” succeeded
Discovery of channel “connect.magentocommerce.com/core” succeeded
Adding Channel “connect.magentocommerce.com/community” succeeded
Discovery of channel “connect.magentocommerce.com/community” succeeded
If you run “./pear list-channels” again you should see a list like the following:
connect.magentocommerce.com/community
connect.magentocommerce.com/core
doc.php.net phpdocs
pear.php.net
pecl.php.net
__uri
To fix the issue with connecting to ‘proxy:3128’, edit the file downloader/Maged/Pear.php and comment out the following line:
$config->set(’http_proxy’, ‘http://proxy:3128/’)
The ‘http_proxy’ setting is used in the rare case where your site is behind a firewall, or when it needs to talk to an upstream proxy server or similar. In the majority of cases, this setting is not needed, however if you’re not sure ask your host or server administrator.
The download should work now.
Thank you to xtrahost our service provider for the answer>
http://www.xtrahost.co.uk/magento/
|