Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'General Discussion' started by ericchen0121, Sep 25, 2017.

  1. ericchen0121

    ericchen0121 Registered

    Joined:
    Sep 25, 2017
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

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

    Thank you.
     
Loading...

Share This Page