Skip Navigation

[Closed] TypeError: Cannot read properties of null (reading 'getContentSelection')

This support ticket is created 3 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 4 replies, has 2 voices.

Last updated by Nigel 3 years ago.

Author
Posts
#2375817

I am trying to:
Edit my block base content archive

Link to a page where the issue can be seen:
Only admin can see it.

I expected to see:
My block editor.

Instead, I got:

TypeError: Cannot read properties of null (reading 'getContentSelection')
at c (hidden link)
at hidden link
at hidden link
at Le (hidden link)
at Re (hidden link)
at Pj (hidden link)
at di (hidden link)
at Nj (hidden link)
at sc (hidden link)
at gf (hidden link)

#2375821

I just updated all of my ToolSet plugins to the latest version and the issue still persists.
I also tried pressing the attempt recovery option but it did not work.

#2375823

I just now tried updating to WordPress 6.0 and am met with the following error:
The "toolset-views" plugin has encountered an error and cannot be rendered.

The console log contains this:
react-dom.min.js?ver=17.0.1:9 TypeError: Cannot read properties of null (reading 'getContentSelection')
at c (wordpressArchive.js?ver=3.6.3:1:14015)
at wordpressArchive.js?ver=3.6.3:9:33374
at compose.min.js?ver=da94d523b115836ddbf0b3b774ddd94a:9:17654
at ct (react-dom.min.js?ver=17.0.1:9:43430)
at Bt (react-dom.min.js?ver=17.0.1:9:50249)
at os (react-dom.min.js?ver=17.0.1:9:112112)
at Ur (react-dom.min.js?ver=17.0.1:9:77643)
at Ir (react-dom.min.js?ver=17.0.1:9:77571)
at Dr (react-dom.min.js?ver=17.0.1:9:77434)
at Pr (react-dom.min.js?ver=17.0.1:9:74429)

#2375847

Staging environment:

[edited]

#2376097

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Hi Reece

Where can we see the errors?

I logged in to your staging site (I've removed the login details) and based upon your initial post I edited the only custom archive on the site, and it loads fine in the editor without errors.

That suggests there may be a browser caching issue. Can you clear your browser cache and perform a hard reload and try editing it again?

Or if we should be looking somewhere else, please let us know.

The topic ‘[Closed] TypeError: Cannot read properties of null (reading 'getContentSelection')’ is closed to new replies.