Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Fatal error: Class 'DBField' not found when installing

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

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

Page: 1
Go to End
Author Topic: 1522 Views
  • blotko
    Avatar
    Community Member
    1 Post

    Fatal error: Class 'DBField' not found when installing Link to this post

    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?

  • Jorgen
    Avatar
    Community Member
    3 Posts

    Re: Fatal error: Class 'DBField' not found when installing Link to this post

    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

    1522 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.