Jump to:

517 Posts in 247 Topics by 260 members

Content Editor Discussions

SilverStripe Forums » Content Editor Discussions » Java Script Parse error in admin

Forum for content editors and CMS users.

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

Page: 1 2
Go to End
Author Topic: 6379 Views
  • activebiz
    Avatar
    Community Member
    3 Posts

    Java Script Parse error in admin Link to this post

    just installed - went fine.
    But: now I entered on the home page my Meta Tags: description and Keywords.
    clicked save & publish = javascript Parse error pops up - and disappears after a few seconds - but the page never finishes saving.

    I have zero modification as of yet [have Blog, forum, Diary and Private messages showing in my top menu on the Published Site],
    no widgets inserted yet. But loaded all mods I need before the installation. Ran the flush etc. and everything worked fine.

    Am at a loss to why the home page now does not save with the meta tags. Did not even change the text [content] yet on the home page either. No new theme installed yet either - just the generic default theme.

    where do I need to make changes to be able to save anything? without the java script parse error? I only was able to stop the saving [after waiting for more than 10 minutes by simply clicking another link in the admin. Checked - and - no, it did not save any meta information.
    Help is appreciated.

  • Mo
    Avatar
    Community Member
    505 Posts

    Re: Java Script Parse error in admin Link to this post

    What modules have you installed over default?

    Is it just Blog, forum, Diary and Private messages?

    Mo

  • patattrash
    Avatar
    Community Member
    14 Posts

    Re: Java Script Parse error in admin Link to this post

    I have the same error. Also the site tree keeps getting longer (adding padding?) every time I switch from one page to the next. I have the following modules installed. My page, however, seems to save fine.

    - blog
    - dataobject manager

    Attached Files
  • Joshuarr
    Avatar
    Community Member
    37 Posts

    Re: Java Script Parse error in admin Link to this post

    I'm having essentially the same problem. Anyone find a solution to this?

  • John Silver
    Avatar
    Community Member
    10 Posts

    Re: Java Script Parse error in admin Link to this post

    I had the same problem - but in my case it was homegrown. Removing the following line from my php.ini solved it for me.

    tidy.clean_output = On

  • Mo
    Avatar
    Community Member
    505 Posts

    Re: Java Script Parse error in admin Link to this post

    I have found I get this error from time to time while clicking "Save and Publish", the only work around I have found is to first click save, then click save and publish after the page has finished saving.

    Not sure why this happens, but that generally works for me.

  • Kim Carson
    Avatar
    Community Member
    1 Post

    Re: Java Script Parse error in admin Link to this post

    My 2 cents ..

    I've added the portnumber (default = 80) in the file : _config.php which resides in dir. : \www\silverstripe-v2.3.5\mysite\.

    Director::set_dev_servers(array(

    'localhost',
    '127.0.0.1',
    'localhost:80', <-- added port
    '127.0.0.1:80', <-- added port

    That got rid the parse error
    This also "solved" the site tree keeps getting longer issue for me.

  • acktivate
    Avatar
    Community Member
    11 Posts

    Re: Java Script Parse error in admin Link to this post

    I am on version 2.3.6 and experienced the javascript parse error after a fresh install. To fix this, I re-uploaded the cms/javascript folder to the server and overwrote the old one.

    6379 Views
Page: 1 2
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.