Kayako 4 & WHMCS Integration

Discussion in 'Apps and modifications' started by aiso, Apr 26, 2011.

  1. aiso

    aiso Reputed Member

    Here is a Kayako module for WHMCS integration for both Kayako 3 & 4.

    To download the latest version of my code, go here:
    http://forge.kayako.com/projects/aiso-whmcs-integration

    Its features include:
    - Plug and Play configuration into WHMCS that overrides the default WHMCS ticket system and uses Kayako instead. Uses same look and feel as the default ticket system.
    - WHMCS Language support
    - User Edit hook support so when a user changes their email address, it changes the user record in Kayako as well.
    - LoginShare support (file included)
    - Ticket Paging support
    - You can pick what ticket statuses are displayed
    - Admin selectable allowed file attachment extensions retrieved from WHMCS admin area
    - File Attachments for tickets
    - WHMCS user ticket closing
    - Optional open ticket count listed under Client Area Account Statistics in WHMCS
    - Optional ticket list support on the client home page (there is no paging though)
    - SSL (https) Kayako API URL support, see ReadMe.txt file
    - Kayako Announcements support
    - WHMCS Knowledgebase Support (v 1.0+ module)
    - WHMCS v5 support including the new v5 client area template (v 1.01+ module)

    Demo
    Since my integration looks exactly like the built in WHMCS ticket system, you can demo here: http://demo.whmcs.com
    For more information, click here: http://www.heapsoftware.com/whmcs-kayako-module.htm

    Screenshots here:
    http://www.heapsoftware.com/whmcs_kayako_ss_1.jpg
    http://www.heapsoftware.com/whmcs_kayako_ss_2.jpg
  2. gmd8

    gmd8 Member

    Thank you for your work on trying to get WHMCS and Kayako connected! I tried downloading it on my installation of WHMCS, and for some reason the hook file (editticketsystememail.php) is causing all of my pages to go blank. If I remove just that file, everything works again.

    Thanks,
    Grant
  3. mblendinger

    mblendinger Established Member

    I try it and it broke my access to whmcs, it give error:
    ERROR: Domain does not match license key file domain (mi.wizhosting.com), allowed domains: soporte.wizhosting.com, please change the product path to match the domain under Admin CP > Settings > General Settings
    This Product will not work properly unless untill that value is changed.

    For more information please contact the kayako support at https://my.kayako.com
  4. mblendinger

    mblendinger Established Member

    I fixed it removing the file you added to the hooks.

    Please aware people it will not work if you have whmcs in other domain than kayako
  5. aiso

    aiso Reputed Member

    Which software gave you this error, kayako or WHMCS?
  6. mblendinger

    mblendinger Established Member

    where you get these values ?


    $mstrAPIKey = "mykey";
    $mstrSecretKey = "myseceret";


    (edit: sorry I found it now)
  7. aiso

    aiso Reputed Member

    Did you see any errors in the error logs or WHMCS logs in the admin area ? (so I can try and fix this for you and anyone else that might have a issue)
  8. mblendinger

    mblendinger Established Member

    This error:

    ------------------
    ERROR: Domain does not match license key file domain (xxxxxxxxxxxxx.com), allowed domains: yyyyyyyy.com, please change the product path to match the domain under Admin CP > Settings > General Settings
    This Product will not work properly unless untill that value is changed.

    For more information please contact the kayako support at https://my.kayako.com
    -----------------

    is a kayako licencing error, is the error you get when you try to run your kayako in a domain different as the licensed one.

    so when I add your code, it take it like I'm trying to run kayako from my whmcs domain, and this is not licensed
  9. mblendinger

    mblendinger Established Member


    same here.
  10. gmd8

    gmd8 Member



    I'm getting an error that says the following:
    Code:
    Fatal error: require_once() [function.require]: Failed opening required '/home/***/public_html/includes/clientfunctions.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/***/public_html/pathtowhmcs/modules/support/kayako/supporttickets.php on line 5


    I think it's looking in the wrong path on my server because WHMCS is installed in a separate directory and not the main /public_html/ directory of my server. After I corrected line 5 of supporttickets.php to point directly to that file, WHMCS' support pages then say "SOAP Error no operations defined in the WSDL document!" in a red box.
  11. aiso

    aiso Reputed Member

    Not even sure were to begin on this one, since my code uses the API. Do you see this error in WHMCS? If so you might need to contact kayako since I dont know how that would return in WHMCS when using the API. I have tested it and my WHMCS and Kayako install are on different domains. Plus there are a handfull of other people using this code with no problem like this.
  12. aiso

    aiso Reputed Member

    What version of Kayako are you running? I think I may have the reason why both of you are having an issue. If you are using my code, WHMCS and Kayako v3, you have to install craigbrasssystems API code for my code to work correctly.
  13. gmd8

    gmd8 Member

    I'm on v4.01.204.
  14. aiso

    aiso Reputed Member

    Ok, I fixed line 5 in that file along with the other two files and updated my code/zip to version 0.13. As far as the WSDL error, did you put in the config file the URL and other API info you get from the admin area of your Kayako install?
  15. aiso

    aiso Reputed Member

    you might want to look in modules\support\kayako\integrate.php as that file tells the system what version of my modules to use. See if v3 is uncommented out and comment it out and uncomment the v4 module.
  16. gmd8

    gmd8 Member

    That's what it was! It was using v3 integration and after changing that out by commenting in v4, it works perfectly! Thank you!
  17. aiso

    aiso Reputed Member

    No problem, you can update the other files from the zip and it should fix that path issue. Also make sure you use the hook file as well as that should work too.
  18. mblendinger

    mblendinger Established Member

    Hello, I'm using kayako v4.*.176 or so.

    forget about the api problem, My current problem is when I upload the hook file, whmcs do not load, any page get a blank page.

    thank you for all your work!
  19. aiso

    aiso Reputed Member

    Did you FTP up the file? And if so did you do it using binary mode? If you want, open the file and make sure there is no spaces between the end of the file and ?> at the bottom.
  20. cyberneticos

    cyberneticos Reputed Member

    Cool, new thread! Congrats Aiso!
    mblendinger likes this.

Share This Page