• Resolved cyrix2000

    (@cyrix2000)


    Hi,
    after updating to Woocommerce 6.9.2 I’m getting this fatal error, it seems to be related to the paypal payments plugin:

    2022-09-19 13:19:52.951556 [NOTICE] [861] [5.189.146.228:58558-1#mywebsite.com] [STDERR] PHP Fatal error: Declaration of Dhii\Container\ProxyContainer::has($key) must be compatible with Psr\Container\ContainerInterface::has(string $id): bool in /usr/local/lsws/mywebsite.com/html/wp-content/plugins/woocommerce-paypal-payments/vendor/dhii/containers/src/ProxyContainer.php on line 50

    Can you please help with that?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @cyrix2000,

    Are you seeing this error only in your logs, or can you actively reproduce it?
    If yes, could you provide steps to reproduce?
    This could also be caused by a potential plugin conflict with a third-party plugin. If you can reproduce this error, we recommend performing a conflict test by disabling all other plugins except for WooCommerce and PayPal Payments to see if the issue persists: https://woocommerce.com/document/woocommerce-paypal-payments/#troubleshooting
    Please let us know how this works for you. Thanks!

    The latest PayPal Payments version was only fully tested with WooCommerce 6.8, but WooCommerce updates usually are rarely causing issues with core PayPal Payments functionality and I am also not seeing how to reproduce this error on WC 6.9.2. The next PayPal Payments update fully supports the latest WooCommerce 6.9.x releases, but I think it’s rather unlikely that WooCommerce is causing this conflict and I would expect a third-party plugin to be involved.

    Kind regards,
    Niklas

    Thread Starter cyrix2000

    (@cyrix2000)

    Hi,
    I can reproduce the error, every time I install the woocommerce update, the website crashes. Then I have to restore it from a backup to get it up and working again.

    When I disable the PayPal plugin, I can install the woocommerce update without issues. in the moment activate the PayPal plugin again, the website crashes, with the same error log entry as above.

    It is difficult to disable all plugins as it is a production website and that would mean taking it offline for quite an extended period of time.

    But based on the tests I have done, it seems to be clearly linked to woocommerce and the paypal plugin.

    Thread Starter cyrix2000

    (@cyrix2000)

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @cyrix2000,

    A potential (three-way) plugin conflict is still the most likely explanation for the error as we cannot reproduce it with the latest WooCommerce version.
    I suggest creating a staging site and performing a conflict test as explained above.
    There are plugins like WP Staging that allow you to create a staging site with a few clicks.

    Kind regards,
    Niklas

    Plugin Support Andreas W.

    (@aweissinpsyde)

    Hello,

    It has been quite some time since our last communication, so we will mark this thread as resolved. Please open a new thread if you are still facing issues or have questions that you need us to answer.

    Kind regards,
    Andreas

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @cyrix2000,

    Thanks for hanging in there.
    Could you please give it a try with this version?
    Some changes made in the WooCommerce core in version 6.9.2 and newer apparently could negatively impact PayPal Payments under certain circumstances.
    This version above should, in theory, resolve the issue. Others users reported this version to resolve the problem for them, and feedback about how this works for you would be greatly appreciated as well.
    Thanks!

    Kind regards,
    Niklas

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal Error after woocommerce update’ is closed to new replies.