Can't Delete Images
 
Notifications
Clear all

Can't Delete Images

4 Posts
3 Users
0 Reactions
1,313 Views
(@kylieh)
Posts: 24
Eminent Member
Topic starter
 

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.


 
Posted : 12/08/2007 9:00 pm
(@tammy)
Posts: 2577
Member Moderator
 

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.


 
Posted : 13/08/2007 9:15 am
 DebC
(@debc)
Posts: 3
New Member
 

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            


 
Posted : 13/08/2007 9:45 pm
(@kylieh)
Posts: 24
Eminent Member
Topic starter
 

Hi, that has now fixed the problem, thank you so much for your help. πŸ™‚

Kylie


 
Posted : 13/08/2007 10:07 pm
Share: