Title: ReferenceError: UAGBTableOfContents is not defined
Last modified: May 11, 2020

---

# ReferenceError: UAGBTableOfContents is not defined

 *  Resolved [Silver88](https://wordpress.org/support/users/silvan/)
 * (@silvan)
 * [6 years ago](https://wordpress.org/support/topic/referenceerror-uagbtableofcontents-is-not-defined/)
 * Trying to use the Table of contents but there seems a javascript error i can’t
   find what’s the problem.
 * “ReferenceError: UAGBTableOfContents is not defined”
 * I did find this in the changelogs:
    “Fix: WP Rocket – “javascript defered without
   safe mode jQuery” compatibility.”
 * Should be fixxed? I’m also using WP Rocket. But maybe it’s something else, hope
   someone has a solution for this, or knows where to look?

Viewing 1 replies (of 1 total)

 *  Plugin Support [Team Brainstorm Force](https://wordpress.org/support/users/brainstormteam/)
 * (@brainstormteam)
 * [6 years ago](https://wordpress.org/support/topic/referenceerror-uagbtableofcontents-is-not-defined/#post-12820040)
 * Hello [@silvan](https://wordpress.org/support/users/silvan/),
 * In order to work it properly, I would suggest you to kindly exclude the JS from
   the caching list.
 * **JS file name **– `table-of-contents.js`
 * **JS file path** –
    `/wp-content/plugins/ultimate-addons-for-gutenberg/assets/
   js/table-of-contents.js`
 * If still not working, could you please open a ticket from [here](https://www.ultimategutenberg.com/support),
   so that we can help you out?
 * Looking forward to hearing from you.
 * Regards,
    Sweta
    -  This reply was modified 6 years ago by [Team Brainstorm Force](https://wordpress.org/support/users/brainstormteam/).
    -  This reply was modified 6 years ago by [Team Brainstorm Force](https://wordpress.org/support/users/brainstormteam/).

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/ultimate-addons-for-gutenberg/assets/icon-256x256.gif?rev
   =3240412)
 * [Spectra Gutenberg Blocks – Website Builder for the Block Editor](https://wordpress.org/plugins/ultimate-addons-for-gutenberg/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-addons-for-gutenberg/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-addons-for-gutenberg/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-addons-for-gutenberg/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-addons-for-gutenberg/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-addons-for-gutenberg/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Team Brainstorm Force](https://wordpress.org/support/users/brainstormteam/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/referenceerror-uagbtableofcontents-is-not-defined/#post-12820040)
 * Status: resolved