Jump to content

GoCardless Integration broken


Cloudix

Recommended Posts

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!

Link to comment
Share on other sites

  • WHMCS Support Manager

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:

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

2019-01-25_07-57-55.jpg

directdebit.php

Link to comment
Share on other sites

@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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated