Jump to:

22977 Posts in 11806 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » How to debug "Javascript Parse Error"?

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 4992 Views
  • Jatinder
    Avatar
    Community Member
    23 Posts

    How to debug "Javascript Parse Error"? Link to this post

    I have been now using SS for couple of months and find it quite extensible. But there is one issue which leaves me stumped, the "Javascript Parse Error".

    I have no idea why and when this errors pops up. The same code will work fine on one server but will give "Javascript Parse Error" on another.

    What are the most common causes of this error? How do I go about finding the cause of this error. Any information will be helpful.

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: How to debug "Javascript Parse Error"? Link to this post

    If its JavaScript the best place to debug is your browsers console panel. Firebug is a useful plugin for firefox, displays the console inline in the webpage.

  • Jatinder
    Avatar
    Community Member
    23 Posts

    Re: How to debug "Javascript Parse Error"? Link to this post

    Yes, I know I can use firebug to debug JS code.

    But the thing is that I am not changing or adding any JS code. The site is using the stock JS code that came with the script. The error is triggered by something in my custom modules (though I have seen the error occur even without any custom modules).

    And just to clarify, the "Javascript Parse Error" notice I am referring is to the one the appears sometimes when you are try to save or publish the page.

  • ciaranhickey
    Avatar
    Community Member
    17 Posts

    Re: How to debug "Javascript Parse Error"? Link to this post

    Hi,

    I am having the exact same issue... with a recent install of version 2.4.0.

    I have not modified or added any javascript but I receive the Javascript Parse Error when I try to save/publish a page. It lets me save/publish the page second time around but it's a bit frustrating having to do this every time.

    I have tried the Firebug console but doesn't really help much.

    CiarĂ¡n

    4992 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.