Sauter la navigation

[Résolu] Can’t open archive in editor anymore due to « Unexpected error »

This support ticket is created Il y a 3 semaines et 4 jours. 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
- 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)

Ce sujet contient 1 réponse, a 1 voix.

Dernière mise à jour par Minesh Il y a 2 semaines et 1 jour.

Assisté par: Minesh.

Auteur
Publications
#2794249

Hi all,
When trying to edit a WP archive I get the following error:
"The editor has encoutered an unexpected error" -> Copy error

SyntaxError: Expected property name or '}' in JSON at position 1 (line 1 column 2)
at JSON.parse (<anonymous>)
at save (lien caché)
at Qr (lien caché)
at Zr (lien caché)
at lien caché
at co (lien caché)
at lien caché
at uo (lien caché)
at lien caché
at Array.map (<anonymous>)

The page is quite complex, but still works on front end. The only visible issue are that pagination style in incorrect and the Legal documents widget in the footer isn't displayed. I have removed the widget from the theme settings, but nothing changed. I suppose the error happens before the widget is displayed, possibly in pagination. I am not sure if it's an error generated by Toolset or other blocks (mainly Kadence) though.
Any clue ? thanks
Regards
Nicola

#2794330

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I would like to know your current setup.

Could you please send me debug information that will help us to investigate your issue.
=> https://toolset.com/faq/provide-debug-information-faster-support/

#2794362

Here you are Minesh, thanks

#2794652

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Based on the debug information you shared - I see you are using number of third-party plugin. In order to minimize the cause of the issue and to ensure there is no conflict with the plugins/theme you use:

Could you please try to resolve your issue by deactivating all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes?
- Do you see any difference?

#2794676

Hi Minesh,
Just did what you suggested, deactivated the Theme and then all plugins (but Toolset) one by one, no difference, still get the error.
I also went to the db and found the post, deleted the content completely, but no changes and the page still works ! how is this possible ?
thanks

#2794690

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Can you please share problem URL and admin access details and let me review whats going wrong with your setup.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2795180

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

I can see the issue and checked but I'm not sure what is casing this issue.

Can you please send me duplicator copy of your site.
=> https://toolset.com/faq/provide-supporters-copy-site/

I have set the next reply to private which means only you and I have access to it.

#2795599

Hello Minesh,
For I don't know how long it will take for you to find out what causes the issue, I am thinking to delete the archive and recreate it as normal page. The only issue I see with this is that when the user clicks on a tag it opens a standard archive instead of the custom page. Is there a way to replace the archive with a page for tags or taxonomies?
thanks
Regfards
Nicola

#2795712

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

I've checked and I found so many JS errors like:

Block validation: Block validation failed for `toolset-views/custom-search-filter`

It seems the archive you created has been somehow corrupted. I suggest you should try to create a new archive. So, delete the existing archive and create a new archive. Before that I suggest you must take full backup of your website and database.