Title: Php error using php 8 &#8211; causing problems in cms
Last modified: May 25, 2021

---

# Php error using php 8 – causing problems in cms

 *  Resolved [Dan14](https://wordpress.org/support/users/dan14/)
 * (@dan14)
 * [5 years ago](https://wordpress.org/support/topic/php-error-using-php-8-causing-problems-in-cms/)
 * 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](https://wordpress.org/support/users/teamappsaloon/)
 * (@teamappsaloon)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/php-error-using-php-8-causing-problems-in-cms/#post-14489628)
 * 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](https://wordpress.org/support/users/dan14/)
 * (@dan14)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/php-error-using-php-8-causing-problems-in-cms/#post-14715572)
 * 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)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/php-error-using-php-8-causing-problems-in-cms/#post-14727409)
 * 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](https://wordpress.org/support/users/teamappsaloon/)
 * (@teamappsaloon)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/php-error-using-php-8-causing-problems-in-cms/#post-14892820)
 * 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](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.

 * ![](https://ps.w.org/cookiebot/assets/icon.svg?rev=3200631)
 * [Cookiebot by Usercentrics - Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode](https://wordpress.org/plugins/cookiebot/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookiebot/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookiebot/)
 * [Active Topics](https://wordpress.org/support/plugin/cookiebot/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookiebot/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookiebot/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [monocode](https://wordpress.org/support/users/teamappsaloon/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/php-error-using-php-8-causing-problems-in-cms/#post-14892820)
 * Status: resolved