0

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?

1 Answer 1

-1

Troubleshooting: 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

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

  1. Disable Minification (on a staging site) to see if that helps

  2. Turn off or rollback recent updates to see if the conflict disappears

  3. 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.

  4. 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.

1
  • Please note that this looks suspiciously like AI-Generated content. If this is the case, we do have policies in place in which you must disclose it's usage and reference which AI was used. Commented Feb 6 at 18:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.