codem / DisplayAnything

A simple file and image gallery module for Silverstripe CMS
BSD 3-Clause "New" or "Revised" License
21 stars 5 forks source link

500 Internal Server Error #19

Open marchumphries opened 11 years ago

marchumphries commented 11 years ago

Hello,

Thanks for sharing this app. I have been able to successfully install the module and everything works fine locally however, since moving the site to live I am unable to do anything with the ImageGalleryPage page.

When I go into the admin area of the site and click on an ImageGalleryPage to edit it I get a 500 internal server error. See below:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webadmin@kundenserver.de and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I changed the ImageGalleryPage.phps to ImageGalleryPage.php as it didn't work with the phps extension. Would this be the cause? If I change it back the ImageGalleryPage page type is not longer available. Is there something else I'd need to change within my silverstripe installation to make this work?

MrJamesEllis commented 11 years ago

Hi

You'll have to turn error logging on in PHP to get an idea of what's happening. Have you run /dev/build ? If this is not a production server you can turn display_errors 'on' in PHP and you may get a more descriptive error.

The files in the examples directory are a guide on implementing the field, they may or may not work with your website if you copy them verbatim.

The phps extension is for PHP source files - useful in examples (http://php.net/manual/en/function.highlight-file.php)

Thanks James