Support

Home Forums Event Espresso Premium Error on thank-you page with GTM for WordPress installed

Error on thank-you page with GTM for WordPress installed

Posted: March 8, 2020 at 8:58 pm


botanicwise

March 8, 2020 at 8:58 pm

We use the plugin GTM for WordPress for tracking script management. During the checkout process, when a user reaches the confirmation page, they receive the following error message:

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘gtm_conversion_tracking’ not found or invalid function name in /home/customer/www/charisl.sg-host.com/public_html/wp-includes/class-wp-hook.php on line 288

I use this plugin on several other sites with no issues. I’m guessing it’s a conflict between the 2 plugins but not sure where to begin with it.

WordPress v5.3.2
Critical plugins:
Event Espresso v4.10.3.p
GTM for WordPress v1.11.2


Tony

  • Support Staff

March 9, 2020 at 11:59 am

Hi there,

The error message you are getting basically means that there is code on the site calling a function that doesn’t exist, usually something like:

add_filter( '{something}' , array( $this , 'gtm_conversion_tracking' ), 10 );

Or

add_filter( '{something}', 'gtm_conversion_tracking');

But then there is no gtm_conversion_tracking function to call.

I downloaded GTM and looked over the code to see if anything stood out and the callback functions in that plugin use a gtm4wp_ prefix rather than just gtm_.

I also checked for gtm4wp_conversion_tracking and again, no such function.

Have you checked for any custom code running on the above site?


botanicwise

March 9, 2020 at 1:58 pm

Hmmm…puzzling, the only custom code we have is filters and hooks for EE.


Josh

  • Support Staff

March 9, 2020 at 2:15 pm

You could check your custom code to see if there’s anything including a “gtm_conversion_tracking” callback.


botanicwise

March 9, 2020 at 3:39 pm

Ahh….found it, thank you!

The support post ‘Error on thank-you page with GTM for WordPress installed’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso