• Resolved jnlr

    (@jonathanlo)


    Hi there,

    After upgrading to 2.1.0 I’ve got this fatal error :

    PHP Fatal error: Declaration of Inpsyde\Modularity\Container\ReadOnlyContainer::get(string $id) must be compatible with Psr\Container\ContainerInterface::get($id) in /www/xxx/public/wp-content/plugins/dk-pdf/vendor/inpsyde/modularity/src/Container/ReadOnlyContainer.php on line 49"

    Seems to be an error from you only, not another plugin conflict.
    For information, the blog use PHP 8.2.

    Thanks for your quick reply and help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author dinamiko

    (@dinamiko)

    Hello @jonathanlo,

    The issue seems related to multiple versions of the same composer package running in the same environment… I have just added custom namespaces for those packages in the plugin, that should hopefully get rid of the fatal errors.

    I would really appreciate if you can give it a try to see if the error is gone before I release it, here you have the package: https://github.com/Dinamiko/dk-pdf/releases/download/2.2.0-rc1/dk-pdf.zip

    Thread Starter jnlr

    (@jonathanlo)

    Hello @dinamiko ,

    I’ve just updated and can confirm the error is gone ! 😀

    Aswell, I was looking for update you plugin because recently the content of the PDF wasn’t the good post printed ! I’ve noticed whatever the post I printed as PDF, the content of the PDF was the content of the more recent post.
    With this release, the content of the PDF is the content of the post !
    Great ! Thank you !

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

You must be logged in to reply to this topic.