Title: Uncaught ReferenceError: WPAC is not defined
Last modified: November 9, 2023

---

# Uncaught ReferenceError: WPAC is not defined

 *  Resolved [net](https://wordpress.org/support/users/krstarica/)
 * (@krstarica)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-wpac-is-not-defined/)
 * Seeing the following error in the console:
 *     ```wp-block-code
       wpac-frontend-js.js?ver=2.1.0:1 Uncaught ReferenceError: WPAC is not defined
           at 819 (wpac-frontend-js.js?ver=2.1.0:1:29552)
           at n (wpac-frontend-js.js?ver=2.1.0:1:137875)
           at wpac-frontend-js.js?ver=2.1.0:1:138203
           at wpac-frontend-js.js?ver=2.1.0:1:138211
           at wpac-frontend-js.js?ver=2.1.0:1:138215
       ```
   

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

 *  Plugin Author [Ronald Huereca](https://wordpress.org/support/users/ronalfy/)
 * (@ronalfy)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-wpac-is-not-defined/#post-17246616)
 * [@net](https://wordpress.org/support/users/net/),
 * I apologize for not getting back to you sooner. Are you able to duplicate this
   on other installs?
 *  Thread Starter [net](https://wordpress.org/support/users/krstarica/)
 * (@krstarica)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/uncaught-referenceerror-wpac-is-not-defined/#post-17694357)
 * Now seeing similar error:
 *     ```wp-block-code
       Uncaught TypeError: Cannot read properties of undefined (reading 'hooks')
           at 1434 (wpac-frontend-js.js?ver=2.2.0:2:26023)
           at o (wpac-frontend-js.js?ver=2.2.0:2:47649)
           at wpac-frontend-js.js?ver=2.2.0:2:47977
           at wpac-frontend-js.js?ver=2.2.0:2:47986
           at wpac-frontend-js.js?ver=2.2.0:2:47990
       ```
   
 * That’s the code:
 *     ```wp-block-code
       var t = (0,
                   window.wp.hooks.createHooks)();
       ```
   
 *  Plugin Author [Ronald Huereca](https://wordpress.org/support/users/ronalfy/)
 * (@ronalfy)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/uncaught-referenceerror-wpac-is-not-defined/#post-17695018)
 * [@krstarica](https://wordpress.org/support/users/krstarica/),
 * I’ve fixed this error. Thank you for bringing it to my attention.

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

The topic ‘Uncaught ReferenceError: WPAC is not defined’ is closed to new replies.

 * ![](https://ps.w.org/wp-ajaxify-comments/assets/icon-256x256.png?rev=2962290)
 * [Ajaxify Comments - Ajax and Lazy Loading Comments](https://wordpress.org/plugins/wp-ajaxify-comments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-ajaxify-comments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-ajaxify-comments/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-ajaxify-comments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-ajaxify-comments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-ajaxify-comments/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Ronald Huereca](https://wordpress.org/support/users/ronalfy/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/uncaught-referenceerror-wpac-is-not-defined/#post-17695018)
 * Status: resolved