Jump to:

4945 Posts in 17703 Topics by 1494 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » SilverStripe 3.1.0 Godaddy Uncaught SyntaxError: Unexpected token )

Getting SilverStripe up and running on your computer and on your web server.

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

Page: 1
Go to End
Author Topic: 651 Views
  • shields
    Avatar
    Community Member
    3 Posts

    SilverStripe 3.1.0 Godaddy Uncaught SyntaxError: Unexpected token ) Link to this post

    I've spent two days on this and I can't seem to get anywhere.

    I have SS 3.1.0 running on my local MAMP server with no issues. I upload the site to Godaddy, Linux, and the site works. I log in to the admin and everything loads but TinyMCE. When I look at the inspector in Chrome it reads:

    Uncaught SyntaxError: Unexpected token )
    /framework/thirdparty/tinymce/tiny_mce_gzip.php?m=1380638072&js=1&plugins=c…creen,inlinepopups&themes=advanced&languages=en&diskcache=true&src=false:1

    I have tried the following: dev/build, flush=all, flush-1, in Godaddy turning off system processes to reset php.ini, changing the php.ini file to php5.ini to fix the godaddy magic_quotes issue, uploaded a clean install of SS 3.1.0 and installed it on the hosted server, performed 50+ google searches, cried a little inside...

    My php5.ini file:
    magic_quotes_gpc = Off;
    magic_quotes_runtime = Off;
    magic_quotes_sybase = Off;

    my .htaccess file:
    ### SILVERSTRIPE START ###
    <Files *.ss>
       Order deny,allow
       Deny from all
       Allow from 127.0.0.1
    </Files>

    <Files web.config>
       Order deny,allow
       Deny from all
    </Files>

    # This denies access to all yml files, since developers might include sensitive
    # information in them. See the docs for work-arounds to serve some yaml files
    <Files *.yml>
       Order allow,deny
       Deny from all
    </Files>

    ErrorDocument 404 /assets/error-404.html
    ErrorDocument 500 /assets/error-500.html

    <IfModule mod_alias.c>
       RedirectMatch 403 /silverstripe-cache(/|$)
       RedirectMatch 403 /vendor(/|$)
       RedirectMatch 403 /composer\.(json|lock)
    </IfModule>

    <IfModule mod_rewrite.c>
       SetEnv HTTP_MOD_REWRITE On
       RewriteEngine On
       RewriteBase '/'

       RewriteRule ^vendor(/|$) - [F,L,NC]
       RewriteRule silverstripe-cache(/|$) - [F,L,NC]
       RewriteRule composer\.(json|lock) - [F,L,NC]
       
       RewriteCond %{REQUEST_URI} ^(.*)$
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_URI} !\.php$
       RewriteRule .* framework/main.php?url=%1&%{QUERY_STRING} [L]
    </IfModule>
    ### SILVERSTRIPE END ###

    Attached Files
  • shields
    Avatar
    Community Member
    3 Posts

    Re: SilverStripe 3.1.0 Godaddy Uncaught SyntaxError: Unexpected token ) Link to this post

    I'm going to switch hosting companies. This is too much.

    651 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.