• Resolved SomewhatMedia

    (@somewhatmedia)


    Hi guys,

    Got a development site nearing completion for a customer and I’m not sure at what point but it’s started throwing the following critical error whenever this plugin is active. Here’s the error:

    Got error ‘PHP message: PHP Fatal error: Declaration of Dhii\\Container\\ProxyContainer::has($key) must be compatible with Psr\\Container\\ContainerInterface::has(string $id): bool in /home/virtual/ … /staging_html/wp-content/plugins/woocommerce-paypal-payments/vendor/dhii/containers/src/ProxyContainer.php on line 50’

    Best,
    Matt

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

    (@niklasinpsyde)

    Hi @somewhatmedia,

    This error is most likely resulting from a conflict with a different plugin. I have seen a single instance of this in the past but we never heard back after suggesting a conflict test.
    So the best way to figure this out would be to perform a conflict test to rule out a problem with the theme or a third-party plugin. We recommend temporarily activating the default theme Storefront and disabling all other plugins except for?WooCommerce and?PayPal Payments to see if the behavior persists.
    If not, you could re-enable other plugins in small groups or one by one to determine when the error occurs.

    Here’s a guide that explains the steps in more detail: How to test for conflicts
    Please let us know how this works out for you.
    Thanks!

    Kind regards,
    Niklas

    I’m getting the same error after updating to the latest version of WooCommerce (version 6.9.2 or above). If disabling the PayPal plugin prior to updating, the error disappears, in the moment I’m reenabling the plugin, the error reappears.

    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

    I have the same issue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Sitewide Fatal Error – “Declaration of Dhii”’ is closed to new replies.