suredata Posted July 16, 2014 Share Posted July 16, 2014 This is really just a note for anyone else getting API errors. Our application service stopped talking to WHMCS one day, which lead us down a garden path to nowhere. During our attempts to fix this, we accidently added another API key to our config. Thinking the issue was solved we went back to step one only to find it wasn't. Connecting to the WHMCS server API via a simple PHP script yielded the following: <?xml version="1.0" encoding="utf-8"?> <whmcsapi version="5.3.7-release.1"> <action>gettodoitems</action> <result>success</result> <totalresults>129</totalresults> But from the application server we constantly failed to connect and authenticate. Then we noticed that at the end of the API test result was this: <script pagespeed_no_defer="" type="text/javascript">//<![CDATA[ (function(){var **bunch of jscript**'); //]]></script> Sure enough, ModPageSpeed had been enabled at the server level. A quick .htaccess update (ModPageSpeed Off), and API still testing OK but now our application server is also happy. So the moral of the story? If your application server is not having a good time talking to WHMCS API, check all the normal things, but also check the PageSpeed is not the issue. HTH 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted July 17, 2014 WHMCS Support Manager Share Posted July 17, 2014 Hi, Thanks for taking the time to make this post and adding to the knowledge available on this forum. I'm sure any future users who run into this problem will find this post most valuable! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.