Active
Project:
Plugin Manager
Version:
6.x-1.11
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
4 Mar 2012 at 23:11 UTC
Updated:
4 Sep 2013 at 13:49 UTC
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
Comment #1
SeanJA commentedIt 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?
Comment #2
rpgphil commentedI 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
Comment #3
webindustries commentedWill give this a go too - thanks guys!
Comment #4
mist commentedYes 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.
Comment #5
ivor_neckles commentedHi 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