SMF Support > SMF 2.0.x Support

SSI.php open basedir restriction in 2.0b3

(1/1)

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'];
?>

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


--- Code: ---$cachedir = $boarddir . '/cache'; # Path to the cache directory.
--- End code ---

ibookdb:
Thanks, I added that and the warning is gone!

Navigation

[0] Message Index

Go to full version