PHP 8 error and solution

[ad_1]

Hi, today I changed a website to PHP 8.0, and the admin panel threw me an error:

Fatal error: Uncaught Error: Undefined constant “GTM4WP_OPTION_INCLUDE_REMARKETING”
in /htdocs/wp-content/plugins/complianz-gdpr-premium/integrations/plugins/google-tagmanager-for-wordpress.php on line 84

I fixed the file with a if ( defined( 'GTM4WP_OPTION_INCLUDE_REMARKETING' ) ) { block around that code and the previous not checked constant.
Could you fix that error to be able to have it fixed in the next version?

Many thanks for considering my request.

Kind regards, Carlos Longarela.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer