Hi, Could someone please help me. when i log in i go to 'manage images', then 'delete', it asks 'are you sure you want to delete this' i click yes then i get this error message and the image is still there.....
Warning: opendir(): open_basedir restriction in effect. File(/4/images) is not within the allowed path(s): (/home/scribes2/:/usr/lib/php:/usr/local/lib/php:/tmp:/var/tmp:/home/vdeck/tmp/:/usr/local/bin/mogrify:/usr/local/bin/convert:/usr/sbin/sendmail) in /home/scribes2/public_html/efiction/user/manageimages.php on line 181
Warning: opendir(/4/images): failed to open dir: Operation not permitted in /home/scribes2/public_html/efiction/user/manageimages.php on line 181
Warning: readdir(): supplied argument is not a valid Directory resource in /home/scribes2/public_html/efiction/user/manageimages.php on line 182
My stories folders are chmod to 777 so that isnt the prob.
Line 181 & 182 in manageimages.php says the following;
$directory = opendir($folder);
while($filename = readdir($directory)) {
is this correct?
Thanks in advance.
Please go back and supply the information requested in the support template. We generally can't help without the site URL at the very least.
I had this same problem last night. Took me a while to figure it out, but... the problem isn't on lines 181 and 182, it's a bit further up on line 179.
line 179 $folder = $storiespath."/".USERUID."/images";
You need to change $storiespath to STORIESPATH and it should work.
This is the same issue are in this thread here:
https://efiction.org/forums/index.php?topic=5310.msg28642#msg28642
Hi, that has now fixed the problem, thank you so much for your help. π
Kylie
