New ISPConfig module for WHMCS

Discussion in 'Tips/Tricks/Mods' started by cwispy, Dec 11, 2014.

  1. pinkfeet

    pinkfeet Member HowtoForge Supporter

    Hi , it's very interesting and very useful, i would like to contributing to this ! When these changes are finished i would like to add new mailboxes from whmcs. Probably i question you for some doubts.
    Thanks for this work!!
     
  2. cwispy

    cwispy Active Member

    Hi pinkfeet,

    The creation and editing of email accounts is included and is working. Here is a screenshot of an edit to an existing email account.

    Screenshot_2017-11-01_18-38-13.png
     
    Last edited: Nov 2, 2017
  3. Jmlz

    Jmlz New Member

    Hi cwispy
    I have a problème this error : Error: SOAP Error: no_server_error<br />

    It create only the guest and
    I look good the hostname on the /etc/hosts both on my ispcionfg server and on my whmcs server.
    Someone can help please,
     
  4. cwispy

    cwispy Active Member

    The server names you use in WHMCS must match the server names in ISPConfig exactly.
     
  5. Jmlz

    Jmlz New Member

    Thank you for your reply.
    That is exactly the case but it does'nt work.
    on my system debug log on my whmcs server, that informations are exactely the same on my ispconfig server information:

    [server] => 1
    [serverip] => XXX.XXX.XXX.XXX
    [serverhostname] => web.myservername.tld
    [serverusername] =>
    [serverpassword] =>
    [serveraccesshash] =>
    [serversecure] => on
    [serverhttpprefix] => https
    [serverport] =>
    [action] => create

    I can not find where the trouble
     
  6. cwispy

    cwispy Active Member

    The error Error: SOAP Error: no_server_error is returned from ISPConfig when a server that you are passing from the module can not be found. So you will need to re check all of your settings in the module and the product. The module only uses the server names, not the IP addresses for the ISPConfig servers.
     
  7. cwispy

    cwispy Active Member

    DO NOT USE IN PRODUCTION YET!

    I have just committed a heap of changes to the module for the client area stuff.
    If anyone has a development WHMCS / ISPConfig 3.1+ system that can run up the current code and test for errors and issues would be appreciated. There is still a bit of work to do, but the bulk of it is there and working now.
     
    blacklevel likes this.
  8. blacklevel

    blacklevel Member

    Very much looking forward to the upgrade...
     
    cwispy likes this.
  9. cwispy

    cwispy Active Member

    Unless others find issues which I have not been able to find, I just need to finish off the code which checks for account limits and quota's and then test it for a bit before it will be ready for deployment.
     
  10. blacklevel

    blacklevel Member

    After ispconfig upgrade to 3.1.7 there are one big error:
    __________________
    Module Command Error
    SOAP Error: no_server_error
    _______________
    My server names in WHMCS match the server names in ISPConfig exactly, servers in a ispcfg3 group (and nameserver).
    createclient, createdomainadd is OK.
    creatednszone - created record with empty dns server.
    [​IMG]
    [​IMG]
    Site - create failed.
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    Check in ISPConfig under system > services if the correct servers are marked as dns servers there.
     
    cwispy likes this.
  12. cwispy

    cwispy Active Member

    Thanks. Confirmed as a bug. I will get it fixed.
     
  13. cwispy

    cwispy Active Member

    I have fixed this issue. The module now uses the template assigned in the module to retrieve the limit settings and default servers assigned to the template. This means that a lot of the items in the WHMCS modules settings page are no longer relevant and will be removed. Settings which have been made redundant with these changes are ISPConfig Usertheme, Global Client PHP Options, Global Client Chroot Options, ISPConfig Version, Website Quota, Traffic Quota, Website Settings, PHP Mode. The DNS settings will also likely go soon too,
     
    blacklevel, Jesse Norell and till like this.
  14. Jmlz

    Jmlz New Member

    Thank you,
    this fixe the issue about SOAP ERROR: no_server_error . It was the issue from my ispconfig version, I allready use 3.1.x before updating from your last update for the module.

    I will test the changes to the module for the client area and return you a feedback.
     
  15. Jmlz

    Jmlz New Member

    Tested on ispconfig 3.1.7p1 and WHMCS 7.1.0 :
    There is this warnig but it work :
    Warning: Invalid argument supplied for foreach() in /whmcsDirectory/modules/servers/ispcfg3/views/websites.php on line 164
     
  16. cwispy

    cwispy Active Member

    Thanks for the report. I will check it out.
     
  17. cwispy

    cwispy Active Member

    I have checked and I am unable to replicate the error. Can you check out the latest changes from GIT and check again please?
     
  18. blacklevel

    blacklevel Member

    There is still some strange problem with dns :)
    Module Create Failed - Service ID: 1458 - Error: SOAP Error: data_error_empty<br /> ip_error_wrong<br />

    HTML:
    Array
    (
      [server_id] =>
      [zone] =>
      [name] => testytest8.com.
      [type] => A
      [data] =>
      [aux] => 0
      [ttl] => 3600
      [active] => y
      [stamp] => 2017-11-08 04:13:34
      [serial] =>
    )
     
  19. blacklevel

    blacklevel Member

    P.S.
    My default DNS template is:
    HTML:
     [ZONE]
    origin={DOMAIN}.
    ns={NS1}.
    mbox={EMAIL}.
    refresh=7200
    retry=540
    expire=604800
    minimum=3600
    ttl=3600
    
    [DNS_RECORDS]
    A|{DOMAIN}.|{IP}|0|3600
    A|www|{IP}|0|3600
    A|mail|{IP}|0|3600
    NS|{DOMAIN}.|{NS1}.|0|3600
    NS|{DOMAIN}.|{NS2}.|0|3600
    MX|{DOMAIN}.|mail.{DOMAIN}.|10|3600
    TXT|{DOMAIN}.|v=spf1 mx a ~all|0|3600
     
  20. cwispy

    cwispy Active Member

    Grab the latest ispcfg3.php from github. I have changed the way all of the works now and I had not committed all of the changes.
     

Share This Page