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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

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

'SyntaxError: Unexpected token E' Error


Go to End


2 Posts   2402 Views

Avatar
Mondi

Community Member, 16 Posts

6 November 2015 at 12:11pm

Hi all -

When i try to upload an image to one of my pages the upload returns the following error:

"SyntaxError: Unexpected token E"

Uploader halts and freezes.

Checked the chmod of the directory file to which it tries to store the image: 775.

Not sure what this means so could anyone point me in the direction of a solution please?

Cheers

Avatar
helenclarko

Community Member, 166 Posts

6 November 2015 at 1:47pm

Hi Mondi,

Are you able to set the chmod over "/assets/Upload"?

Try permission 777 over the "assets/Upload" folder.
This may not be the best fulltime solution, but may allow you to upload the file.
Then you can start pulling the permissions back and see if it still allows upload.

-helenclarko

Check the page below for solution:
https://gist.github.com/trev/5233816