PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Classifieds Support > Classifieds Installation & Upgrades

Classifieds Installation & Upgrades If you're having install or upgrade problems, post here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old June 26th, 2007, 01:30 PM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Jun 2007
Posts: 8
Cannot upload images with IIS/Windows 2003 server

I have PhotoPost Classifieds up and running after some trial and error (it did not like MySQL being in strict mode) on Windows 2003 server with IIS as the web server. The only problem that I am having is with image uploads. I get the following error message:

Warning: unlink(d:/ads/data/2/thumbs/vistaprem_xl.jpg) [function.unlink]: No such file or directory in D:\ads\image-inc.php on line 376

This is the command being passed to the mogrify function of ImageMagick:

"d:\im\mogrify.exe" -quality 70 -geometry 250x250 d:/ads/data/2/vistaprem_xl.jpg


The file that needs to be resized is in the :\ads\data\2\large\ folder, not in the location being passed to mogrify. I assume that is what is causing both errors - the mogrify command can't find the image to make the thumbnail, and then no thumbnail exists.

In Global Options, the full path to the data directory is set to d:/ads/data/ - it will not let me use backslashes, it changes them to forward slashes when I save.

The permissions are correct on the folders, and the image is being uploaded - I followed along in the code and I can't figure out how it is getting into the large folder, and why the mogrify command is being sent the wrong path (and also why it insists on using forward slashes).

Please help - I am anxious to get this up and running.

PS - I have the latest version of PHP installed.

Last edited by Cristiano Diaz; June 26th, 2007 at 01:46 PM.
Cristiano Diaz is offline   Reply With Quote
Old June 26th, 2007, 02:35 PM   #2 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,860
I am afraid I don't have a strong IIS background; but you should be using forward slashes even on the windows system (it uses them correctly).

If you place the file in the directory and run that command manually; does it work?
__________________
Please do not PM me for support or sales questions. Thank you for your understanding.
Michael P is offline   Reply With Quote
Old June 26th, 2007, 03:47 PM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Jun 2007
Posts: 8
Quote:
Originally Posted by Michael P View Post
I am afraid I don't have a strong IIS background; but you should be using forward slashes even on the windows system (it uses them correctly).

If you place the file in the directory and run that command manually; does it work?
Forward slashes are used for URLs on Windows, but not for filepaths - filepaths use a backslash. The mogrify command is using a local filepath, not a URL.

Also, the command does work if the file is in the directory - I tried the command manually from the command line.
Cristiano Diaz is offline   Reply With Quote
Old June 27th, 2007, 05:24 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,069
Forward slashes must always be used on a path entered in the database

Your data and uploads folders must be set to READ WRITE EXECUTE permissions at every level.

If you set permissions does using GD2 as your image processor work?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old June 27th, 2007, 06:51 AM   #5 (permalink)
Junior Member
Verified Customer
 
Join Date: Jun 2007
Posts: 8
Quote:
Originally Posted by Chuck S View Post
Forward slashes must always be used on a path entered in the database

Your data and uploads folders must be set to READ WRITE EXECUTE permissions at every level.

If you set permissions does using GD2 as your image processor work?
Switching to GD2 solved the problem, thank you.
Cristiano Diaz is offline   Reply With Quote
Reply


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
Photopost and IIS and Windows 2003 lifeinitaly Photopost Pro Installation & Upgrades 1 April 18th, 2007 05:49 PM
Problems with Upload after upgrading to IIS 6 and W3K server dapaw General Discussion 8 November 7th, 2006 12:20 PM
Upload problems and warnings on a Windows server LakeT Photopost Pro Installation & Upgrades 3 September 22nd, 2006 06:40 AM
Photopost 5.02 with Windows 2003 jevindme Photopost Pro Installation & Upgrades 1 March 14th, 2005 06:38 PM
Error code: 1 - Windows 2003 Server flumpydog General Discussion 2 August 4th, 2004 07:00 PM


All times are GMT -5. The time now is 06:13 AM.

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