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

Internal Server Error (500) with UploadField


Go to End


17 Posts   10052 Views

Avatar
swaiba

Forum Moderator, 1899 Posts

7 January 2014 at 10:20am

Hi goe,

I repeat you are not in dev mode. "500 error" changes to something else if debug mode is on.
When you could see "500 error" in red in the network tab you are close... but...

1) you need to click on the request and then look at the "respinse"
however
2) you need to be in dev mode

please review...
http://www.silverstripe.org/general-questions/show/16055

and ensure that a...

Debug::show('Hello World!');

is outputing - this way you know if you are in debug mode or not.
I often put this in the page::init() to be sure it is called and I can see it in times of despair

Avatar
goe

Community Member, 5 Posts

7 January 2014 at 11:16am

I just checked it again and i am in debug mode.
I added the debug message to page:init() and it directly shows up on the front pages.

Debug (Page_Controller->init() in Page.php:42)

Hello World!

Avatar
swaiba

Forum Moderator, 1899 Posts

7 January 2014 at 11:28am

ok goe,

Well that is the end of the road for my being able to help you. I can only advise good old fasioned debugging skills to find it then as I am unable to help further

Avatar
goe

Community Member, 5 Posts

7 January 2014 at 12:38pm

Edited: 07/01/2014 12:44pm

Thanks for your help.

When i remove all the UploadField* javascript files from framework/javascript
the page loads without an error.

Any tips where i should start debugging this?

EDIT:
When i only remove UploadField_downloadtemplate.js it works and the upload field still works two.
What is this script doing?

Avatar
Jhhb

Community Member, 5 Posts

2 March 2016 at 9:10am

Hi, this Post ist wo years old but did you solve the Problem?

I'm now in the same Situation and i get the same 500 error message on the Uploadfield

Avatar
swaiba

Forum Moderator, 1899 Posts

3 March 2016 at 8:37pm

500 Error means you don't have debugging turned on...
Which means you are in a drak room with no windows and a blindfold...
Turn on debugging (which is what I've advised previously in this thread.. http://www.silverstripe.org/community/forums/general-questions/show/16055) and you will see the light...

Avatar
Jhhb

Community Member, 5 Posts

4 March 2016 at 7:37pm

The Site is in dev Mode. That was my first Check.

I switched the Site for testing purpose in Live Mode and the error is gone. Everything works normal without any errors.

Avatar
Tigerlilly

Community Member, 19 Posts

11 October 2016 at 6:48pm

Hi Please let me know if this was resolved as I am having the exact same problem :-(