My site works very slow and it's impossible to start editing in Elementor. The issue I've found, that I'm not sure if it's causing is:
MESSAGE TYPE: (Javascript) TypeError
PROBLEM DESCRIPTION: t.trigger is not a function
SCRIPT NAME: jquery.blockUI.min.js
LINE: 14
SCRIPT LOCATION:
PLUGIN NAME: woocommerce
I cannot deactivate this plugin to check if this is causing the issues and I'm not sure how to fix this error by myself. Do you have any reccomendations for me?
My site works very slow and it's impossible to start editing in Elementor. The issue I've found, that I'm not sure if it's causing is:
MESSAGE TYPE: (Javascript) TypeError
PROBLEM DESCRIPTION: t.trigger is not a function
SCRIPT NAME: jquery.blockUI.min.js
LINE: 14
SCRIPT LOCATION: https://selmaacademy.com/wp-content/plugins/woocommerce/assets/js/jquery-blockui
PLUGIN NAME: woocommerce
I cannot deactivate this plugin to check if this is causing the issues and I'm not sure how to fix this error by myself. Do you have any reccomendations for me?
Share Improve this question edited Feb 5 at 21:54 vancoder 7,92428 silver badges35 bronze badges asked Feb 5 at 19:11 AgnieszkaAgnieszka 11 Answer
Reset to default -1Troubleshooting: t.trigger is not a function Error
This error typically occurs due to jQuery conflicts or loading issues in WordPress. Here's a comprehensive guide to diagnose and fix the problem.
Potential Causes & Solutions
1. jQuery Version or Loading Conflict
- Sometimes older themes or plugins can load outdated jQuery or override the default WordPress jQuery
- Check if your theme or another plugin is re-registering or dequeuing jQuery
- Ensure jQuery is loaded properly before any script that uses
t.trigger
2. Caching / Minification Plugins
- If you're using plugins like WP Rocket, W3 Total Cache, or any minification tool:
- Try excluding
jquery.blockUI.min.js
from being combined or minified - Clear the cache and check if the error persists
- Try excluding
3. Conflicts With Other Plugins
Even if you "cannot" deactivate WooCommerce, you could:
- Temporarily deactivate or test on a staging site if possible
- Disable other plugins one by one on a staging environment to identify the conflict
4. Check for a Theme-Specific Issue
- Switch temporarily to a default WordPress theme (e.g., Twenty Twenty-Three) on a staging environment
- If the error disappears, the conflict might be in your theme's scripts
5. Elementor Incompatibility
- Ensure both WooCommerce and Elementor are fully up-to-date
- Check Elementor's system info to see if it flags any known conflicts
6. Look for JavaScript Console Errors
- The
t.trigger is not a function
error can be a symptom of a deeper issue - There might be a script that redefines or wraps jQuery incorrectly
- Open your browser's dev tools > Console tab to look for other errors that appear before or after this one
Quick Troubleshooting Steps
Disable Minification (on a staging site) to see if that helps
Turn off or rollback recent updates to see if the conflict disappears
Enable SCRIPT_DEBUG in
wp-config.php
to force WordPress to load non-minified scripts:define('SCRIPT_DEBUG', true);
This can give you a more verbose stack trace in the Console.
Update Everything:
- WordPress core
- WooCommerce
- Elementor
- Theme
- Other active plugins
Summary
- The error
t.trigger is not a function
typically indicates a jQuery loading conflict or script misconfiguration - If you can't disable WooCommerce, use a staging or local environment for conflict testing
- Key areas to check:
- Caching/minification settings
- Component updates
- Plugin/theme jQuery overrides
By methodically isolating the conflict—usually via a staging site—and checking your minification/caching settings, you should be able to resolve (or at least identify) the root cause of the issue.