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

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
On 10/15/2019 at 5:22 PM, WHMCS John said:

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.

Doesn't resolve the error for me.

Share this post


Link to post
Share on other sites
On 10/15/2019 at 5:22 PM, WHMCS John said:

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.

We are seeing this error too - do you have any timeline for an update on this? 

Share this post


Link to post
Share on other sites

We're seeing this error in our error_log as well

[28-Oct-2019 11:01:44 UTC] [WHMCS Application] ERROR: Error: Call to undefined function WHMCS\Payment\PayMethod\run_hook() in /home/username/public_html/vendor/whmcs/whmcs-foundation/lib/Payment/PayMethod/MigrationProcessor.php:0 Stack trace: #0 /home/username/public_html/vendor/whmcs/whmcs-foundation/lib/User/Client.php(0): WHMCS\Payment\PayMethod\MigrationProcessor->migrateForClient(Object(WHMCS\User\Client)) #1 /home/username/public_html/vendor/whmcs/whmcs-foundation/lib/Auth.php(0): WHMCS\User\Client->migratePaymentDetailsIfRequired() #2 /home/username/public_html/vendor/whmcs/whmcs-foundation/lib/Utility/Bootstrap/Application.php(0): WHMCS\Auth::persistClientSession() #3 /home/username/public_html/init.php(0): WHMCS\Utility\Bootstrap\Application::persistSession() #4 /home/username/public_html/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/vendor/whmcs/whmcs-foundation/lib/Payment/PayMethod/MigrationProcessor.php:0)"} []

Like @Chris74 we too use Stripe & MyWorks PayPal module. The error shows up when the MyWorks cron runs:

/modules/addons/paypal_billing_center/cron/paypalbilling.php

 

Edited by wintech2003

Share this post


Link to post
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.


  • Similar Content

    • By Mechanic
      HI,
      In WHMCS 7.8.3 + 2Checkout payment gateway, the discount is being applied twice when a client tries to create a recurring subscription.
      This does not happen when they try to make a one off payment.
      This can be reproduced by creating a similar invoice under any other client account.
       
    • By Luthersites
      When I try to do the update I get the following error:
      Unable to complete incremental updates: Unable to import the 7.8.0 Alpha1 database file. Unable to import /home/lutherh/public_html/resources/sql/upgrade780alpha1.sql: SQLSTATE[42000]: Syntax error or access violation: 1118 Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8126. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs
      I can't find anything on your site that talks about this error, and I find it odd that the database has incorrectly set column types.  Please advise as to what I need to do.
    • By zarvis
      Hi,
       
      From today morning the Invoices are not being updated, and the API callback is getting failed for the Coingate and perfect money modules.
      Anyone else facing similar issue?
       
      Regards
      Chandrakant
    • By loopmail
      Looking around and some clients have enabled 2fa for the primary user, but there seem to be no details for it on the contacts page. is this not a feature on offer to contacts or a way for administrators to see the status/clear the status for contacts?

       
    • By noahesbjerg
      Hi,
       
      So, I just got a stripe account. And updated to the newest WHMCS version. But it seems that the new version completely broke the stripe module. For an example, if I try to delete a payment method I get this: https://i.imgur.com/xjtQkPn.png . And trying to add a new payment method results in this " Payment method failed to create successfully. Please try again.". I am using a custom theme, but it's also broken with the default one.
  • 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