Can't view/edit JSON file. Syntax and Reference error in editit.html

ericchen0121

Registered
Sep 25, 2017
1
0
1
San Francisco, CA
cPanel Access Level
Root Administrator
I have a .json file that has been uploaded and that powers a section on our site. After updating the .json file in the online editor, there were some errors in the file (it wasn't valid JSON) and after that, I was unable to edit the file in the editor.

I fixed the errors to make JSON valid, then uploaded the file and replaced the existing one (since I couldn't edit it in the online editor).

The JSON now does NOT work in powering the section on our site, and I still can't view it in the editor (the editor shows up, but no JSON in the editor).


The console errors are:
Uncaught SyntaxError: Invalid or unexpected token editit.html:1292

Uncaught ReferenceError: toolbarActions is not defined
at HTMLButtonElement.onclick (editit.html:1096)

Uncaught ReferenceError: toolbarActions is not defined
at HTMLButtonElement.onclick (editit.html:1087)

Uncaught ReferenceError: toolbarActions is not defined
at HTMLButtonElement.onclick (editit.html:1103)

Anybody know how to fix this issue? Screen Shot 2017-09-25 at 5.56.51 PM.png
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,218
463
Hello,

Could you open a support ticket using the link in my signature so we can take a closer look?

Thank you.