• Resolved raghukm

    (@raghukm)


    When I deploy the plugin to WordPress on hostinger, I get this error:

    2025-12-11T15:21:35+00:00
    Critical Declaration of Dhii\Collection\HasCapableInterface::has($key) must be compatible with Psr\Container\ContainerInterface::has(string $id): bool

    I can get around it by manually modifying the interface, but seems like there is probably a PHP setting that needs to be tweaked? I’m not a PHP guy, so appreciate the help

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Krystian Syde

    (@inpsydekrystian)

    Hello @raghukm

    Most likely, this fatal error is triggered because the plugin uses a previous version of psr/log . The more recent version that would be compatible with PHP 8.2 is this one: https://packagist.org/packages/psr/log#3.0.0. However, an update to this version might result in breaking compatibility with very old versions of PHP.

    To resolve this issue, I recommend performing a full conflict test to rule out any potential compatibility problems with your theme or other plugins. Here’s how you can proceed:

    1. Activate the Default Theme Temporarily switch to the default Storefront theme. This step will help determine if your current theme is causing the issue.
    2. Disable Other Plugins Deactivate all plugins except for WooCommerce and Zettle
    3. Test the Process Check if Zettle works correctly, it should.
    4. Re-enable Plugins One by One If the problem resolves during the test, re-enable your plugins one at a time and test after each activation. This will help you identify the plugin causing the conflict.

    If the issue continues even after following these steps, please let us know, and we’ll be happy to assist you further.

    Looking for your response.

    Kind regards,
    Krystian

    Thread Starter raghukm

    (@raghukm)

    Thanks Krystian, that seemed to work.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.