Title: plugin not compatible with php 8.1
Last modified: November 29, 2022

---

# plugin not compatible with php 8.1

 *  Resolved [pumpkinsparks](https://wordpress.org/support/users/pumpkinsparks/)
 * (@pumpkinsparks)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/plugin-not-compatible-with-php-8-1/)
 * I’ve got an email some time ago, that from december onwards wordpress will not
   support php 7.4 anymore. The moment I switch to 8.1 however our website doesn’t
   load anymore. [It looks like this](https://ibb.co/fHpPj08)
 * The warning on top is: Warning: Constant CMPLZ_SELF_HOSTED_PLUGIN_ACTIVE already
   defined in /homepages/6/d4295028783/htdocs/werbeduerr/wp-content/plugins/complianz-
   gdpr/integrations/plugins/olympus-google-fonts.php on line 3
 * The moment I deactivate the plugin there are no issues anymore. But obviously
   I cannot have a site without cookie consent.
 * I’ve been looking for solutions for the problem for hours now and havn’t really
   found something that applys to my issue. Maybe someone here can help me.
 * I’m using Elementor Pro 3.8 with the OceanWP 3.3.6 theme, and the free version
   of Complianz.
 * The websites status report is as follows:
 *     ```
       ### wp-core ###
   
       version: 6.1
       site_language: de_DE
       user_language: de_DE
       timezone: Europe/Berlin
       permalink: /%postname%/
       https_status: true
       multisite: false
       user_registration: 0
       blog_public: 1
       default_comment_status: open
       environment_type: production
       user_count: 1
       dotorg_communication: true
   
       ### wp-paths-sizes ###
   
       wordpress_path: /homepages/6/d4295028783/htdocs/werbeduerr
       wordpress_size: 355,59 MB (372863507 bytes)
       uploads_path: /homepages/6/d4295028783/htdocs/werbeduerr/wp-content/uploads
       uploads_size: 295,56 MB (309916142 bytes)
       themes_path: /homepages/6/d4295028783/htdocs/werbeduerr/wp-content/themes
       themes_size: 33,85 MB (35491746 bytes)
       plugins_path: /homepages/6/d4295028783/htdocs/werbeduerr/wp-content/plugins
       plugins_size: 140,93 MB (147771419 bytes)
       database_size: 37,00 MB (38797312 bytes)
       total_size: 862,92 MB (904840126 bytes)
   
       ### wp-dropins (1) ###
   
       advanced-cache.php: true
   
       ### wp-active-theme ###
   
       name: OceanWP (oceanwp)
       version: 3.3.6
       author: OceanWP
       author_website: https://oceanwp.org/about-oceanwp/
       parent_theme: none
       theme_features: core-block-patterns, widgets-block-editor, align-wide, wp-block-styles, responsive-embeds, editor-styles, editor-style, menus, post-formats, title-tag, automatic-feed-links, post-thumbnails, custom-header, custom-logo, html5, woocommerce, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider, customize-selective-refresh-widgets, widgets
       theme_path: /homepages/6/d4295028783/htdocs/werbeduerr/wp-content/themes/oceanwp
       auto_update: Deaktiviert
   
       ### wp-themes-inactive (5) ###
   
       Twenty Nineteen: version: 2.0, author: WordPress-Team (latest version: 2.4), Automatische Aktualisierungen deaktiviert
       Twenty Twenty: version: 1.7, author: WordPress-Team (latest version: 2.1), Automatische Aktualisierungen deaktiviert
       Twenty Twenty-One: version: 1.3, author: WordPress-Team (latest version: 1.7), Automatische Aktualisierungen deaktiviert
       Twenty Twenty-Three: version: 1.0, author: WordPress-Team, Automatische Aktualisierungen deaktiviert
       Twenty Twenty-Two: version: 1.0, author: WordPress-Team (latest version: 1.3), Automatische Aktualisierungen deaktiviert
   
       ### wp-plugins-active (13) ###
   
       Complianz - Terms and Conditions: version: 1.1.3, author: Really Simple Plugins, Automatische Aktualisierungen aktiviert
       Complianz | GDPR/CCPA Cookie Consent: version: 6.3.5, author: Really Simple Plugins, Automatische Aktualisierungen aktiviert
       Disable & Remove Google Fonts: version: 1.4.6, author: Fonts Plugin, Automatische Aktualisierungen deaktiviert
       Download Monitor: version: 4.7.3, author: WPChill, Automatische Aktualisierungen aktiviert
       Elementor: version: 3.8.0, author: Elementor.com, Automatische Aktualisierungen aktiviert
       Fonts Plugin | Google Fonts Typography: version: 3.2.1, author: Fonts Plugin, Automatische Aktualisierungen aktiviert
       Modula: version: 2.6.92, author: WPChill, Automatische Aktualisierungen aktiviert
       Ocean Extra: version: 2.0.6, author: OceanWP, Automatische Aktualisierungen aktiviert
       Simple Social Icons: version: 3.1.1, author: StudioPress, Automatische Aktualisierungen aktiviert
       Spotlight - Social Media Feeds: version: 1.3, author: RebelCode, Automatische Aktualisierungen aktiviert
       W3 Total Cache: version: 2.2.7, author: BoldGrid, Automatische Aktualisierungen deaktiviert
       WPForms Lite: version: 1.7.8, author: WPForms, Automatische Aktualisierungen aktiviert
       Yoast SEO: version: 19.10, author: Team Yoast, Automatische Aktualisierungen aktiviert
   
       ### wp-media ###
   
       image_editor: WP_Image_Editor_GD
       imagick_module_version: Nicht verfügbar
       imagemagick_version: Nicht verfügbar
       imagick_version: Nicht verfügbar
       file_uploads: File uploads is turned off
       post_max_size: 64M
       upload_max_filesize: 64M
       max_effective_size: 64 MB
       max_file_uploads: 20
       gd_version: 2.2.5
       gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
       ghostscript_version: 9.27
   
       ### wp-server ###
   
       server_architecture: Linux 4.4.302-icpu-088 x86_64
       httpd_software: Apache
       php_version: 7.4.32 64bit
       php_sapi: cgi-fcgi
       max_input_variables: 5000
       time_limit: 50000
       memory_limit: -1
       max_input_time: -1
       upload_max_filesize: 64M
       php_post_max_size: 64M
       curl_version: 7.64.0 OpenSSL/1.1.1n
       suhosin: false
       imagick_availability: false
       pretty_permalinks: true
       htaccess_extra_rules: true
   
       ### wp-database ###
   
       extension: mysqli
       server_version: 5.7.38-log
       client_version: mysqlnd 7.4.32
       max_allowed_packet: 67108864
       max_connections: 3000
   
       ### wp-constants ###
   
       WP_HOME: undefined
       WP_SITEURL: undefined
       WP_CONTENT_DIR: /homepages/6/d4295028783/htdocs/werbeduerr/wp-content
       WP_PLUGIN_DIR: /homepages/6/d4295028783/htdocs/werbeduerr/wp-content/plugins
       WP_MEMORY_LIMIT: 40M
       WP_MAX_MEMORY_LIMIT: -1
       WP_DEBUG: false
       WP_DEBUG_DISPLAY: true
       WP_DEBUG_LOG: false
       SCRIPT_DEBUG: false
       WP_CACHE: true
       CONCATENATE_SCRIPTS: undefined
       COMPRESS_SCRIPTS: undefined
       COMPRESS_CSS: undefined
       WP_ENVIRONMENT_TYPE: Nicht definiert
       DB_CHARSET: utf8
       DB_COLLATE: undefined
   
       ### wp-filesystem ###
   
       wordpress: writable
       wp-content: writable
       uploads: writable
       plugins: writable
       themes: writable
   
       ### wpforms ###
   
       version: 1.7.8
       lite: Apr 26, 2021 @ 10:42am
       upload_dir: Beschreibbar
       total_forms: 1
       total_submissions: 1523
   
       ### modula ###
   
       core_version: Core version 2.6.92
       requested_php: PHP minimum version met
       requested_wp: WordPress minimum version met. Current version: 6.1
       galleries_number: Total number of galleries: 6
       track_data: Track data disabled
       enqueue_files: Enqueue files disabled
       grid_type: No grid type selected
       lightboxes: No lightbox selected
       modula_lazyload: No general lazyload
       modula_edit_gallery_link: Edit gallery link enabled
       modula_disable_srcset: srcset is enabled
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-not-compatible-with-php-8-1%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * (@rogierlankhorst)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/plugin-not-compatible-with-php-8-1/#post-16243329)
 * Hi [@pumpkinsparks](https://wordpress.org/support/users/pumpkinsparks/),
 * This is not related to php 8.1, but is caused by existence of two local host 
   Google Fonts plugins at the same time, causing the corresponding integrations
   to load in Complianz, both with the same constant.
 * We didn’t take into account the possibility of duplicate font plugins. We have
   a fix for this here:
    [https://github.com/Really-Simple-Plugins/complianz-gdpr/tree/catch-duplicate-fontsp-plugins](https://github.com/Really-Simple-Plugins/complianz-gdpr/tree/catch-duplicate-fontsp-plugins)
 * You can use this branch for now, or deactivate one Google Font plugin if you 
   don’t need them both.
 * This branch is tested, and will get merged in the next release.
 * Let me know if you have any questions about this.
 *  Thread Starter [pumpkinsparks](https://wordpress.org/support/users/pumpkinsparks/)
 * (@pumpkinsparks)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/plugin-not-compatible-with-php-8-1/#post-16243381)
 * That fixed the issue. Thank you for your fast answer and solution!

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

The topic ‘plugin not compatible with php 8.1’ is closed to new replies.

 * ![](https://ps.w.org/complianz-gdpr/assets/icon-256x256.png?rev=2881064)
 * [Complianz - GDPR/CCPA Cookie Consent](https://wordpress.org/plugins/complianz-gdpr/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/complianz-gdpr/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/complianz-gdpr/)
 * [Active Topics](https://wordpress.org/support/plugin/complianz-gdpr/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/complianz-gdpr/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/complianz-gdpr/reviews/)

## Tags

 * [Not Compatible](https://wordpress.org/support/topic-tag/not-compatible/)
 * [php 8](https://wordpress.org/support/topic-tag/php-8/)
 * [update](https://wordpress.org/support/topic-tag/update/)

 * 2 replies
 * 2 participants
 * Last reply from: [pumpkinsparks](https://wordpress.org/support/users/pumpkinsparks/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/plugin-not-compatible-with-php-8-1/#post-16243381)
 * Status: resolved