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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

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

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

Fatal error: Class 'DBField' not found when installing

Go to End

2 Posts   1760 Views


Community Member, 1 Post

18 March 2007 at 10:00pm

Hi, at first i wanted to thank you all for such a nice cms.

I'm receiving an fatal error while installing SilverStripe CMS on my server.

If you receive a fatal error, refresh this page to continue the installation
# Creating 'assets' folder...
# Creating 'mysite/_config.php'...
# Creating '.htaccess' file...

Warning: tempnam() [function.tempnam]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/srv/www/htdocs/web1043/:/usr/share/php/) in /srv/www/htdocs/web1043/html/silverstripe/sapphire/core/Core.php on line 3
# Building database schema...

Fatal error: Class 'DBField' not found in /srv/www/htdocs/web1043/html/silverstripe/sapphire/core/model/Image.php on line 240

What should i do with that?


Community Member, 3 Posts

29 May 2007 at 4:37am

Edited: 29/05/2007 4:38am

In my case - and hard to say if it's applicable to yours, though I'm betting some form of it is - I'm running on a VPS with Plesk 8.1.1.

I was getting this exact same error during install (also received it for some other CMSs I was evaluating).

The issue turned out to be that Plesk uses a different httpd.include file for every virtual host. If you are a VPS user, you can augment this by creating (or editing) a vhost.conf file and adding the following for the path your vhost is on:

<Directory /var/www/vhosts/>
php_admin_value open_basedir none

or, alternatively, if you are not on a VPS, you can edit this in Apache's httpd.conf file directly by using

php_admin_value open_basedir none

You are supposed to be able to specify one or more explicit paths following the open_basedir attribute using standard ":" convention, but I could never get it to work by doing so. With a path in the mix, the installers (not just SS) always seemed to throw the fatal error.

Now, if I could get past the "Undefined Index" errors following my SilverStripe install(s) everything would be great. ;-)

Best of luck,