• I got this fatal error message when I reactivate an otherwise functioning installation after some problems with woocommerce and endpoints (I think call stack info is from my Query Monitor):

    Fatal error: Uncaught Exception: Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription.
    in /home/6/b/byagder/www/wp-content/plugins/vipps-recurring-payments-gateway-for-woocommerce/includes/wc-vipps-recurring-api.php on line 60

    Call stack:

    1. WC_Vipps_Recurring_Api::get_access_token_from_vipps()
      wp-content/plugins/vipps-recurring-payments-gateway-for-woocommerce/includes/wc-vipps-recurring-api.php:35
    2. WC_Vipps_Recurring_Api::get_access_token()
      wp-content/plugins/vipps-recurring-payments-gateway-for-woocommerce/includes/wc-vipps-recurring-api.php:317
    3. WC_Vipps_Recurring_Api::get_webhooks()
      wp-content/plugins/vipps-recurring-payments-gateway-for-woocommerce/includes/wc-gateway-vipps-recurring.php:2161
    4. WC_Gateway_Vipps_Recurring::webhook_ensure_this_site()
      wp-content/plugins/vipps-recurring-payments-gateway-for-woocommerce/woo-vipps-recurring.php:289
    5. WC_Vipps_Recurring::admin_init()
      wp-includes/class-wp-hook.php:324
    6. WP_Hook::apply_filters()
      wp-includes/class-wp-hook.php:348
    7. WP_Hook::do_action()
      wp-includes/plugin.php:517
    8. do_action()
      wp-admin/admin.php:175
    9. require_once()
      wp-admin/index.php:10

    I have removed the plugin via FTP, reinstalled it, and even reinstalled an earlier backup (before this happend), to no awail.

    Please help!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Marcus

    (@marcuz2k2k)

    Hi!

    It sounds like your Vipps API keys are wrong, and the website is trying to verify that the webhooks that have been set up are correctly configured.

    To allow you to enter the settings area and temporarily get rid of this error you can run the following SQL query:

    DELETE FROM wp_options WHERE option_value = '_woo_vipps_recurring_configured';

    After running this query you should be able to access the settings in order to update your API keys ??

    Hope this helps!

    Kind regards,
    Marcus Dahl

    Thread Starter Bent Fossan

    (@bentfossan)

    Hi! Thanks.

    As it stands, I have removed the VIPPS plugin for using the site and access backend.

    As for the order of things;

    1. Any tips for how I run the SQL query? I′m a bit blank here…but a plugin?, or go into the installation with FTP and copy the codesnippet into one of the files there (if so, which one?).
    2. If I so install the VIPPS plugin again, would the before-mentioned SQL query run not give me the give me the fatal error and then access to settings to update the API Keyes?

    Thank you again for the fast response. I’m in a bit of a pickle here and need this to work asap, so much appreciated.

    Best, Bent.

    Plugin Author Marcus

    (@marcuz2k2k)

    Hi,

    1. Yes, does your web host have functionality that allows you to view your “SQL Database”? This could be called something like “PhpMyAdmin” or similar. In there you should be able to find an area called “Query” or “Run query”. If you can’t find it then you could try to put the following code snippet in your theme’s functions.php file via FTP, instead (the file should be located in wp-content/themes/yourtheme/functions.php):

    add_action('wp_loaded', function () { delete_option('_woo_vipps_recurring_configured') } );

      After loading your website once with that code, you can remove the code and enable the Vipps plugin again. You should no longer get an error thrown in your face ??

      2. The aforementioned query/code will solve your issue, and there should no longer be an error. You just have to remember to configure the plugin’s settings again, as your API settings appear to be wrong at the moment ??

      Kind regards,
      Marcus Dahl

      Thread Starter Bent Fossan

      (@bentfossan)

      Thank you again!

      I`ll go to it, then.

      ?? Bent.

    Viewing 4 replies - 1 through 4 (of 4 total)
    • You must be logged in to reply to this topic.