News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SSI.php open basedir restriction in 2.0b3

Started by ibookdb, March 19, 2008, 02:12:52 PM

Previous topic - Next topic

ibookdb

I created a file to test SSI.php which works on 1.1.4 but fails in 2.0b3 with this error:

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/data_061e03e3d6d5f3e9c557bebba54e79c1-SMF-modSettings.php) is not within the allowed path(s):

Is there a way to make this work or do I have to change my open_basedir settings? The code in the file is here:

<?php
require_once('SSI.php');
ssi_login();
global $context;
echo $context['user']['id'];
?>
Manage Your Book Collection Online at The Internet Book Database

Random Books from My Bookshelf

iBookDB

Oldiesmann

Open up Settings.php and make sure this line is in there right below $sourcedir:

$cachedir = $boarddir . '/cache'; # Path to the cache directory.
Michael Eshom
Christian Metal Fans

ibookdb

Thanks, I added that and the warning is gone!
Manage Your Book Collection Online at The Internet Book Database

Random Books from My Bookshelf

iBookDB

Advertisement: