Cloudix Posted January 24, 2019 Share Posted January 24, 2019 Since upgrading our WHMCS to 7.7.0 we are now getting errors when Billing > Manage Direct Debit is clicked in the client area. Examining the logs it appears the error is being raised on line 51 of the directdebit.php file. An extract of the error: [WHMCS Application] ERROR: Error: Call to undefined function get_mandateid_by_uid(). We have GoCardless integration. Can someone help? Thanks! 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted January 24, 2019 WHMCS Support Manager Share Posted January 24, 2019 Hi @Cloudix, There isn't a "Manage Direct Debits" item under the Billing tab in a stock 7.7.0 installation. Is this perhaps part of an after-market GoCardless module you were using prior to the update? If that's the case, please refer to this thread for an interesting discussion on the topic: 0 Quote Link to comment Share on other sites More sharing options...
Cloudix Posted January 24, 2019 Author Share Posted January 24, 2019 There is a Manage Direct Debit on the client side, not admin, on the Billing menu, under Manage Credit Cards. When clicked, goes to the page directdebit.php where the client can setup a direct debit or cancel, if one already exists. It’s this that is erroring 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted January 24, 2019 WHMCS Support Manager Share Posted January 24, 2019 Hi @Cloudix, I've reviewed the DirectDebit module code, but there's no client area output. Please compare your /modules/gateways/directdebit.php file to the one in our full release download: https://download.whmcs.com - are they the same? 0 Quote Link to comment Share on other sites More sharing options...
Cloudix Posted January 25, 2019 Author Share Posted January 25, 2019 The directdebit.php I refer to isn't in the /modules/gateways folder, it's in the the root of WHMCS and is dated May 31, 2018. I'm assuming it was placed there when installing the GoCardless integration. I have added a screenshot of the client area and where the option appears in the menu. I have also attached the directdebit.php i'm referring to. directdebit.php 0 Quote Link to comment Share on other sites More sharing options...
aquiss Posted January 25, 2019 Share Posted January 25, 2019 @Cloudix The client side managing of Direct debits is part of a commercial module (All the commercial modules that sprung up from yorkhosting, nifty and Simulant offer this). The one created by WHMCS in 7.7 does not include this feature (sadly) presently. I raised concern (as John has linked to here) that because the module file directory name was called gocardless with commercial modules, that files would get wiped out with anyone moving to 7.7 because WHMCS were going to use the same direcoryname. I asked for a directoryname change before release, but my concerns did not see action. My fears have therefore proven correct. I would therefore reach out to the creator of you module and see if they can provide a version (ideally in a different folder) to stop conflict with the included WHMCS module. 0 Quote Link to comment Share on other sites More sharing options...
Cloudix Posted January 25, 2019 Author Share Posted January 25, 2019 Thank you @aquiss, I now recall that this integration was purchased from Simulant. I have now raised a ticket with them to see if they have a workaround. It's a shame that WHMCS didn't take heed of your concerns. 1 Quote Link to comment Share on other sites More sharing options...
Cloudix Posted January 25, 2019 Author Share Posted January 25, 2019 I have now copied the original files provided by Simulant and we are now back up and running with the original integration. Of course, this a temporary fix as as soon as there is another WHMCS update, we will be back to square one. I'm hoping that either Simulant or WHMCS provide an update to remove this conflict. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted January 25, 2019 WHMCS Support Manager Share Posted January 25, 2019 Hi there, I'm pleased to hear you were able to identify the reason for this behaviour. It would be up to the third-party module developer to ensure their code or file names does not conflict with our officially distributed files. 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.