Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards

CRITICAL Uncaught Error – Create Mangopay Connect account in Vendor dashboard

WCMp Mangopay Marketplace

Resolved
Viewing 4 reply threads
  • Author
    Posts
    • #134399
      AK
      Participant

      After filling out the form and submit I get a white page and in the error log, I found this message.

      2022-02-14T08:35:10+00:00 CRITICAL Uncaught Error: Call to a member function IsExpired() on bool in /srv/www/myroaster.de/wp-content/plugins/wcmp-mangopay-marketplace/lib/sdk/MangoPay/Libraries/AuthorizationTokenManager.php:32
      Stack trace:
      #0 /srv/www/myroaster.de/wp-content/plugins/wcmp-mangopay-marketplace/lib/sdk/MangoPay/Libraries/AuthenticationHelper.php(83): MangoPay\Libraries\AuthorizationTokenManager->GetToken()
      #1 /srv/www/myroaster.de/wp-content/plugins/wcmp-mangopay-marketplace/lib/sdk/MangoPay/Libraries/AuthenticationHelper.php(27): MangoPay\Libraries\AuthenticationHelper->GetHttpHeaderStrong()
      #2 /srv/www/myroaster.de/wp-content/plugins/wcmp-mangopay-marketplace/lib/sdk/MangoPay/Libraries/RestTool.php(293): MangoPay\Libraries\AuthenticationHelper->GetHttpHeaderKey()
      #3 /srv/www/myroaster.de/wp-content/plugins/wcmp-mangopay-marketplace/lib/sdk/MangoPay/Libraries/RestTool.php(202): MangoPay\Libraries\RestTool->GetHttpHeaders()
      #4 /srv/www/myroaster.de/wp-content/plugins/wcmp-mangopay-marketplace/lib/sdk/MangoPay/Libraries/RestTool.p in /srv/www/myroaster.de/wp-content/plugins/wcmp-mangopay-marketplace/lib/sdk/MangoPay/Libraries/AuthorizationTokenManager.php in Zeile 32

    • #134422

      Hi,
      This is directly coming from the MANGOPAY API library, which we have used from their GitHub library. Nothing from our custom code. Then it might be your API key or settings-related issue. Please check again with default settings.
      Thanks

    • #134449
      AK
      Participant

      Hi,

      thank you for your response.
      That’s right, it is not your custom code. But you are using an old version of the SDK.

      As you can see the new version check if token is false
      https://github.com/Mangopay/mangopay2-php-sdk/blob/master/MangoPay/Libraries/AuthorizationTokenManager.php#L33

      This check is missing in the old version of the SDK.

      I test it with the new version, and it works!

      Can you please update your plugin with the new version of the SDK and published it? Maybe there are some other fixes…

      Thank you. Best regards

    • #134520

      Hi,
      Thanks for informing us.
      We will add this in our next update.
      Thanks

    • #142356

      AK, just to keep you posted we are updating whole Mangopay flow in our MultiVendorPro.

Viewing 4 reply threads

The topic ‘CRITICAL Uncaught Error – Create Mangopay Connect account in Vendor dashboard’ is closed to new replies.