Site logo

Archived topic

TypeError: Cannot read properties of undefined

7 replies · Started by Nadine on October 25, 2021

Viewing posts 1–8 of 8

I'm getting the following error only when I go to the Widgets area.

TypeError: Cannot read properties of undefined (reading 'PluginDocumentSettingPanel')
at c.value (/wp-content/plugins/gp-premium/dist/editor.js?ver=1629210156:1:2733)
at Ie (/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:104:8)
at rh (/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:103:334)
at zj (/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:228:490)
at Th (/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:152:223)
at tj (/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:152:152)
at Te (/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:146:151)
at Ja (/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:224:381)
at md (/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:173:43)
at /wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:175:222

Hi there,

i logged into the staging site and went to Appearance > Widgets and they loaded without any errors... some of them did take an age to load though but after a little while they all appeared correctly (?):

https://www.screencast.com/t/vKBUmljNLmo

I just tried it from a different computer and I get the error still

The editor has encountered an unexpected error.

Attempt Recovery
Copy Error

Same error in an incognito window.

I tested the site again on Safari, Chrome and Firefox ( MacOS ).
All of them report this 3 x Warning in the Developers console - relating to this:

The block "mec/blockeditor-0" is registered with an invalid category "mec.block.category".

Firefox also throws some other Console Errors but these are related to FF specfic issues with certain methods of Javascript Animations.

But in all cases the widget area loads correctly and there are visible errors in the backend.

Very peculiar that we get different results, which makes it difficult to debug.

Let's try eliminating an issue with a Legacy widget being displayed in Block Widgets. By disabling Block Widgets - this doc explains how:

https://docs.generatepress.com/article/disable-the-block-editor-in-widgets/

That worked, I can access the widgets now!

Awesome - glad to hear that - pesky Block Widgets :)

This archived topic is closed to new replies.