Javascript JSON when block first added
-
When I add a block to the editor for the first time, I get a console error:
Uncaught SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
This only happens when the block is added to the Gutenberg editor. If I save the page and reload, then there are no further console errors, even if this block is on the page.
I noticed this because once I’d added this block while writing content, suddenly the saving button wouldn’t animate during a save as a product of the Javascript halting execution.
It’s worth noting that the plugin and the block itself are functioning perfectly, so this isn’t a major break.
This happens in both my local copy and the production copy of the website.
Server info:
Server architecture Linux 5.15.0-102-generic x86_64
Web server nginx/1.26.1
PHP version 8.3.8 (Supports 64bit values)
PHP SAPI fpm-fcgi
PHP max input variables 1000
PHP time limit 120
PHP memory limit 256M
Max input time 60
Upload max filesize 64M
PHP post max size 64M
cURL version 7.81.0 OpenSSL/3.0.2
Is SUHOSIN installed? No
Is the Imagick library available? Yes
Are pretty permalinks supported? Yes
Current time 2024-07-05T13:25:13+00:00
Current UTC time Friday, 05-Jul-24 13:25:13 UTC
Current Server time 2024-07-05T13:25:10+00:00The only quirk with this WordPress installation is that /admin is used for the login page, but I don’t think that should have any affect on the JS being parsed.
If you need any extra information, please don’t hesitate to ask.
- You must be logged in to reply to this topic.