Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Installing SilverStripe /

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

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

SilverStripe 3.1.0 Godaddy Uncaught SyntaxError: Unexpected token )

Go to End

2 Posts   1124 Views


Community Member, 3 Posts

2 October 2013 at 10:40am

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 )

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:
<Files *.ss>
Order deny,allow
Deny from all
Allow from

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

# 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

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 mod_rewrite.c>
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]

Attached Files

Community Member, 3 Posts

2 October 2013 at 11:37am

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