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

Files & Images


Reply


4 Posts   728 Views

Avatar
Christy

Community Member, 57 Posts

24 July 2010 at 12:38pm

I am having problems with Files & Images. I cannot delete the folders under upload and if I try to upload a file I get the following error message.

User Error] Bad RecordClassName '' and $baseClass not set
Line 2761 in C:\wamp\www\SilverStripe\sapphire\core\model\DataObject.php

I have updated DOM, SWFUpload and the CMS with no change. I have emptied the folders of all uploads and resample files.

I would be grateful for any pointers of where to start looking for the cure. This is on localhost.

Thanks

Avatar
UncleCheese

Forum Moderator, 4094 Posts

24 July 2010 at 12:52pm

Check the File table in your database, and make sure ClassName is not null.

Avatar
Christy

Community Member, 57 Posts

24 July 2010 at 3:40pm

Edited: 24/07/2010 3:42pm

Thank you UncleCheese.

I have filled all missing ClassNames in the File table and this has fixed the bad classname message and I can now upload files.

I still can't delete folders under Upload. Can create though. As this is on Local Host I have made sure I have full control on the folders (XP).

Also made the changes as recommended here
http://open.silverstripe.org/attachment/ticket/5547/2.4.0-FileUpload.diff

Does the CMS save copies of uploads somewhere other than the Assets folder?

Thanks.

Avatar
Christy

Community Member, 57 Posts

24 July 2010 at 3:41pm

Edited: 24/07/2010 3:43pm

Sorry - duplicate post removed