• Hello,

    I noticed on the latest plugin version update, the attempt failed and caused PHP errors. Shall I share the error I received/has this been reported at all yet?

    Thanks in advance.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    If the log does not contain sensitive data or you can mask such data then pls lost the details. Also please let me know the version of your WordPress and PHP.

    Thanks!

    Thread Starter jhoffmanpcg

    (@jhoffmanpcg)

    Thanks! Here’s the info I am seeing and the 3 log messages that I flagged for errors earlier.

    WP 6.4.2
    PHP 8.2

    Task ChildVerify ended with PHP fatal error: Uncaught Error: Undefined constant “GTM4WP_OPTION_INTEGRATE_WCTRACKECOMMERCE” in /nas/content/live/pcg1prod/wp-content/plugins/duracelltomi-google-tag-manager/public/frontend.php:1324 Stack trace: #0 /nas/content/live/pcg1prod/wp-content/plugins/duracelltomi-google-tag-manager/duracelltomi-google-tag-manager-for-wordpress.php(49): require_once() #1 /nas/content/live/pcg1prod/wp-includes/class-wp-hook.php(324): gtm4wp_init(”) #2 /nas/content/live/pcg1prod/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #3 /nas/content/live/pcg1prod/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #4 /nas/content/live/pcg1prod/wp-settings.php(506): do_action(‘plugins_loaded’) #5 /nas/content/live/pcg1prod/wp-config.php(119): require_once(‘/nas/content/li…’) #6 /nas/content/live/pcg1prod/wp-load.php(50): require_once(‘/nas/content/li…’) #7 /nas/content/live/pcg1prod/wp-blog-header.php(13): require_once(‘/nas/content/li…’) #8 /nas/content/live/pcg1prod/index.php(17): require(‘/nas/content/li…’) #9 {main} thrown on line 1324 in file wp-content/plugins/duracelltomi-google-tag-manager/public/frontend.php in /nas/content/live/pcg1prod/wp-content/plugins/autoupdater/lib/Log.php on line 104

    Tue, Feb 6, 2024, 09:36 AM EST

    PHP Fatal error: Uncaught Error: Undefined constant “GTM4WP_OPTION_INTEGRATE_WCTRACKECOMMERCE” in /nas/content/live/pcg1prod/wp-content/plugins/duracelltomi-google-tag-manager/public/frontend.php:1324#012Stack trace:#012#0 /nas/content/live/pcg1prod/wp-content/plugins/duracelltomi-google-tag-manager/duracelltomi-google-tag-manager-for-wordpress.php(49): require_once()#012#1 /nas/content/live/pcg1prod/wp-includes/class-wp-hook.php(324): gtm4wp_init(”)#012#2 /nas/content/live/pcg1prod/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)#012#3 /nas/content/live/pcg1prod/wp-includes/plugin.php(517): WP_Hook->do_action(Array)#012#4 /nas/content/live/pcg1prod/wp-settings.php(506): do_action(‘plugins_loaded’)#012#5 /nas/content/live/pcg1prod/wp-config.php(119): require_once(‘/nas/content/li…’)#012#6 /nas/content/live/pcg1prod/wp-load.php(50): require_once(‘/nas/content/li…’)#012#7 /nas/content/live/pcg1prod/wp-blog-header.php(13): require_once(‘/nas/content/li…’)#012#8 /nas/content/live/pcg1prod/index.php(17): require(‘/nas/content/li…’)#012#9 {main}#012 thrown in /nas/content/live/pcg1prod/wp-content/plugins/duracelltomi-google-tag-manager/public/frontend.php on line 1324

    Tue, Feb 6, 2024, 09:36 AM EST

    auditor:event=upgrader_process_complete_plugin {“plugin”:”duracelltomi-google-tag-manager/duracelltomi-google-tag-manager-for-wordpress.php”,”type”:”plugin”,”action”:”update”,”temp_backup”:{“slug”:”duracelltomi-google-tag-manager”,”src”:”/nas/content/live/pcg1prod/wp-content/plugins”,”dir”:”plugins”},”blog_id”:1,”event”:”upgrader_process_complete_plugin”,”current_user_id”:7,”remote_addr”:”35.245.50.252″}

    Tue, Feb 6, 2024, 09:36 AM EST

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Strange, a similar issue has been reported on a different thread yesterday but the error message there complains about another PHP constant.

    My dev site is running on WP 6.4.3 and PHP 8.2 but does not generate such error messages.

    Could you try updating the plugin from the GitHub release manually?

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

    If this does not solve the issue, could you also post what PHP modules are currently active? Maybe it is possible to switch back to PHP 8.1 just to test whether the issue is around the PHP version?

    Thread Starter jhoffmanpcg

    (@jhoffmanpcg)

    We don’t feel comfortable doing a manual update there because of the hosting/security updates we use, but we do have a DEV environment.

    I’m not entirely sure how to view which PHP modules are active in there, can you guide me in the right direction? I can share that info & push the PHP version back in that environment and try updating the plugin if that makes sense.

    DM

    (@demeyer)

    I have encountered the same error with attempts to upgrade to 1.20.0. Any thoughts on a solution?

    Thanks in advance.

    pm1932

    (@pm1932)

    Same error while updating on WPEngine

    php 8.2

    wp: 6.4.3

    Thread Starter jhoffmanpcg

    (@jhoffmanpcg)

    Hello, I wanted to check in on this. Should I attempt to manually download the plugin on our DEV server/revert the PHP version or do you think there will be and update/fix with a newer version? Thanks in advance.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘GTM4WP 1.20.0 update attempt: Website responded with PHP error’ is closed to new replies.