• Hello, I get this error in a website that makes conflict with RankMath:

    AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Undefined constant "GTM4WP_OPTION_INCLUDE_VISITOR_IP_HEADER" in /wp-content/plugins/duracelltomi-google-tag-manager/admin/admin-tab-basicdata.php:107
    Stack trace:
    #0 /wp-content/plugins/duracelltomi-google-tag-manager/admin/admin.php(132): require_once()
    #1 /wp-content/plugins/duracelltomi-google-tag-manager/duracelltomi-google-tag-manager-for-wordpress.php(47): require_once('...')
    #2 /wp-includes/class-wp-hook.php(324): gtm4wp_init()
    #3 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #4 /wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 /wp-settings.php(506): do_action()
    #6 /wp-config.php(39): require_once('...')
    #7 /wp-load.php(50): require_once('...')
    #8 /wp-admin/admin.php(34): require_once('...')
    #9 /wp-admin/plugins.php(10): require_once('...')
    #10 {main}
     thrown in /wp-content/plugins/duracelltomi-google-tag-manager/admin/admin-tab-basicdata.php on line 107', referer: https://domain.com/wp-admin/plugins.php

    Why is this problem? We have updated all plugins to latest version.

    We have PHP 8.2.

    • This topic was modified 9 months, 3 weeks ago by David Perez.
Viewing 9 replies - 1 through 9 (of 9 total)
  • I have an error since of the last update too. It doesnt fire the google tag anymore.. https://stegplattenversand.nl

    result of this is that the cookie banner keeps asking for consent

    Plugin Author Thomas Geiger

    (@duracelltomi)

    @davidperez this is strange, I do not see such error messages on sites where I already use v1.20 although they might not running on PHP 8.2

    I will check it as soon as possible on 8.2

    @bloomaza your issue is not related to the original post. I do not see your consent banner popping up on all page views. I can however see lots of JS errors in the console (unrelated to GTM4WP). To continue this conversation, please open a new thread.

    Plugin Author Thomas Geiger

    (@duracelltomi)

    @davidperez I double checked with PHP 8.2 and I do not see your error message. Could you reinstall the plugin or perhaps download the release from GitHub?

    https://github.com/duracelltomi/gtm4wp/releases/tag/1.20

    Hello! I download realease from GitHub and it hasn’t given me any problems

    Plugin Author Thomas Geiger

    (@duracelltomi)

    @matiasquero but it has when updating in the standard way from WP.org?

    Also getting the undefined constant error here, updating through wp.org

    @duracelltomi one site give me problemas and I had to use thr release GitHub but on thr rest of our sites I updated in the standard way WP.org

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Thanks, perhaps I will try to re-release the version using v1.20.1 on Monday

    WordPress version 6.4.3
    Active theme: Binoid Child Theme 2024 (version 1.3)
    Current plugin: GTM4WP – A Google Tag Manager (GTM) plugin for WordPress (version 1.20.2)
    PHP version 8.2.14

    Error Details
    =============
    An error of type E_ERROR was caused in line 107 of the file /nas/content/live/shop2binoidcbd/wp-content/plugins/duracelltomi-google-tag-manager/admin/admin-tab-basicdata.php. Error message: Uncaught Error: Undefined constant “GTM4WP_OPTION_INCLUDE_VISITOR_IP_HEADER” in /nas/content/live/shop2binoidcbd/wp-content/plugins/duracelltomi-google-tag-manager/admin/admin-tab-basicdata.php:107
    Stack trace:
    #0 /nas/content/live/shop2binoidcbd/wp-content/plugins/duracelltomi-google-tag-manager/admin/admin.php(132): require_once()
    #1 /nas/content/live/shop2binoidcbd/wp-content/plugins/duracelltomi-google-tag-manager/duracelltomi-google-tag-manager-for-wordpress.php(47): require_once(‘/nas/content/li…’)
    #2 /nas/content/live/shop2binoidcbd/wp-includes/class-wp-hook.php(324): gtm4wp_init(”)
    #3 /nas/content/live/shop2binoidcbd/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #4 /nas/content/live/shop2binoidcbd/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #5 /nas/content/live/shop2binoidcbd/wp-settings.php(506): do_action(‘plugins_loaded’)
    #6 /nas/content/live/shop2binoidcbd/wp-config.php(143): require_once(‘/nas/content/li…’)
    #7 /nas/content/live/shop2binoidcbd/wp-load.php(50): require_once(‘/nas/content/li…’)
    #8 /nas/content/live/shop2binoidcbd/wp-admin/admin-ajax.php(22): require_once(‘/nas/content/li…’)
    #9 {main}
      thrown

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Fatal Error: undefined constant GTM4WP_OPTION_INCLUDE_VISITOR_IP_HEADER’ is closed to new replies.