Title: RocketLoader TypeError
Last modified: February 25, 2021

---

# RocketLoader TypeError

 *  [gravnetic](https://wordpress.org/support/users/gravnetic/)
 * (@gravnetic)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/rocketloader-typeerror/)
 * securesubmit.js?ver=1.0:42 Uncaught TypeError: Cannot read property ‘handler’
   of undefined
    at HTMLDocument.<anonymous> (securesubmit.js?ver=1.0:42) at l (
   rocket-loader.min.js:1) at t.simulateStateAfterDeferScriptsActivation (rocket-
   loader.min.js:1) at Object.callback (rocket-loader.min.js:1) at t.run (rocket-
   loader.min.js:1) at P (rocket-loader.min.js:1) at Object.callback (rocket-loader.
   min.js:1) at t.run (rocket-loader.min.js:1) at rocket-loader.min.js:1 at HTMLScriptElement.
   <anonymous> (rocket-loader.min.js:1)
 * Please reply when you have the rocket-loader js file linked properly in the plugin.
   The WordPress error is:
    Transaction rejected because the lookup on the supplied
   token failed.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Frocketloader-typeerror%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [gravnetic](https://wordpress.org/support/users/gravnetic/)
 * (@gravnetic)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/rocketloader-typeerror/#post-14120008)
 * Bump
 *  [slogsdon](https://wordpress.org/support/users/slogsdon/)
 * (@slogsdon)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/rocketloader-typeerror/#post-14136008)
 * [@gravnetic](https://wordpress.org/support/users/gravnetic/) As noted in your
   other thread ([https://wordpress.org/support/topic/hosted-form-fields-are-not-working-self-hosted-works-fine/](https://wordpress.org/support/topic/hosted-form-fields-are-not-working-self-hosted-works-fine/)),
   there’s issues with CloudFlare’s Rocket Loader as it will compile our plugin’s
   JavaScript with the rest of the site’s JavaScript files, and this process changes
   when our JavaScript is executed, resulting in the error you’ve posted above. 
   We’ve attempted to opt-out of Rocket Loader in the past (via [https://plugins.trac.wordpress.org/browser/woocommerce-securesubmit-gateway/trunk/classes/class-wc-gateway-securesubmit.php#L82](https://plugins.trac.wordpress.org/browser/woocommerce-securesubmit-gateway/trunk/classes/class-wc-gateway-securesubmit.php#L82)),
   but it doesn’t have any effect. While we’re investigating options, disabling 
   Rocket Loader (at least for checkout) is the only current option that is known
   to work.
 *  Thread Starter [gravnetic](https://wordpress.org/support/users/gravnetic/)
 * (@gravnetic)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/rocketloader-typeerror/#post-14280115)
 * I will give it a shot be disabling Rocket Loader and keep my form fields hosted
   by Secure Submit.

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

The topic ‘RocketLoader TypeError’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-securesubmit-gateway/assets/icon-256x256.png?
   rev=3385858)
 * [Global Payments SecureSubmit Gateway](https://wordpress.org/plugins/woocommerce-securesubmit-gateway/)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-securesubmit-gateway/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-securesubmit-gateway/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-securesubmit-gateway/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-securesubmit-gateway/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [gravnetic](https://wordpress.org/support/users/gravnetic/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/rocketloader-typeerror/#post-14280115)
 * Status: not resolved