Skip Navigation

[Resolved] Javascript error breaking edit functionality

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 9 replies, has 2 voices.

Last updated by Minesh 7 months, 2 weeks ago.

Assisted by: Minesh.

Author
Posts
#2704728

This has been an ongoing problem. The site admin will clone a page to make edits, but after trying to go back in to edit ends up with just a white screen. If I disable Toolset I can get back in. The only Toolset block (if any) used is the container.

I set up a copy of the site and installed the Gutenberg plugin to try to help troubleshoot (as otherwise no actual errors appear) and get this:

TypeError: e[t].toHTMLString is not a function
at hidden link
at Array.forEach (<anonymous>)
at a (hidden link)
at ya (hidden link)
at Na.<computed> (hidden link)
at hidden link
at hidden link
at $r (hidden link)
at Ur (hidden link)
at hidden link

What can we do to prevent this from happening? We are considering completely removing Toolset from the site if we can't resolve it.

#2704823

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

This is a known issue to us and here is the errata page:
- https://toolset.com/errata/block-editor-failing-to-open-for-some-pages/

Can you please try to use the following beta version of Toolset Blocks on ***staging*** site and check if that help you to resolve your issue.
- hidden link

If the beta version help you to resolve your issue, I suggest you should wait a bit and we will suppose to release official hotfix version in coming one or two weeks.

#2704825

Great, that seems to get rid of the error. Are there any things to be aware of in using this beta in production now? Are there particular changes that might cause other issues, that we should be aware of in testing before doing so?

Also, we are getting a lot of "This block contains unexpected or invalid content." errors on the page we're trying to work with (with standard Gutenberg blocks). They all resolve when we click "Attempt Block Recovery" but we're still trying to get to the root of that problem. Is there a possibility of that being Toolset related? I did seem that the existence of these (needing bock recovery) is what caused that Toolset-related JS error which blocked editing, but I don't know if Toolset might be related to that issue itself.

#2704826

Note - I know you said "If the beta version help you to resolve your issue, I suggest you should wait a bit and we will suppose to release official hotfix version in coming one or two weeks." but we really CAN'T. The client needs to be editing things now.

#2704830

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Then I would suggest:

*** Please make a FULL BACKUP of your database and files from production.***

Then try to use the beta version I shared and check if that helps and works without any issue. However - You should first try and see on staging if everything seems normal then you may try to use beta version but again we do not recommond.

If you see any side-effect of Toolset Blocks beta version then you can revert back to the stable Toolset Blocks version.

#2704831

Thanks. I would do that, and am using staging first.

My question is - based on the nature of changes with this beta, are there particular blocks/types of usage that I should be particularly on the lookout for issues with? Functionality that the beta could potentially have broken?

#2704834

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

My question is - based on the nature of changes with this beta, are there particular blocks/types of usage that I should be particularly on the lookout for issues with? Functionality that the beta could potentially have broken?
===>
I do not have any idea about that and probably it will not brake anything but possibility are there.

#2705796

When are you planning the final release of this update? The current version is causing MAJOR issues for our sites. The beta seems to resolve them, but I am hesitant to put that into Production.

Thanks,
Bob

#2705911

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I've a news that we suppose to publish the hotfix release on early next week if everything goes as expected.

I suggest wait for a bit more for official hotfix release.

#2707111

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Just to let you know that the fix for this issue is already published with the latest Toolset plugins.

We publish hotfix version for many Toolset plugins:
- https://toolset.com/2024/07/toolset-1-6-16-essential-updates-for-wordpress-6-6-and-better-workflow/

*** Please make a FULL BACKUP of your database and website.***
Cam you please update ALL Toolset plugins to it's latest official release version and check if that help you to fix the issue.

More info:
- https://toolset.com/faq/how-to-install-and-register-toolset/#automatic-update-requires-registratio

OR

You can download the latest Toolset plugins from your account's page:
- https://toolset.com/account/downloads/