• 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.

    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

    (@ndiego)

    Thanks for reporting Mark. I believe have identified to issue, there was a missing ? in this line 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

    (@markhowellsmead)

    The block breaks when I select it, but this is the config.

    <!-- wp:group {"layout":{"type":"default"},"blockVisibility":{"controlSets":[{"id":1,"enable":true,"controls":{"userRole":{}}}],"visibilityPresets":{"presets":[248]}}} -->
    Plugin Author Nick Diego

    (@ndiego)

    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

    (@markhowellsmead)

    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

    (@ndiego)

    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

    (@markhowellsmead)

    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.