• I’m getting this notice thousands of times in my php error log.

    PHP Notice: Trying to access array offset on value of type null in /home/mcpirdmy/public_html/wp-content/plugins/duracelltomi-google-tag-manager/integration/woocommerce.php on line 969

    Any ideas what this error is or how to solve it?

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

    (@duracelltomi)

    Based on the error message it is generated on this line:

    https://github.com/duracelltomi/gtm4wp/blob/master/integration/woocommerce.php#L969

    But from here it is very hard to guess what could cause this behavior.
    Are you using latest stable WordPress/WooCommerce/GTM4WP?

    Thread Starter chrisdperry91

    (@chrisdperry91)

    Hello, yes all plugins are up to date.

    I’m currently trying to debug another issue between WooCommerce & WPML, in doing so I deleted thousands of product categories that were mistakingly imported. Thousands of products were left without a category which I then had to go and add back to the uncategorized category. Not sure if that’s relevant to this issue but figured I would put it out there since that line of code references product category.

    Plugin Author Thomas Geiger

    (@duracelltomi)

    The error line definitely shows me that it is happening with products having no categories. If you can put all product into at least one category, the error should go away

    Thread Starter chrisdperry91

    (@chrisdperry91)

    I have updated all product and they are at the very least in the default “Uncategorized” category. Still getting the error. Every few minutes it will log the same error about 10 times or so in a couple seconds. There is also this new one. Related I’m assuming but different form the other.

    PHP Notice: Undefined index: loop in /home/mcpirdmy/public_html/wp-content/plugins/duracelltomi-google-tag-manager/integration/woocommerce.php on line 969

    Is there something I could try to reset within the plugin now that I have added the products back into a category?

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

The topic ‘PHP Notice Woocommerce Integration’ is closed to new replies.