Skip to content
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.

Textarea limit of 6,020ish characters #254

Open
lukecarbis opened this issue Mar 17, 2019 · 5 comments
Open

Textarea limit of 6,020ish characters #254

lukecarbis opened this issue Mar 17, 2019 · 5 comments

Comments

@lukecarbis
Copy link
Member

When putting more than 6,020 characters in a text box, the following error is displayed:

Error loading block: The response is not a valid JSON response.

2019-03-17 20-25-07 2019-03-17 20_27_06

@lukecarbis lukecarbis changed the title Textarea limit of 6,020 characters Textarea limit of 6,020ish characters Mar 27, 2019
@lukecarbis
Copy link
Member Author

The max number of characters seems to vary. It's more likely that it's a filesize (kb) limit.

@lukecarbis
Copy link
Member Author

Additionally, it seems like it's not actually the size of the textarea text that matters, but the size of the entire JSON once it's saved. For example, you could have a single textarea that fits a whole bunch of characters before it errors, or multiple textareas that fit much less text before it errors.

Lastly, its seems like non-english text (e.g. Cyrillic) may contribute to the problem.

@kienstra
Copy link
Collaborator

It looks like this support topic has a similar issue:

Yes, if add too much text in textarea field type it isn’t rendering in block editor

@kienstra
Copy link
Collaborator

Here's another related support topic:
https://wordpress.org/support/topic/json-error-20/

@cgodefroy
Copy link

You might check your other plugins: Popup Maker is a likely culprit. At least, for me it is the event that created the issue. I've not investigated more.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants