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.

Archive /

Our old forums are still available as a read-only archive.

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

Error with Assets


Go to End


2 Posts   1583 Views

Avatar
integral

Community Member, 3 Posts

20 October 2008 at 10:21am

Hello,

I have tried flushing everything and still get the following error when trying to access the assets tab:

Fatal error: Class name must be a valid object or a string in /sapphire/filesystem/Folder.php on line 104

Thanks in advance!

Avatar
JoeJoe

Community Member, 8 Posts

1 November 2008 at 12:26am

Edited: 01/11/2008 12:26am

Hi,

What you have to do is to follow these steps;

1. go to phpMyAdmin on your localhost, or webserver
2. go to the DB and find the table 'File'
3. In the row 'Classname' you see that all images are defined as Image
4. Try to find the Classnames that are not set (they are set as 'Null')
That error appears because the classnames are not set.
5. Set the correct classname, like Image

Hope that helps,

Grz, Raack