Support » Plugin: WooCommerce PayPal Payments » Critical error

  • Resolved woodypad

    (@woodypad)


    Hello,
    there is a problem with this new plugin of yours.
    I have always used the other has always worked well.

    I installed this new plugin of yours on a new site, with just woocommerce and wpbakery.
    I configured your payment plugin, entered the paypal data manually, and after saving it no longer makes me access the settings. The page goes blank and an error message is returned.

    A critical error has occurred on your website. Check the site administrator’s inbox for instructions.

    I had to restore from the backup, because there was also no way to go inside the plugin settings, even if I uninstalled and reinstalled.

    Thank you

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Support Andreas W.

    (@aweissinpsyde)

    Hello @woodypad

    please uninstall the plugin completely and install it again. After please use the wizard to connect your PayPal account.

    Thank you
    Regards
    Andreas

    Thread Starter woodypad

    (@woodypad)

    Hello @aweissinpsyde,
    as I wrote before, I have already uninstalled and reinstalled several times, but the error remains, and you can no longer access the plugin settings.
    To fix it, I had to restore the site backup.

    I don’t like wizards. In fact you have foreseen the manual procedure, but it has a problem apparently.

    Thank you

    I have same problem. I deactivate, reinstall, but not fix the problem

    • This reply was modified 1 year, 7 months ago by enmanueltorras. Reason: email

    Same issue here. Uninstall & Reinstall did not help. Disabled all plugins & defaulted to 2021 theme. No joy. Database Tables checked out. Removed WooCommerce & Re-installed. Still get the error. Emailed with @andreas and the only way he was able to get it working was to completely scrap the build and reinstall Woo & the Paypal plugin. That is obviously not ideal for a live site.

    Would love to get this sorted.

    Debug Log:

    [27-Jun-2021 18:10:29 UTC] PHP Fatal error:  Uncaught WooCommerce\PayPalCommerce\ApiClient\Exception\RuntimeException: Could not create token. in /chroot/home/XXX/XXX/html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Authentication/class-paypalbearer.php:122
    Stack trace:
    #0 /chroot/home/XXX/XXX/html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Authentication/class-paypalbearer.php(97): WooCommerce\PayPalCommerce\ApiClient\Authentication\PayPalBearer->newBearer()
    #1 /chroot/home/XXX/XXX/html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/src/Settings/class-settingslistener.php(150): WooCommerce\PayPalCommerce\ApiClient\Authentication\PayPalBearer->bearer()
    #2 /chroot/home/XXX/XXX/html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/src/class-wcgatewaymodule.php(236): WooCommerce\PayPalCommerce\WcGateway\Settings\SettingsListener->listen_for_vaulting_enabled()
    #3  in /chroot/home/XXX/XXX/html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Authentication/class-paypalbearer.php on line 122
    • This reply was modified 1 year, 7 months ago by wy4tt34rp. Reason: Added debug Log
    Plugin Support Andreas W.

    (@aweissinpsyde)

    @ratputin @enmanueltorras @woodypad @andreas

    please add

    // Remove all data on uninstall
    define(‘WC_REMOVE_ALL_DATA’, true);

    to your wp-config.php and uninstall the plugin, please. After just install it again. Also, please use the wizard to connecting to your PayPal account. The manual mode can cause that error

    Thank you
    Regards
    Andreas

    @andreas,
    I used the wp-config code. Uninstalled/re-installed and attempted to activate the plugin. Same error. I am at a loss. Paypal Pro worked so well for so long…this was supposed to be the “right” choice 🙂

    @andreas I just tried the uninstall/re-install using the wp-config code (4th time). I am still seeing the error in the staging site. So I setup a separate, brand new installation, added WC & Paypal. When I activated PayPal, I got the message, “PayPal Checkout is almost ready. To get started, connect your account.” I haven’t seen this message since the original installation of the live site.

    In all the uninstalls/re-installs this message has not appeared. Is there a DB table associated with it that I could change the value of (or remove) in an attempt to re-trigger it?

    I believe I have discovered the issue and the solution.

    Symptom: Critical error when attempting to the Manage Settings of – or Activating – the Paypal plugin (v1.3.2)

    Issue: Option table name “woocommerce-ppcp-settings” holds residual information when disconnecting Site from Paypal.

    Solution:

    1.Open phpMyAdmin and navigate to Database Name > wp_options > woocommerce-ppcp-settings

    2. Edit the value (best to copy/paste it into a text editor)

    3. Replace the text starting at s:26:”Pay with your credit card.” and ending at “disable_funding”;a:0:{} with the following:

    s:26:"Pay with your credit card.";s:13:"vault_enabled";b:0;s:10:"sandbox_on";b:0;s:20:"products_dcc_enabled";N;s:24:"client_secret_production";s:0:"";s:20:"client_id_production";s:0:"";s:13:"client_secret";s:0:"";s:9:"client_id";s:0:"";s:11:"merchant_id";s:0:"";s:14:"merchant_email";s:0:"";s:22:"merchant_id_production";s:0:"";s:25:"merchant_email_production";s:0:"";s:22:"merchant_email_sandbox";s:0:"";s:19:"merchant_id_sandbox";s:0:"";s:17:"client_id_sandbox";s:0:"";s:21:"client_secret_sandbox";s:0:"";s:6:"intent";s:7:"capture";s:24:"capture_for_virtual_only";b:0;s:15:"payee_preferred";b:0;s:12:"landing_page";s:5:"LOGIN";s:15:"disable_funding";a:0:{}

    4. Paste all into the value field and select “Go.”

    This will restore the Paypal connection to a default state and make the “get started” message re-appear.

    Hope this can help others experiencing this issue.

    Plugin Support Andreas W.

    (@aweissinpsyde)

    Hello @ratputin

    that hook I gave you should normally remove all entries from the database so the next plugin installation is really fresh.

    We really can not reproduce that error. Would it be possible to give me access to a staging site where we can reproduce that error and make a few tests?

    You can send me a message with access details to woocommerce-support@inpsyde.com

    Thank you so much
    Regards
    Andreas

    Plugin Support Andreas W.

    (@aweissinpsyde)

    Hello @ratputin @enmanueltorras @woodypad

    we were able to reproduce that error and it comes from when setting up the connecting to PayPal manually with wrong access details.

    I would highly recommend checking the PayPal My App & Credentials. There you can see your Clients ID and Secret. Also please make sure you add the right Account ID what can be found under the Accounts in your PayPal Dev dashboard.

    But the best way would be to use the wizard to set up the plugin.

    Have a nice day
    Regards
    Andreas

    Plugin Support Andreas W.

    (@aweissinpsyde)

    @ratputin

    when you delete woocommerce-ppcp-settings in wp_options the plugin will create a new one after you reload the plugin settings directly from scratch. So you no need to replace it

    @andreas Yes, if the wrong credentials are used, the issue arises and there is no way to change the creds in the interface. As this is a live site, it was preferable not to replace all the options, we just needed to fix the Paypal error.

    Plugin Support Andreas W.

    (@aweissinpsyde)

    Hello @ratputin

    our developers are already aware of it and we will fix that asap.

    Thank you for reporting that issue.

    Have a nice day
    Regards
    Andreas

    Plugin Support Andreas W.

    (@aweissinpsyde)

    Closed because of inactivity. Also that issue will be fixed with the next update

    I too have the same problem.

    I tried forcefully uninstalling using the suggested wp-config code with no luck.

    I can’t delete the entry from the options table because it doesn’t exist. The nearest I can find is woocommerce_ppec_paypal_settings.

    Thanks for your help

    Tim

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Critical error’ is closed to new replies.