• Resolved Dan14

    (@dan14)


    I receive the following php error, it prevents certain functions in wordpress from working:

    Deprecated: Method ReflectionParameter::getClass() is deprecated

    /addons/inc/Dependencies/DI/Definition/Source/Autowiring.php on line 59

    Im using php 8.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author monocode

    (@teamappsaloon)

    Hi Dan,

    The Cookiebot plugin uses an older version of the php-di dependency in order to support older versions of PHP.

    Can you please elaborate on which WordPress functions you’ve been having issues with? Usually a deprecation message won’t cause any problems.

    Kind Regards,

    Team AppSaloon

    Thread Starter Dan14

    (@dan14)

    I am sorry for the late reply. I will appreciate if you can provide php 8 compatibility as many other developers have done and are doing. If someone is using a very old php version it is their problem, not yours.

    Anonymous User 18245252

    (@anonymized-18245252)

    Hi Dan14

    I just got word from Cookiebot that the issue should be resolved in the future Cookiebot release version 3.11.0

    I hope this also solves your problem.

    Kind regards
    Wendy

    Plugin Author monocode

    (@teamappsaloon)

    Hi Dan,

    This issue was resolved with release 3.11.0 on 23 Jul, 2021.
    https://github.com/CybotAS/CookiebotWP/releases/tag/v.3.11.0

    We removed the PHP-DI dependency because we had to use an outdated version to maintain compatibility with older PHP versions. This caused some issues with PHP 8 instead. So we replaced the entire thing with a custom lightweight class to handle dependency injection across the plugin code.

    With the removal of PHP-DI, the Cookiebot plugin no longer contains any Composer dependencies.

    Kind regards,

    Team AppSaloon

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Php error using php 8 – causing problems in cms’ is closed to new replies.