Installing a fresh copy of Drupal 6.24 then adding 6.11 of Plugin Manager, after trying to update the repository for the first time, error is:

http://updates.drupal.org/release-history/project-list/all could not be saved.
An error occurred while downloading the repository.

No errors go into watchdog nor any other explanation can be found.

This happens on more than one server (have so far tried on 3 different servers). Rolling back and performing a new install with 6.22 Drupal and 6.11 plugin manager works fine.

Comments

SeanJA’s picture

It is not a php error. Maybe your webserver doesn't like using drupal_http get?

The file it is trying to download is ~10 mb, don't think that would be a problem.

Try this (if you are still working on it...):

line 269 of plugin_manager.module: ( in this function: plugin_manager_get )

var_dump($result);

What do you see?

rpgphil’s picture

I got the same problem, I put var_dump($result); on line 269
The output I got was object(stdClass)#2 (3) { ["request"]=> string(118) "GET /release-history/project-list/all HTTP/1.0 Host: updates.drupal.org User-Agent: Drupal (+http://drupal.org/) " ["code"]=> int(-1) ["error"]=> string(17) "request timed out" }
It was just timing out.
Since I was using wamp and my internet connection is not great, I downloaded http://updates.drupal.org/release-history/project-list/all and put it in the /files/plugin_manager_cache folder.
I re ran the update and everything was fine after that. I'm running drupal 6.25 .Hope this helps

webindustries’s picture

Will give this a go too - thanks guys!

mist’s picture

Status: Active » Needs work

Yes you can download repository from http://updates.drupal.org/release-history/project-list/all but it is saved as all.xml so it must be renamed to all and put into /files/plugin_manager_cache folder. After that run repository update and it works. rpgphil thx 4 tip.

ivor_neckles’s picture

Assigned: Unassigned » ivor_neckles
Status: Needs work » Active

Hi Guys:

Thanks a lot for all this data. Just been made admin on this project and new to drupal.org

Was hunting for last version of plugin_manager that worked. As it is not working for me under 6.28 nor 7 so I thought I might be able to help out fix things.

So thanks to webindustries comment starting this thread and the replies -- I see I can start with drupal 6.22 and plugin_manager 6.11
And get a heads up that their may be a time out problem with later version that can be partly resolved by a workaround from mist: namely:

' download repository from http://updates.drupal.org/release-history/project-list/all but it is saved as all.xml so it must be renamed to all and put into /files/plugin_manager_cache folder. After that run repository update and it works. rpgphil thx 4 tip.'

Might be worth my seeing actually if this workaround works for 6.28 also or whether other issues also prevent it running.

In any case why the code is timing out is something i will need look into.
There is only so much optimization that can be done before a slow internet connection will likely require raising the php.ini limits on code execution times.

Anyway got some meat to chew on here so thanks a bunch.
Will update you as things move forward but may not be fast just when I can fit it around life commitments.

Regards
Ivor