Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Admin panel Files & Images tab 500 error

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1 2
Go to End
Author Topic: 2774 Views
  • lawless
    Avatar
    Community Member
    33 Posts

    Admin panel Files & Images tab 500 error Link to this post

    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?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Admin panel Files & Images tab 500 error Link to this post

    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.

  • lawless
    Avatar
    Community Member
    33 Posts

    Re: Admin panel Files & Images tab 500 error Link to this post

    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.

  • lenwood
    Avatar
    Community Member
    18 Posts

    Re: Admin panel Files & Images tab 500 error Link to this post

    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.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Admin panel Files & Images tab 500 error Link to this post

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

  • lawless
    Avatar
    Community Member
    33 Posts

    Re: Admin panel Files & Images tab 500 error Link to this post

    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 .

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

  • UncleCheese
    Avatar
    4085 Posts

    Re: Admin panel Files & Images tab 500 error Link to this post

    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.

  • Platypus
    Avatar
    Community Member
    43 Posts
    2774 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.