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!

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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

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

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice