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.

DataObjectManager Module

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Admin panel Files & Images tab 500 error

Go to End

12 Posts   3015 Views


17 October 2009 at 3:59am Community Member, 33 Posts

I'm getting a 500 error when I click on the "Files & Images" tab in the Admin panel.

This didn't occur until I updated the DOM module. I did some looking around in my Assets folder and found some files that don't have associated thumbnails in the _resampled folder. So basically they don't have thumbnails for them.

Would this cause the "Files & Images" tab to error out?

I noticed the permissions were wrong on the _resampled folder in question, so that was likely the initial problem, but now I need to figure out how to get the "Files & Images" tab working again so I can re-upload the files and create their thumbnails.

Anyone run into this problem?


17 October 2009 at 5:49am 4085 Posts

Can you replicate the issue on the demo site?

I made a few updates this morning. Not sure if that will help you or not, but it's worth a shot.


22 October 2009 at 6:36am (Last edited: 22 October 2009 7:35am), Community Member, 33 Posts

I removed some folders that Dreamweaver writes to store sychronization info called "_notes". I just logged in to the Admin and it's working now.

I believe the intitial error was caused by me uploading images via Dreamweaver into the Assets folder. These images didn't have associated thumbnails in the _resampled folder because I didn't input them through the Admin panel. Problem number 2 was that the _resampled folder didn't have correct permissions on it. I'm having to set them to 777 to get them to work.

To try and duplicate the problem, set the _resampled folder so that it's not writeable and then upload a photo to the directory for that _resampled folder. After doing so the Admin tab goes blank.


17 November 2009 at 5:20am Community Member, 18 Posts

Once the error occurs is there an easy way to fix this? One of my client's sites has this error, so now she cannot upload images through the admin pages, which means that we're adding to the problem by going through FTP.


17 November 2009 at 5:27am 4085 Posts

Make sure you don't have mod_security enabled. Also, see the debugging tips in the swfuploadfield documentation.


18 November 2009 at 10:28am Community Member, 33 Posts

lenwood, I've run into this problem a couple more times and unfortunately my fix has always been a tedious task of using phpMyAdmin and checking the "files" table for Silverstripe against what's actually in my assets folder and it's associated _resampled folder.

If something exists in the database table and it's not in the assets folder or vice versa, if it's in the assets folder and doesn't exist in the files table, then typically that gives you the white screen 500 error.

Luckily my ImageDataObjectManager images are put into their own subdirectory, so I know my problem lies in that folder and it's _resampled folder. It's good to break things into sub-directories in the Assets folder for just this reason besides being easier to manage.

UncleCheese, is there a way to delete all contents of the _resampled folder and rebuild the thumbnails based on whats actually in the assets folder? Sounds like this is more a swfupload issue so I've find the documentation on that, although a link would help :D.

Time to do a Subversion update as well, while I'm messing around with it.


18 November 2009 at 11:14am 4085 Posts

You can use the /images/flush URL command. I'm not sure if that's right. It's some where in the docs under "url variable tools".

Also, if you're getting a white screen, crank up your error reporting and find out what the error is! An Apache 500 error is useless, but a verbose PHP error is something you can work with. Often times, in AssetAdmin, it's just a memory error, which is an easy fix. If you can't turn on display_errors, then check your PHP error logs.


19 November 2009 at 5:30am Community Member, 43 Posts

Yes, it's

Those url commands can be found here:


Go to Top