Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED WHMCS integration problem after upgrade to 74

Discussion in 'General Discussion' started by sozotech, Aug 14, 2018.

Tags:
  1. sozotech

    sozotech Well-Known Member

    Joined:
    Jul 26, 2013
    Messages:
    91
    Likes Received:
    2
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    We manage various different hosting brands running WHMCS and noticed that after cPanel has upgraded to v74 the integration has stopped working. For example, suspend/unsuspend/change password now fails when you try to run these commands from the product view in WHMCS. This is happening on various different WHMCS installations.

    Here is an example of a change password function.

    module=cpanel action=passwd request="user=webchill&pass=SomePassword" response="
    <!DOCTYPE html>
    <html lang="en" dir="ltr">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="google" content="notranslate" />
    <meta name="apple-itunes-app" content="app-id=1188352635" />
    <title>WHM Login</title>
    <link rel="shortcut icon" href="data:image/x-icon;base64,AAABAAEAICAAAAEAIADSAgAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAAgAAAAIAgGAAAAc3p69AAAAplJREFUWIXt1j2IHGUYB/DfOzdnjIKFkECIVWIKvUFsIkRExa9KJCLaWAgWJx4DilZWgpDDiI0wiViIoGATP1CCEDYHSeCwUBBkgiiKURQJFiLo4d0eOxYzC8nsO9m9XcXC+8MW+3z+9/l6l2383xH+iSBpElyTdoda26xsDqp/h0CVZ3vwKm7tMBngAs7h7eRYebG6hMtMBHbMBX89vfARHprQ5U8cwdFQlIOZCVR5di1+w/wWXT/EY6EoN5NZCODuKZLDwzgSMCuBe2fwfX6QZwtpWzqfBBtLC3txF/ZhxKbBGx0EfsTJS77vwmGjlZrD4mUzUOXZjVjGI65cnTXchB8iupdDUb7QinsQZ7GzZftdQj2JVZ49iC/w6JjksIo7OnS9tiA5Vn6GtyK2+1MY5NkhfGDygVrBAxH5WkPuMjR7/3UsUFLl2Q68s4XkA3ws3v9zoSjX28Kr5wL1xrTxa6ou+f6OZGvqPg9v1wZeaUjcELE/DVfNhWFSvy/enOIZ9eq1sTokEMNLWI79oirP8g6fXpVnh7GEvY1sV/OJ4f0UhyKKk6EoX4x5pEkgXv6L6OM99YqNw/c4kXSwG5nkIfpLCynuiahW1GWeJHkfT4aiXO9atz1XcD6I6yLyHu6bIPk6Hg9FeYZ63y9EjBarPDvQ8VJ1nd9V3D4m+RncForyxFCQ4hSeahlej88Hefauurdwaufr5z/F/ZHAX6nL+mZE18e36IWiHLkFocqzW9QXcNz1+wUHxJ/f10JRPjvGP4pk/vj5L3F8AtufdD+/p6dJDknzX+05fDLGtife/766t9MRgFCUffWTudwE3AqBlVCUf0xLYGTQqzzbhydwJ3Y34g318J1tmX+DPBTlz9MS2MY2/nP8DTGaqeTDf30rAAAAAElFTkSuQmCC" type="image/x-icon" />
    <!-- EXTERNAL CSS -->
    <link href="/cPanel_magic_revision_1386192030/unprotected/cpanel/fonts/open_sans/open_sans.min.css" rel="stylesheet" type="text/css" />
    <link href="/cPanel_magic_revision_1534150816/unprotected/cpanel/style_v2_optimized.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    /*
    This css is included in the base template in case the css cannot be loaded because of access restrictions
    If this css is updated, please update securitypolicy_header.html.tmpl as well
    */
    .copyright {
    background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzNTlwdCIgaGVpZ2h0PSIzMjAiIHZpZXdCb3g9IjAgMCAzNTkgMjQwIj48ZGVmcz48Y2xpcFBhdGggaWQ9ImEiPjxwYXRoIGQ9Ik0xMjMgMGgyMzUuMzd2MjQwSDEyM3ptMCAwIi8+PC9jbGlwUGF0aD48L2RlZnM+PHBhdGggZD0iTTg5LjY5IDU5LjEwMmg2Ny44MDJsLTEwLjUgNDAuMmMtMS42MDUgNS42LTQuNjA1IDEwLjEtOSAxMy41LTQuNDAyIDMuNC05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Mi4xNTMgMTQuNjU1IDMwLjE1MyAyNS4wNSA3Ljk5NyAxMC40MDIgMTMuNSAyMi4yNTQgMTYuNSAzNS41NSAzIDEzLjMwNSAyLjU5NCAyNi45NTQtMS4yMDIgNDAuOTVsLTEuMiA0LjVjLTIuNTk3IDkuNjAyLTYuNTk3IDE4LjQ1LTEyIDI2LjU1LTUuMzk4IDguMDk4LTExLjg0NyAxNS4wNTItMTkuMzQ3IDIwLjg0OC03LjUgNS44MDUtMTUuODU1IDEwLjMwNS0yNS4wNSAxMy41LTkuMiAzLjIwNC0xOC44MDUgNC44MDUtMjguODA1IDQuODA1aC01NC4yOTdsMTAuOC00MC41YzEuNi01LjQwMiA0LjYtOS44IDktMTMuMjAzIDQuMzk2LTMuMzk4IDkuNDk3LTUuMTAyIDE1LjMwMi01LjEwMmgxNy4zOThjNy4yIDAgMTMuNjUzLTIuMiAxOS4zNTItNi41OTcgNS42OTUtNC4zOTggOS40NDUtMTAuMDk3IDExLjI1LTE3LjEgMS4zOTQtNC45OTcgMS41NDctOS45LjQ0NS0xNC43LTEuMS00LjgtMy4wNS05LjA0Ny01Ljg0OC0xMi43NS0yLjgtMy42OTUtNi40MDItNi42OTUtMTAuNzk2LTktNC40MDYtMi4yOTctOS4yMDYtMy40NS0xNC40MDItMy40NUgyMzMuMzlsLTQzLjggMTYyLjkwM2MtMS42MDYgNS40LTQuNjA2IDkuNzk3LTkgMTMuMTk1LTQuNDAzIDMuNDA3LTkuNDA2IDUuMTAyLTE1IDUuMTAyaC00MS43IiBmaWxsPSIjZmY2YzJjIi8+PC9nPjwvc3ZnPgo=) no-repeat scroll center top transparent;
    background-size: 25px auto;
    }
    </style>
    <!--[if IE 6]>
    <style type="text/css">
    img {
    behavior: url(/cPanel_magic_revision_1487648048/unprotected/cp_pngbehavior_login.htc);
    }
    </style>
    <![endif]-->
    <script>
    window.DOM = { get: function(id) { return document.getElementById(id) } };
    </script>
    </head>
    <body class="whm">
    <p class="logo"><img class="main-logo" src="/cPanel_magic_revision_1487648046/unprotected/cpanel/images/whm-logo_white.svg" alt="logo"></p>
    <div class="error_notice">
    <div id="error-wrapper">
    <div id="error_msg_contents">
    <h2>HTTP error 404</h2>
    <p>The requested page was not found.</p>
    <h2>Possible reasons why you are seeing this page:</h2>
    <ul>
    <li>A bookmarked URL may have changed since you last visited.</li>
    <li>The URL was entered incorrectly.</li>
    <li>The URL was entered with inaccurate capitalization (URLs are <a href="Case sensitivity - Wikipedia">case sensitive</a>).</li>
    </ul>
    <p>Please re-check the URL you are trying to reach. (<a href="javascript:history.back()">Go Back</a>)</p>
    </div>
    </div>
    </div>
    <div class="copyright">Copyright© 2018 cPanel, Inc.
    <br /><a href="Privacy Policy | cPanel, Inc." target="_blank">Privacy Policy</a></div>
    </body>
    </html>
    "

    When I attempt Test Connection from Setup->Products/Service->Servers I get "Failed: Array". I tried using the password and hash method. I am guessing something is failing when talking to the cPanel server now. Any ideas?

    Best regards,
    Eric
     
  2. sozotech

    sozotech Well-Known Member

    Joined:
    Jul 26, 2013
    Messages:
    91
    Likes Received:
    2
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    FYI-this "Failed Array" seems to also happen on servers using API tokens....
     
  3. sozotech

    sozotech Well-Known Member

    Joined:
    Jul 26, 2013
    Messages:
    91
    Likes Received:
    2
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Sorry to keep posting to my own thread...just working though debugging this. I created a new API token. Looking at the /usr/local/cpanel/logs/api_tokens_log when I do a test connection, I see the following log entry.

    [2018-08-14 10:11:19 -0400] info [whostmgrd] HTTP Status: ['404'], User: ['root'], Token Name: ['WHMCS-New'], Request: ['POST //xml-api/version HTTP/1.1']

    So it is telling me the same thing as the response that I got above that the page is not found...
     
  4. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    1,088
    Likes Received:
    442
    Trophy Points:
    113
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Kernel 2.6.32-896.16.1.lve1.4.54.el6.x86_64 plus Kernelcare
    OS CLOUDLINUX 6.10 standard
    WHMCS 7.6.0
    cPanel 74.0.4
    PHP 7.2.8

    I ran all the tests you described above:
    Everything working with no errors nor connection issues from WHMCS
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. sozotech

    sozotech Well-Known Member

    Joined:
    Jul 26, 2013
    Messages:
    91
    Likes Received:
    2
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator

    We are running an older version of WHMCS 7.x (not the latest). Possibly related?

    Best regards,
    Eric
     
  6. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    1,088
    Likes Received:
    442
    Trophy Points:
    113
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    I would love to be able to confirm that the version was your problem, but honestly, I just don't know.

    Perhaps the WHMCS support forums can shed some light on your issues.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,534
    Likes Received:
    2,182
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @sozotech,

    The version of WHMCS you are using makes use of the XML-like output of our API functions. Support for the XML-like output was removed from the product in cPanel & WHM version 74:

    You'll need to upgrade WHMCS to a newer version to solve this issue.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. sozotech

    sozotech Well-Known Member

    Joined:
    Jul 26, 2013
    Messages:
    91
    Likes Received:
    2
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Thank you for pointing that out. I updated WHMCS and that fixed the problem. :)

    Best regards,
    Eric
     
    cPanelMichael likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice