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.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Admin panel Files & Images tab 500 error


Go to End


12 Posts   5594 Views

Avatar
lawless

Community Member, 33 Posts

17 October 2009 at 3:59am

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?

Avatar
UncleCheese

Forum Moderator, 4102 Posts

17 October 2009 at 5:49am

Can you replicate the issue on the demo site?

http://dataobjectmanager.carlinowebdesign.com

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

Avatar
lawless

Community Member, 33 Posts

22 October 2009 at 6:36am

Edited: 22/10/2009 7:35am

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.

Avatar
lenwood

Community Member, 18 Posts

17 November 2009 at 5:20am

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.

Avatar
UncleCheese

Forum Moderator, 4102 Posts

17 November 2009 at 5:27am

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

Avatar
lawless

Community Member, 33 Posts

18 November 2009 at 10:28am

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.

Avatar
UncleCheese

Forum Moderator, 4102 Posts

18 November 2009 at 11:14am

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.

Avatar
Platypus

Community Member, 43 Posts

19 November 2009 at 5:30am

Go to Top