Skip Navigation

[Resolved] react crashes in page templates

This support ticket is created 3 years, 9 months 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 3 years, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#2000919

Continuing on from https://toolset.com/forums/topic/errors-on-viewing-content-templates/#post-2000899 as I'm unable to reopen even though it's within 24 hours.

I still have an issue. I'm able to look at all my content templates apart from one, the session template. Can you check on the duplicated site you took and see if you can work it out? I'm still getting the javascript errors in the console:

SyntaxError: Unexpected token u in JSON at position 1
at JSON.parse (<anonymous>)
at save (blocks.editor.js?ver=2.6.6:1)
at Wt (blocks.min.js?ver=9ed25ffa009c799f99a4340915b6dc6a:3)
at Qt (blocks.min.js?ver=9ed25ffa009c799f99a4340915b6dc6a:3)
at block-editor.min.js?ver=7bc2f41a2f2e0da426f12f29b2139cae:12
at hooks.min.js?ver=50e23bed88bcb9e6e14023e9961698c1:2
at $r (blocks.min.js?ver=9ed25ffa009c799f99a4340915b6dc6a:3)
at Ur (blocks.min.js?ver=9ed25ffa009c799f99a4340915b6dc6a:3)
at Array.map (<anonymous>)
at Ur (blocks.min.js?ver=9ed25ffa009c799f99a4340915b6dc6a:3)
react-dom.min.js?ver=16.13.1

If I try and create a replacement template, I get this error if I flip it to code view:

TypeError: Cannot read property 'ownerDocument' of undefined
at <em><u>hidden link</u></em>
at Bh (<em><u>hidden link</u></em>)
at Dj (<em><u>hidden link</u></em>)
at unstable_runWithPriority (<em><u>hidden link</u></em>)
at Da (<em><u>hidden link</u></em>)
at xb (<em><u>hidden link</u></em>)
at Te (<em><u>hidden link</u></em>)
at <em><u>hidden link</u></em>
at unstable_runWithPriority (<em><u>hidden link</u></em>)
at Da (<em><u>hidden link</u></em>)
#2001425

Hello,

I have reopened the thread you mentioned above:
https://toolset.com/forums/topic/errors-on-viewing-content-templates

Waqar will answer it, please follow it again.