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

Files & Images


Go to End


4 Posts   1000 Views

Avatar
Christy

Community Member, 68 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, 4102 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, 68 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, 68 Posts

24 July 2010 at 3:41pm

Edited: 24/07/2010 3:43pm

Sorry - duplicate post removed