Closed (fixed)
Project:
Hosting
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
29 Feb 2008 at 22:36 UTC
Updated:
28 Mar 2008 at 19:31 UTC
We had an issue after installing hostmaster using the hostmaster profile. The profile creates an admin account and this seem to conflict with the hosting_wizard_steps() function.
We had to patch the hosting.module and it solved the issue:
Index: hosting.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/hosting/hosting.module,v
retrieving revision 1.20
diff -u -r1.20 hosting.module
--- hosting.module 26 Feb 2008 04:07:12 -0000 1.20
+++ hosting.module 29 Feb 2008 22:30:59 -0000
@@ -380,9 +380,9 @@
function hosting_wizard_steps() {
return array(
'#steps' => array('user_edit', 'provision_configure'),
- 'user_edit' => array("path" => "user/1/edit", 'title' => t("Change your account password."), "form_id" => "user_edit",
- 'message' => t('An administrator account has been registered for you.
- Please change your password to continue with the configuration process.')),
+ // 'user_edit' => array("path" => "", 'title' => t("Change your account password."), "form_id" => "user_edit",
+ // 'message' => t('An administrator account has been registered for you.
+ // Please change your password to continue with the configuration process.')),
'provision_configure' => array("path" => "admin/settings/provision", 'title' => t("Configure the provisioning framework."), "form_id" => "provision_configure",
'message' => t('To be able to create sites using Hostmaster, we need some information about your server. Please complete this configuration form.')),
);
@@ -483,4 +483,4 @@
$box = db_fetch_object(db_query('SELECT * FROM {boxes} WHERE bid=%d', $delta));
db_query("INSERT INTO {boxes} (bid, body, info, format) VALUES (%d, '%s', '%s', '%s')", $box->bid, $box->body, $box->info, $box->format);
}
-}
\ No newline at end of file
+}
Comments
Comment #1
adrian commentedIn hostmaster.profile, i create a user id 1, and then set the current user to that.
the user is redirected to the page to be able to change their password. I'm not sure why the uid change isn't working. will research and figure it out.
it works locally.
I've deployed it on hm2.bryght.com to determine the error.
Comment #2
anarcat commentedMore information on the bug:
we get this error:
The environment:
Linux hostmaster.koumbit.net 2.6.18-6-xen-amd64 #1 SMP Sun Feb 10 18:02:52 UTC 2008 x86_64 GNU/Linux
Debian GNU/Linux etch.
Comment #3
anarcat commentedAlso note that clean URLs don't seem to be enabled, which might be part of the problem.
Workaround: use http://hostmaster.example.com/?skip_wizard=true to bypass the wizard (thanks adrian!)
Comment #4
anarcat commentedI committed a fix in commit #105869, there was a problem in the provision module that was keeping the install from going smoothly.
I have also committed a small tune-up to help people debug the install in 105870.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.