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


Go to End
Reply


12 Posts   1304 Views

Avatar
swaiba

Forum Moderator, 1805 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, 1805 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?

Go to Top