PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old February 14th, 2005, 11:38 PM   #1 (permalink)
rbl
Senior Member
Verified Customer
 
Join Date: Aug 2003
Location: Portugal
Posts: 492
Send a message via AIM to rbl Send a message via MSN to rbl
Error replacing image

Hi!
Whenever I replace an image using the new RC3 feature, I get the following error on top of the action successful page:
Warning: unlink(/home/... /files/7/4/): Is a directory in /fotoblog/editimage.php on line 93

Line 93 is: unlink($folderstring . '/' . $oldoriginalname);
The above path was edited and that userid (74) changes accordingly to the user's id.

I have set my config to discard original images, can that be it? Since there is no originalname it is trying to unlink the dir.

Also related, I have given some usergroups the ability to edit but not delete their images. I thought they would be able to use the replace feature but they get an error message about lack of permissions.
rbl is offline  
Old February 15th, 2005, 09:51 AM   #2 (permalink)
Brian
Guest
 
Posts: n/a
Re: Error replacing image

The error message you're getting isn't creating any problems. It's just trying to delete the original size image as well, which of course isn't there. If you'll look in your editimage.php file for three instances of 'unlink' (all three will be in a row) and add a @ sign in front of them then that will take care of the error at the top of the screen.
For the permissions issue, try looking for this code:
Code:
Content visible to verified customers only.
Replace with this:
Code:
Content visible to verified customers only.
And that should take care of the problem.
 
Old February 15th, 2005, 04:27 PM   #3 (permalink)
rbl
Senior Member
Verified Customer
 
Join Date: Aug 2003
Location: Portugal
Posts: 492
Send a message via AIM to rbl Send a message via MSN to rbl
Re: Error replacing image

It did! Thanks Brian! =)
rbl is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Replacing text menus with image buttons : no problem ? fabz Classifieds Installation & Upgrades 1 May 15th, 2005 10:08 PM
Small Warning when replacing an image Happy Camper Installs and Upgrade - vBulletin 3.0.X 0 April 1st, 2005 09:21 PM


All times are GMT -5. The time now is 12:10 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0