Closed (fixed)
Project:
Hosting
Version:
6.x-0.4-alpha3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
17 Nov 2009 at 21:40 UTC
Updated:
13 Dec 2009 at 23:40 UTC
Jump to comment: Most recent
Fatal error: Call to undefined function hosting_get_queues()...
hosting.drush.inc on line 17
my fault?
Comments
Comment #1
Anonymous (not verified) commentedPlease provide more information per the bug reporting guidelines
Comment #2
dixon_I can confirm this issue. The error appears when trying to run any drush command. I'll try to look into the problem and submit a patch if I can fix it.
Comment #3
dixon_It seems that Drupal is in a too early bootstrap phase.
hosting.moduleisn't included an that is why the fatal error is thrown. If I just try to include the module filet()andmodule_invoke_all()isn't defined either. The quick solution I came up with was to manually executedrush_bootstrap(DRUSH_BOOTSTRAP_DRUPAL_FULL)at the very beginning of the filehosting.drush.inc.I think it's strange that more people hasn't faced the same problem. Could it be an environment specific issue that makes Drush doesn't bootstrap the right way?
Here is my environment:
Comment #4
dixon_Comment #5
Anonymous (not verified) commentedWhere in the filesystem are you when you run the drush command? i.e does it occur when in the root of the platform /var/aegir/yourplatform, or in sites/your.main.aegir.site.com, or?
This issue's been mentioned quite a few times with various reasons for it: usually the reason is such that the module 'hosting' is not in /var/aegir/yourplatform/profiles/hostmaster/modules but in /sites/all/modules or sites/default or something like that.
See these tickets
#545168: fatal error on drush 'hosting setup' : hosting_get_queues() not found
#484268: Call to undefined function hosting_get_queues()
#498210: Install problems with drush
#446620: can't get past 'drush.php provision verify' failing
Comment #6
dixon_You may be right. I have the hosting module in sites/all/module. I will try to move it.
But then I think we have a problem with the make file, which downloads the hosting module to sites/all/modules. Isn't that right?
Comment #7
Anonymous (not verified) commentedThe make file downloads the hosting module (and others) and by design places them inside the 'modules' directory inside profiles/hostmaster/ . So if you installed using drush_make etc and it's put it in sites/all/modules, that is an issue that I've never reproduced.
Comment #8
Anonymous (not verified) commentedAll other modules ie install_profile_api, jquery_ui, modalframe etc should also be in that subdirectory. And the Eldir theme should be in /profiles/hostmaster/themes. It's not possible for drush_make to put these in the correct place but not the hosting module in the way the make file currently exists, so perhaps it was accidentally moved?
Good luck!
Comment #9
dixon_When setting up Aegir with
hostmaster.makeall modules is installed insites/all/modules. This is why the problem appears. Moving the hosting module toprofiles/hostmaster/modulessolved the problem.Thanks for quick answers!