17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1417 Views |
-
Fatal error: Class 'DBField' not found when installing

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?
-
Re: Fatal error: Class 'DBField' not found when installing

29 May 2007 at 4:37am Last edited: 29 May 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/yoursitehere.com/httpdocs>
php_admin_value open_basedir none
</Directory>or, alternatively, if you are not on a VPS, you can edit this in Apache's httpd.conf file directly by using
<Directory>
php_admin_value open_basedir none
</Directory>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,
Jorgen
| 1417 Views | ||
|
Page:
1
|
Go to Top |

