Problem with sub domain provisioning and status

Hi...

I've set up MU Provisioning as per your instructions however I'm having 2 issues:

1/ The domain name & title are not being set even though I have set up the custom fields for it. So the order is placed, and then sits as pending as no domain name to assign to.

2/ (When I disable 1/ and run with the require domain option) It gets given it's domain name and provisions the site however, it still sits as pending in WHMCS and does not automatically go to live status.

Any help greatly appreciated!

Thanks...

  • PC

    Hiya,

    Greetings and thanks for posting on the forums.

    I hope that you have already followed the complete instructions here ?

    https://premium.wpmudev.org/project/whmcs-multisite-provisioning/#usagef

    I will be testing it on my lab site to see what the problem might be but before that I just wanted to make sure that everything is setup as per the usage page.

    Please advise.

    Cheers, PC

  • Gorillas

    Yep. Something has come up... Here it is below (FYI: I took out credential info and replaced with [[ ]]):

    Date: 22/05/2013 17:32

    Module: whmcs_multisite server

    Action: createaccount

    Request:

    whmcs%5Baction%5D=create&
    whmcs%5Bdomain%5D=&
    whmcs%5Btitle%5D=&
    whmcs%5Buser_name%5D=[[name]]&
    whmcs%5Bpassword%5D=[[password]]&
    whmcs%5Bemail%5D=[[email]]&
    whmcs%5Blast_name%5D=[[last name]]&
    whmcs%5Bfirst_name%5D=[[first name]]&
    whmcs%5Bdefault_role%5D=administrator&
    whmcs%5Bupload_space%5D=500&
    whmcs%5Bcredentials%5D%5Buser_login%5D=[[username]]&
    whmcs%5Bcredentials%5D%5Buser_password%5D=[[password]]&
    whmcs%5Bcredentials%5D%5Bremember%5D=0&
    whmcs%5Bcredentials%5D%5Bwhmcs_client_id%5D=1&
    whmcs%5Bcredentials%5D%5B
    whmcs_service_id%5D=14&
    whmcs%5Bcredentials%5D%5B
    whmcs_product_id%5D=1

    Response:

    Array
    (
    [error] => : Is not a valid domain name, alphanumeric and "-" only
    )

    Make any sense?

    Thanks...

  • Arnold

    It's saying you used a bad domain name

    [error] => : Is not a valid domain name, alphanumeric and "-" only

    Url decode the request

    whmcs[action]=create&
     whmcs[domain]=&
     whmcs[title]=&
     whmcs[user_name]=[[name]]&
     whmcs[password]=[[password]]&
     whmcs[email]=[[email]]&
     whmcs[last_name]=[[last name]]&
     whmcs[first_name]=[[first name]]&
     whmcs[default_role]=administrator&
     whmcs[upload_space]=500&
     whmcs[credentials][user_login]=[[username]]&
     whmcs[credentials][user_password]=[[password]]&
     whmcs[credentials][remember]=0&
     whmcs[credentials][whmcs_client_id]=1&
     whmcs[credentials][
     whmcs_service_id]=14&
     whmcs[credentials][
     whmcs_product_id]=1

    Note the domain and title fields are blank so something in their setup is not correct. because what your typing in is not getting sent.

  • Arnold

    Well it hard to tell where it went wrong. Are you doing a Domain mapping install? /you should only be using custom fields on a sub only install.

    == WHMCS Server Module configuration ==
    1. In WHMCS admin go to Setup | Servers and Add New Server
    2. Give the Server a name meaningful to you.
    3. Enter the Hostname = primary domain of the Wordpress install you want to control (mydomain.tld)
    4. Enter Monthly cost
    5. Set the Type to whmcs_multisite
    6. Set the Username to a Super Admin username on your Wordpress site.
    7. Set the Password to the Super Admin password.
    8. Save.
    9. In Servers Create New Group and add this server to it.

    == WHMCS Addon Module configuration ==
    1. In WHMCS admin go to Setup | Addon Modules
    2. Activate the WHMCS Multisite Module
    3. Set Access Control as appropriate for your administrators.

    == If your Wordpress Install is Subdomain or Subdirectory ONLY, no Domain Mapping ==
    Create a Product
    1. Create a Product Group to Hold the new products
    2. In WHMCS admin go to Setup | Product/Services and Add New Product
    3. Create a Product and Set the Product Type to Hosting Account.
    4. Set the product Group to the one created above.
    5. Give the Product a meaningful name
    6. On the Details tab UNTICK Require domain. Other fields as you prefer
    7. On the Modules Settings Tab Select whmcs_multisite as the Module name
    8. Select the Server Group defined above.
    9. Set a default blog title. This can be edited by the user in Wordpress after blog is created ("My New Blog").
    10. Set a default Blog Domain. If you're not using Custom fields(see below) this is the default domain name that will be used with numbers appended.
    11. Set the default role of the User that may be created for this product. Usually "administrator".
    12. Set the Web Space Quota or leave blank for Wordpress default value.
    13. Tick the two custom field names if you are using custom fields to define the Title and Domain.
    14. Set the Radio buttons for when the product setup will occur.
    15. On the Custom fields Tab, create two custom fields.
    16. First custom field must be named "Domain", as a Textbox Validation "|^([a-zA-Z0-9-])+$|i" (without quotes), Required field, Show on Order Form.
    17. Second custom field must be named "Title", as a Textbox Validation "|^([a-zA-Z0-9- ])+$|i" (without quotes), Required field, Show on Order Form.
    18. Rest of the Product fields are Admin's choice.

    == If your Wordpress Install Offers Domain Mapping as well as subdomain/subdirectory installs ==
    Create a Product =
    1. Create a Product Group to Hold the new products
    2. In WHMCS admin go to Setup | Product/Services and Add New Product
    3. Create a Product and Set the Product Type to Hosting Account.
    4. Set the Product Group to the one created above.
    5. Give the Product a meaningful name
    6. On the Details Tab TICK Require domain. Other fields as you prefer
    7. On the Modules Settings Tab Select whmcs_multisite as the Module name
    8. Select the Server Group defined above.
    9. Set a default blog title. This can be edited by the user in Wordpress after blog is created ("My New Blog").
    10. Set a default Blog Domain. If you're not using Custom fields(see below) this is the default domain name that will be used with numbers appended.
    11. UNTICK the two custom field names.
    12. Set the default role of the User that may be created for this product. Usually "administrator".
    13. Set the Web Space Quota or leave blank for Wordpress default value.
    14. Set the Radio buttons for when the product setup will occur.
    15. Do not create custom fields.
    16. If you want to offer subdomain/subdirectory installs as well as Domain Mapping =
    17. On the Other Tab fill in the Subdomains Option with your sites primary domain ('.mysite.com") Note the leading dot.
    18. Rest of the Product fields are Admin's choice.

    == Known Issues ==
    1. If a user does not already exist on Wordpress as determined by matching the WHMCS Clients email
    with the Wordpress users email, a new user will be created using the WHMCS Client's email address and
    the portion before the '@' as the users name. If you are Accepting Orders in Admin before creation you
    can change the default username there. Once the username is created it cannot be changed.

    2. If the WHMCS clients email address already exists as a user in Wordpress the Wordpress user account
    will override what you may put in WHMCS. Wordpress user names can not be changed and this is enforced in WHMCS.

    3. WHMCS generates random passwords when creating a service. If a new Wordpress user is
    created as a result this random password is the password for the new user. If the user already exists
    in Wordpress WHMCS still generates a random password but it does NOT change the Wordpress password.
    WHMCS can change the password on Wordpress but Wordpress password changes will not be feed back to WHMCS.

    4. Each WHMCS service creates different random passwords so they will not match if a Client has more than one
    service at the same Wordpress site.