• Hi,

    We get following error in both v7.3.8 and v7.3.9 of the plugin. Our starter theme (Sage 10) also depends on Illuminate\Container (through roots/acorn).

    Fatal error: Declaration of Illuminate\Container\Container::get(string $id) must be compatible with Psr\Container\ContainerInterface::get($id) in?/Users/tombroucke/Local/test/app/public/wp-content/themes/test/vendor/illuminate/container/Container.php?on line?714

    I have pinned the plugin to v7.3.7 for now. This is the latest version that doesn’t break all of our sites.

    Can you fix the compatibility problems?

    Kind regards,
    Tom

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

    (@niklasinpsyde)

    Hi @tompoezie

    The latest update requires a specific version of psr/container. We can build a new version with the other version to prevent possible conflicts with other plugins that use a different version, but supporting both is not so trivial. The team is looking into possible options to improve the compatibility, though.

    I recommend sticking with version 7.3.7 until a better solution is available.

    Kind regards,
    Niklas

    Thread Starter tompoezie

    (@tompoezie)

    Hi,
    Thanks for your reply. Maybe you could wrap your dependencies inside your own namespace to prevent conflicting versions? This way you don’t have the support multiple versions of psr/container.

    coenjacobs/mozart provides this kind of functionality.

    Kind regards,
    Tom

    • This reply was modified 1 year, 9 months ago by tompoezie.
    Plugin Support Syde Niklas

    (@niklasinpsyde)

    There are multiple solutions to this compatibility issue, and regardless of which one ends up being used, it will break the plugin for a certain group of users. So we must first understand which approach impacts the least amount of users.

    I’m not sure this will make it into the next version, but I’ll try to report back to this thread when there are any new details available.

    Kind regards,
    Niklas

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error after on 7.3.8 and 7.3.9 with roots/sage’ is closed to new replies.