i believe uc_hosting is broken in aegir 1.3
the steps i did to reach this conclusion:
1. fresh install of 1.3
2. drush -y -r /var/aegir/hostmaster -l http://`hostname` en uc_hosting uc_reports uc_hosting_products hosting_clone hosting hosting_migrate modalframe jquery_ui hosting_site hosting_signup hosting_cron hosting modalframe jquery_ui
3. go to admin/hosting/features/experimental and enable clients
4. got to content management/create content/product and create a product taking care to disable "Product and its derivatives are shippable."
5. save the product
6. edit the product's features and "Create a site and adjust quotas accordingly."
-----
purchase the product and .. nothing happens - it just says pending where as it is supposed to redirect the customer to the create site page.
pls. advise
Comments
Comment #1
marafa commentedsame thing in 1.4
Comment #2
sfyn commentedI understand the bug here to be that after a person clicks on the purchase link they are not provided with the site creation form.
I have tried, and failed, to reproduce your error. So I have some questions for you:
What method you are using to install aegir?
When you enabled the product feature did you check the option to "Force clients to create their site on purchase"?
When you navigate to the url purchase/site on your hostmaster install, what happens?
Comment #3
sfyn commentedWith regards to this comment:
"purchase the product and .. nothing happens - it just says pending where as it is supposed to redirect the customer to the create site page."
This could be because you have no order fulfillment enabled. The order will not complete so long as it is not paide for or marked as completed by an administrator.
Finally, the purchasing process is supposed to prompt you to enter your site creation info before you pay for it. So it should not redirect you once you have paid. That is not a feature of this module. Of course should you wish to submit code to make it a feature of this module I would welcome that with open arms.
Comment #4
marafa commentedsfyn
hi
i set up the test gateway to use credit cards (and key) and used a test credit card number to complete the purchase. i am presuming you meant this when you said fulfillment. it dint work
as to your second note, it when from the order shipping/billing details to "Your order is complete! "
how did i install it? http://community.aegirproject.org/discuss/hostmaster-automatic-install-c...
then used drush to dl and en uc_hosting
thanks
Comment #5
marafa commentedi just realised also it dint ask me for the domain name for the client.
and it dint work neither for user/1 nor anonymous user (which it created a hostmaster account for)
Comment #6
marafa commentedhi syfn
i just did an anonymous purchase and while the site will create an account for me on hostmaster it doesnt seem to associate drupal a/c with aegir account.
i have done this with credit card + test gateway and without. (the order is not available for the user)
Comment #7
ergonlogicHi Marafa,
Try usng the 1.x-dev version, and ensure the problem remains. There were a couple bug fixes that went in, but we haven't had a chance to roll a new release yet.
Comment #8
marafa commentedergonlogic thanks for looking into this. where/how do i download the dev version?
Comment #9
ergonlogicEither from the project page (http://drupal.org/project/uc_hosting), below the recommended version, you'll find a dev snapshot release. Or you could specify the version for Drush to download (drush dl uc_hosting-6.x-1.x-dev). Or you could clone the git repository (git clone --branch 6.x-1.x git://drupalcode.org/project/uc_hosting.git).
Comment #10
marafa commentedduh! i thought you meant aegir
Comment #11
marafa commentednope - and i saw the new submodule for a total of 3 enable modules under uc_hosting.
and i saw the new feature too which looks like it is the reverse of the old one but no. it dint work
Comment #12
marafa commentedhi
would appreciate if either of you could give me the output of
drush @hostmaster pm-list | grep Enabledand a sanitised sql dump of a test hostmaster setup you have.
i am thinking of verifying the enabled modules vs mine as well as importing the sql dump to see if it works on my vms (i have 2 at present)
thanks
Comment #13
ergonlogicI'm having a bit of trouble following you. Could you please confirm that you've followed the installation instructions exactly as written in the documentation? Have you watched the video walk-through I did in London (linked in the docs)?
I would strongly advice you to follow the installation instructions for both uc_hosting and Aegir exactly, at least when trying to debug an initial install. So, for example, at step 2 (above) you wrote:
A few notes:
* You re-declare the same modules several times, which I assume Drush just ignores, but should probably be avoided.
* While valid, it is generally preferable to use drush aliases rather than specifying a root and uri explicitly.
* 'hosting', 'hosting_site', 'modalframe' & 'jquery_ui' should all be enabled with a base aegir install, and having disabled them previously could well be a source of problems.
* None of 'hosting_clone', 'hosting_migrate', 'hosting_cron' nor 'uc_reports' are actually required for uc_hosting to run. While they should all work fine together, isolating the source of the problem you're having would be much easier with a minimum of features enabled.
* Also, you seem to have followed the instructions out of order, as they say to activate the client feature prior to enabling uc_hosting_products (I don't know that this would actually cause a problem, but still...).
Comment #14
marafa commentedok
drush -y @hostmaster dl ubercart token
drush -y @hostmaster en hosting_client
drush -y @hostmaster dl uc_hosting
drush -y @hostmaster en uc_hosting uc_hosting_products
this is what i did:
enabled hosting/features/experimantal/clients
enabled Automatically create user accounts for new clients.
enabled sign up form in clients
reconfigured my homepage to go to node
create product
go to the products node / edit /features /
enabled create a site and add quotas accordingly
enabled force clients to create a site at purchase
went to home page and purchased a site.
no site creation form
---------
this is the list of modules enabled on my dev :
[aegir@aegirdev ~]$ drush @hostmaster pm-list | grep -i enable
Administration Administration menu (admin_menu) Module Enabled 6.x-1.8
Core - optional Color (color) Module Enabled 6.22
Core - optional Help (help) Module Enabled 6.22
Core - optional Menu (menu) Module Enabled 6.22
Core - optional Update status (update) Module Enabled 6.22
Core - required Block (block) Module Enabled 6.22
Core - required Filter (filter) Module Enabled 6.22
Core - required Node (node) Module Enabled 6.22
Core - required System (system) Module Enabled 6.22
Core - required User (user) Module Enabled 6.22
Hosting Client (hosting_client) Module Enabled
Hosting Client Quota (hosting_quota) Module Enabled
Hosting Database Server (hosting_db_server) Module Enabled
Hosting Hosting (hosting) Module Enabled
Hosting Hosting Cron (hosting_cron) Module Enabled
Hosting Hosting tasks (hosting_task) Module Enabled
Hosting Package management (hosting_package) Module Enabled
Hosting Platforms (hosting_platform) Module Enabled
Hosting Server (hosting_server) Module Enabled
Hosting Site cloning (hosting_clone) Module Enabled
Hosting Site migration (hosting_migrate) Module Enabled
Hosting Sites (hosting_site) Module Enabled
Hosting Web Server (hosting_web_server) Module Enabled
Hosting & Ubercart Integration Aegir Ubercart Integration (uc_hosting) Module Enabled 6.x-1.1
Hosting & Ubercart Integration Aegir Ubercart Products (uc_hosting_products) Module Enabled 6.x-1.1
Modal frame Modal Frame API (modalframe) Module Enabled 6.x-1.7
Other Install Profile API (install_profile_api) Module Enabled 6.x-2.1
Other Token (token) Module Enabled 6.x-1.16
Ubercart - core Cart (uc_cart) Module Enabled 6.x-2.6
Ubercart - core Conditional Actions (ca) Module Enabled 6.x-2.6
Ubercart - core Order (uc_order) Module Enabled 6.x-2.6
Ubercart - core Product (uc_product) Module Enabled 6.x-2.6
Ubercart - core Store (uc_store) Module Enabled 6.x-2.6
User interface jQuery UI (jquery_ui) Module Enabled 6.x-1.5
Other Eldir (eldir) Theme Enabled 6.22
Comment #15
marafa commentedFOUND the bug!
the sku must be alphanumeric.
i tried the following as sku:
1 123 12345 abc123 a1
only the alphanumeric sku worked!
and if you create a product with a sku of "1" then edit it to "a1" it wont work either
Comment #16
ergonlogicIntereting. Thanks for looking into this, Marafa.
Comment #17
marafa commentedi had no choice ;)
Comment #18
sfyn commentedThis seems like an undocumented ubercart "feature" to me. But it bears investigation. Ubercart does not validate for alphanumeric skus, so we need to check and see if the dependancy for skus without spaces in them is buried in our code or present in ubercart.
I have opened a new issue to deal with that: #1302400: Allow for SKUs with spaces in them.
Marking this support request as fixed.