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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

File Exists Warning


Reply


3 Posts   1219 Views

Avatar
zenmonkey

Community Member, 532 Posts

3 December 2009 at 5:21am

I'm getting the following error when accessing the admin panel with dev mode on

[Warning] file_exists() [function.file-exists]: open_basedir restriction in effect. File(/misc/images/treeicons/TypographyTestPage-openfolder.gif) is not within the allowed path(s): (/var/www/vhosts/cupidology.net/httpdocs:/tmp)

Avatar
dalesaurus

Community Member, 283 Posts

3 December 2009 at 5:29pm

Your PHP settings have turned safe mode on. You will need to add your directory to the basedir directive or disable safe mode

http://www.php.net/manual/en/ini.core.php#ini.open-basedir

Here is an example of using a .htaccess file to do it:
http://www.mydigitallife.info/2007/03/15/php-scripts-open_basedir-restriction-in-effect-error/

Avatar
davidm2010

Community Member, 107 Posts

9 December 2009 at 1:54am

That worked with the orignal error, but brings up a new one. "No input file specified. " Then the admin page hangs up.