Title: Plugin giving critical errors
Last modified: March 22, 2023

---

# Plugin giving critical errors

 *  Resolved [damienrciitech](https://wordpress.org/support/users/damienrciitech/)
 * (@damienrciitech)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/plugin-giving-critical-errors/)
 * Hi,
 * We are getting critical errors when your plugin is active.
 * Error Details
   =============An error of type E_ERROR was caused in line 296 of
   the file /www/xxxxxx_440/public/wp-content/plugins/include-klaviyo-for-elementor-
   pro/include-elementor-klaviyo.php. Error message: Uncaught Error: Call to a member
   function get_modules() on null in /www/provacan_440/public/wp-content/plugins/
   include-klaviyo-for-elementor-pro/include-elementor-klaviyo.php:296

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

 *  Plugin Author [thongnguyenminh](https://wordpress.org/support/users/thongnguyenminh/)
 * (@thongnguyenminh)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/plugin-giving-critical-errors/#post-16586659)
 * Hi [@damienrciitech](https://wordpress.org/support/users/damienrciitech/) sorry
   to hear that.
   To help me on solve this issues, can you please provide these info:
    - WP version
    - PHP version
    - Theme and version
    - Elementor/Elementor Pro version
    - This issue happened after an update (theme/plugin) or in the first time you
      installed
 *  Thread Starter [damienrciitech](https://wordpress.org/support/users/damienrciitech/)
 * (@damienrciitech)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/plugin-giving-critical-errors/#post-16586838)
 * Hi,
    - WP version – **6.1.1**
    - PHP version 8.1
    - Theme and version Ocean WP **3.4.2**
    - Elementor/Elementor Pro version 3.11.5/3.11.7
    - This issue happened after an update (theme/plugin) or in the first time you
      installed. – This just happened, no extra installs.
 * Thanks
 *  Plugin Author [thongnguyenminh](https://wordpress.org/support/users/thongnguyenminh/)
 * (@thongnguyenminh)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/plugin-giving-critical-errors/#post-16590367)
 * Hi [@damienrciitech](https://wordpress.org/support/users/damienrciitech/) i have
   rebuild the site with same info as your and found the cause.
   Currently, Elementor/
   Elementor pro not fully compatible with PHP 8.1 yet, this happened with one of
   their function (the **get_modules()** function) as you can see in [this image](https://nguyenminhthong.com/src-img/PHP-compatible.png).
   And my plugin using this function, so it cause the error when call the function.
   At this point you can:
    - Using lower PHP version (the best is 8.0, as Elementor said that they support
      this or 7.4). This is the most recommend because right now lots of plugins
      not fully compatible with PHP 8.1 too and this maybe cause similar issue for
      your site in the future.
    - Using another plugin (may be there are other similar plugins out there not
      using this function in their code)
 * I will mark this as solved now. But please feel free to ask if you need any thing
   else.

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

The topic ‘Plugin giving critical errors’ is closed to new replies.

 * ![](https://ps.w.org/include-klaviyo-for-elementor-pro/assets/icon.svg?rev=2386161)
 * [Include Klaviyo for Elementor pro](https://wordpress.org/plugins/include-klaviyo-for-elementor-pro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/include-klaviyo-for-elementor-pro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/include-klaviyo-for-elementor-pro/)
 * [Active Topics](https://wordpress.org/support/plugin/include-klaviyo-for-elementor-pro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/include-klaviyo-for-elementor-pro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/include-klaviyo-for-elementor-pro/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [thongnguyenminh](https://wordpress.org/support/users/thongnguyenminh/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/plugin-giving-critical-errors/#post-16590367)
 * Status: resolved