• Plugin could not be activated because it created a fatal error. Grateful that it didn’t activate, but I’m staying away for now as it’s a launch with many eyes. Just added it today.

    The page I need help with: [log in to see the link]

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

    (@duracelltomi)

    Hi,

    Thanks for the report and sorry for the inconvenience.

    Could you please post the exact error message? This could be useful to provide a solution.

    Also, could you check earlier posts today? Perhaps it is already fixed:
    https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/

    A bugfix release will be available soon, perhaps it will also fix your issue.

    • This reply was modified 2 years, 11 months ago by Thomas Geiger.
    Thread Starter zignorp

    (@zignorp)

    Thanks, Thomas. I won’t try to reproduce til tonight, but I did just add and activate right before I posted, and fatal error was part of the message, pretty close to what I posted in the first line of my email. It was well after the last two posts with similar issues were posted. I will try on staging again tonight. I also thought I’d check to see if this plugin uses enqueue to load the scripts.

    Thread Starter zignorp

    (@zignorp)

    Here is the full text of the error. It’s still happening tonight and there’s no update. I’ve replaced my path with [MYPATH]

    Plugin could not be activated because it triggered a fatal error.

    Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in [MYPATH]/wp-content/plugins/duracelltomi-google-tag-manager/common/readoptions.php:450 Stack trace: #0 [MYPATH]/wp-content/plugins/duracelltomi-google-tag-manager/common/readoptions.php(465): gtm4wp_reload_options() #1 [MYPATH]/wp-content/plugins/duracelltomi-google-tag-manager/duracelltomi-google-tag-manager-for-wordpress.php(22): require_once('/home/hfaorg5/s...') #2 [MYPATH]/wp-admin/includes/plugin.php(2300): include('/home/hfaorg5/s...') #3 [MYPATH]/wp-admin/plugins.php(191): plugin_sandbox_scrape('duracelltomi-go...') #4 {main} thrown in [MYPATH]/wp-content/plugins/duracelltomi-google-tag-manager/common/readoptions.php on line 450

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    Thanks, I have just released v1.13.1, this should solve your issues.
    Please let me know if this is not the case so that I can investigate this further. It is always the best help for me if you can include the full error message.

    Thanks and sorry again for this inconvenience.

    I can confirm the error is still there in version 1.13.1

    See the error below this error is created on every pageload!!!!

    “[Tue Jul 13 12:18:09.674122 2021] [proxy_fcgi:error] [pid 31440:tid 139991128614656] [client 141.101.98.229:36910] AH01071: Got error ‘PHP message: PHP Warning: array_key_exists(): The first argument should be either a string or an integer in /…/website/web/wp-content/plugins/duracelltomi-google-tag-manager/common/readoptions.php on line 450’, referer: ….”

    So to stop the errors you need to hit save once on the googletagmanagerforwordpress settings page.

    This is a bit …

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘error on activation’ is closed to new replies.