Jump to content
Chris74

Error: Call to undefined function WHMCS\Payment\PayMethod\run_hook()

Recommended Posts

Seeing this in my PHP error log regularly now...

 

[WHMCS Application] ERROR: Error: Call to undefined function WHMCS\Payment\PayMethod\run_hook() in /home/username/public_html/whmcs/vendor/whmcs/whmcs-foundation/lib/Payment/PayMethod/MigrationProcessor.php:0 Stack trace: #0 /home/username/public_html/whmcs/vendor/whmcs/whmcs-foundation/lib/User/Client.php(0): WHMCS\Payment\PayMethod\MigrationProcessor->migrateForClient(Object(WHMCS\User\Client)) #1 /home/username/public_html/whmcs/vendor/whmcs/whmcs-foundation/lib/Auth.php(0): WHMCS\User\Client->migratePaymentDetailsIfRequired() #2 /home/username/public_html/whmcs/vendor/whmcs/whmcs-foundation/lib/Utility/Bootstrap/Application.php(0): WHMCS\Auth::persistwhmcsession() #3 /home/username/public_html/whmcs/init.php(0): WHMCS\Utility\Bootstrap\Application::persistSession() #4 /home/username/public_html/whmcs/clientarea.php(0): unknown() #5 {main} {"exception":"[object] (Error(code: 0): Call to undefined function WHMCS\\Payment\\PayMethod\\run_hook() at /home/username/public_html/whmcs/vendor/whmcs/whmcs-foundation/lib/Payment/PayMethod/MigrationProcessor.php:0)"} []

Share this post


Link to post
Share on other sites
Posted (edited)

Chris, do you use Payfast?

Could you also see if there is a difference if you do HTTP versus HTTPS?

 

Edited by eugenevdm

Share this post


Link to post
Share on other sites

No we have Stripe and MyWorks Paypal module. I've realised that the MyWorks module hasn't been updated yet for this version, so it could be this module causing the problem.

Share this post


Link to post
Share on other sites

Hi there,

We've been able to reproduce this error and have opened case CORE-13801 internally to have this resolved in our next feature release.

This error occurs when a client logs in for the first time after updating to 7.8.x and ticking the "Remember Me" checkbox

Logging out and back in again with the "Remember Me" option UNticked for the first time will resolve this error.

It should then be possible to use the "Remember Me" option as usual.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

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