Title: PHP8.1 bug
Last modified: November 11, 2022

---

# PHP8.1 bug

 *  [developmentadz](https://wordpress.org/support/users/developmentadz/)
 * (@developmentadz)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/php8-1-bug/)
 * Hello,
 * method_exists no longer accepts null and the plugin utilises this method and 
   sends null
 * line 1129 fails as self::$plugin is null for us when we submit a lead. I updated
   the code to check to make sure it is not empty and it no longer errors, but I
   don’t believe it will function as expected if its passing null. Anyone else experiencing
   this?
    if(!empty(self::$plugin) && method_exists(self::$plugin,’valid_addons’)){

The topic ‘PHP8.1 bug’ is closed to new replies.

 * ![](https://ps.w.org/cf7-mailchimp/assets/icon-256x256.png?rev=2585040)
 * [Integration for Mailchimp and Contact Form 7, WPForms, Elementor, Ninja Forms](https://wordpress.org/plugins/cf7-mailchimp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf7-mailchimp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-mailchimp/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-mailchimp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-mailchimp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-mailchimp/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [developmentadz](https://wordpress.org/support/users/developmentadz/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/php8-1-bug/)
 * Status: not resolved