Code example cannot be saved in Gutenberg
-
I was trying to update an old post but it would not save. The error message was:
Updating failed. The response is not a valid JSON response.
I have some example source code on my post and the line causing this issue is this one:
FILE *f = fopen(“/proc/cpuinfo”,”w”);
I managed to work around this by editing the post in the classic editor, where it updates with no issue. It also updates with no issue in Gutenberg if I remove the above line from the post. I’m guessing it’s tripping some kind of security check, but since I write example code in some of my posts, I thought I would share this in case anyone else runs into the same problem.
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.