Title: JavaScript error in 6.3.2
Last modified: October 13, 2023

---

# JavaScript error in 6.3.2

 *  [Mark Howells-Mead](https://wordpress.org/support/users/markhowellsmead/)
 * (@markhowellsmead)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/javascript-error-in-6-3-2/)
 * I’m getting a JavaScript error in the browser console since updating to WordPress
   6.3.2 when clicking on a Group block which has visibility settings applied.
 *     ```wp-block-code
       TypeError: Cannot read properties of undefined (reading 'settings_url')at fn (block-visibility-editor.js?ver=c3279e8a7d1af51827d4:39:1001)at wt (react-dom.min.js?ver=18.2.0:10:47637)at js (react-dom.min.js?ver=18.2.0:10:120584)at wl (react-dom.min.js?ver=18.2.0:10:88659)at bl (react-dom.min.js?ver=18.2.0:10:88587)at yl (react-dom.min.js?ver=18.2.0:10:88450)at il (react-dom.min.js?ver=18.2.0:10:85274)at fl (react-dom.min.js?ver=18.2.0:10:85661)at Nn (react-dom.min.js?ver=18.2.0:10:32474)at react-dom.min.js?ver=18.2.0:10:83226
       ```
   

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

 *  Plugin Author [Nick Diego](https://wordpress.org/support/users/ndiego/)
 * (@ndiego)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/javascript-error-in-6-3-2/#post-17121637)
 * Thanks for reporting Mark. I believe have identified to issue, there was a missing`?`
   in [this line](https://github.com/ndiego/block-visibility/blob/40ead26a5a5b8010f671bb225fa54eecfea05446/src/controls/user-role/index.js#L51C50-L51C50)
   of the code.
 * The strange thing is that I am not able to replicate the error on my end, and
   I am not seeing anything in the 6.3.2 release notes that would have changed to
   trigger this error.
 * I’ll get a patch together for release tomorrow, but can you tell me what visibility
   controls were applied to the Group block? Or is this error occurring on all blocks
   with visibility controls set?
 * Thanks,
   Nick
 *  Thread Starter [Mark Howells-Mead](https://wordpress.org/support/users/markhowellsmead/)
 * (@markhowellsmead)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/javascript-error-in-6-3-2/#post-17121823)
 * The block breaks when I select it, but this is the config.
 *     ```wp-block-code
       <!-- wp:group {"layout":{"type":"default"},"blockVisibility":{"controlSets":[{"id":1,"enable":true,"controls":{"userRole":{}}}],"visibilityPresets":{"presets":[248]}}} -->
       ```
   
 *  Plugin Author [Nick Diego](https://wordpress.org/support/users/ndiego/)
 * (@ndiego)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/javascript-error-in-6-3-2/#post-17124242)
 * Hey Mark,
 * Thanks for the additional info. While I am still unable to replicate the issue,
   I did find a few other bugs in my investigation that might be causing it. I just
   published v3.1.2 fixing those.
 * Whenever you have time, please give v3.1.2 a test and let me know if that resolves
   things. Sorry again for the trouble.
 * Best, 
   Nick
 *  Thread Starter [Mark Howells-Mead](https://wordpress.org/support/users/markhowellsmead/)
 * (@markhowellsmead)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/javascript-error-in-6-3-2/#post-17126740)
 * The problem is no longer occurring with the newest version of the plugin. Thanks
   Nick. However, updating to the new version reset the “Full Control Mode” setting.
 * Additionally, even though Full Control Mode is now active, I cannot set visibility
   preferences on a `core/list-item` block. (I doubt that this is a related bug.)
 *  Plugin Author [Nick Diego](https://wordpress.org/support/users/ndiego/)
 * (@ndiego)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/javascript-error-in-6-3-2/#post-17131180)
 * It sounds like the plugin settings are not getting fetched from the REST API.
   The Full Control Mode setting is disabled by default. Would you be able to share
   the URL of the site?
 * Thanks, 
   Nick
 *  Thread Starter [Mark Howells-Mead](https://wordpress.org/support/users/markhowellsmead/)
 * (@markhowellsmead)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/javascript-error-in-6-3-2/#post-17134282)
 * I’ve sent you the URL as a DM in Twitter.

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

The topic ‘JavaScript error in 6.3.2’ is closed to new replies.

 * ![](https://ps.w.org/block-visibility/assets/icon-256x256.png?rev=3122657)
 * [Block Visibility — Conditional Visibility Control for the Block Editor](https://wordpress.org/plugins/block-visibility/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/block-visibility/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/block-visibility/)
 * [Active Topics](https://wordpress.org/support/plugin/block-visibility/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/block-visibility/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/block-visibility/reviews/)

## Tags

 * [javascript error](https://wordpress.org/support/topic-tag/javascript-error/)

 * 6 replies
 * 2 participants
 * Last reply from: [Mark Howells-Mead](https://wordpress.org/support/users/markhowellsmead/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/javascript-error-in-6-3-2/#post-17134282)
 * Status: not resolved