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.

Customising the CMS

Internal Server Error (500) with UploadField


Reply

12 Posts   1116 Views

Avatar
swaiba

7 January 2014 at 10:20am Forum Moderator, 1796 Posts

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

7 January 2014 at 11:16am Community Member, 5 Posts

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

7 January 2014 at 11:28am Forum Moderator, 1796 Posts

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

7 January 2014 at 12:38pm (Last edited: 7 January 2014 12:44pm), Community Member, 5 Posts

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?