Title: Uncaught ReferenceError: blockLoadedInterval is not defined
Last modified: September 1, 2021

---

# Uncaught ReferenceError: blockLoadedInterval is not defined

 *  Resolved [David Bee](https://wordpress.org/support/users/davidbawiec/)
 * (@davidbawiec)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-blockloadedinterval-is-not-defined/)
 * First off: what a marvelous plugin. Thanks for all your fantastic work!
 * Have to report a bug. WLCMS throws the following JavaScript error when in the
   Gutenberg editor:
    `Uncaught ReferenceError: blockLoadedInterval is not defined`
   This errors blocks many save functions in the editor, particularly when attaching
   media.
 * Steps to reproduce:
    1. Enable the **Hide WordPress Logo and Links** option and
   the **Gutenberg Exit Button**. 2. Go to Gutenberg post edit screen. Error will
   be in the browser console.
 * The Fix:
    Pretty sure this has to do with the fact that you modified the original
   reference code a tad (in wp-content/plugins/white-label-cms/includes/classes/
   Admin_Settings.php):
 *     ```
       wlcms_add_js(' var wlcms_change_back = setInterval(function() {if(jQuery(".edit-post-fullscreen-mode-close svg").length > 0 ){ jQuery(".edit-post-fullscreen-mode-close").html("'. $image .'"); clearInterval(blockLoadedInterval);}}, 100);');
       ```
   
 * As such, `blockLoadedInterval` truly isn’t defined anywhere. I think that last
   bit of code should read `clearInterval(wlcms_change_back);`
    -  This topic was modified 4 years, 9 months ago by [David Bee](https://wordpress.org/support/users/davidbawiec/).

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

 *  Plugin Author [Video User Manuals](https://wordpress.org/support/users/videousermanuals/)
 * (@videousermanuals)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-blockloadedinterval-is-not-defined/#post-14829617)
 * Hi [@davidbawiec](https://wordpress.org/support/users/davidbawiec/)
 * Thanks so much for the kind words.
 * We will recreate the issue you described, and then push out a fix for it.
 * Thanks once again, for highlighting the issue, and providing the solution!
 * Cheers
 *  Plugin Author [Video User Manuals](https://wordpress.org/support/users/videousermanuals/)
 * (@videousermanuals)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-blockloadedinterval-is-not-defined/#post-14848927)
 * Hi [@davidbawiec](https://wordpress.org/support/users/davidbawiec/) ,
 * We have just released a version which fixes this issue.
 * Thanks!

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

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

 * ![](https://ps.w.org/white-label-cms/assets/icon-256x256.png?rev=1977768)
 * [White Label CMS](https://wordpress.org/plugins/white-label-cms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/white-label-cms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/white-label-cms/)
 * [Active Topics](https://wordpress.org/support/plugin/white-label-cms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/white-label-cms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/white-label-cms/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Video User Manuals](https://wordpress.org/support/users/videousermanuals/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-blockloadedinterval-is-not-defined/#post-14848927)
 * Status: resolved