View Full Version : Win2003 File paths - WTF?
December 3rd, 2005, 04:19 PM
PP is advertised that it will run on IIS. Well, not out of the box. There is a major problem with file paths.
See the image below, and note
The true file path is "c:\website\gallery\data\xxx\xxx\xxx"
Somehow, the slashes are being ripped out of the "data" path, and any file operations to the data directory are failing. Access to the "upload" path works fine. I confirmed all of this with filemon.
This is a fresh install.
Please advise, I've burnt many hours trying to figure this out.
December 3rd, 2005, 04:22 PM
We can only suggest paths on install. If you left backslashes when installing on the paths as in c:\website\gallery etc they would be slashed.
You must use forward slashes.
In your global options and storage options just make sure all paths are correct using forward slashes /
I would think here that your missing a slash there and most likely on storage options if global options are correct
December 3rd, 2005, 08:09 PM
Thanks for the quick reply chuck.
I tried every combination of slashes including:
and a few others. nothing works. I even edited the paths directly in the database to no avail. Something somewhere is broken with this. I have reinstalled probably about 10 times in an attempt to get it right.
What shall I try next? Can I hard code this anywhere? Please trust me, I'm no dummy.
Thanks in advance.
December 3rd, 2005, 09:01 PM
Maybe: c:\\website\\gallery\\data ?
December 3rd, 2005, 11:50 PM
No luck at all. I suspect something in the code is munching the initial base install string during upload? Heeelp! This is driving me bonkers! BTW,
Warning: copy(C:WebSitegallery/data/2/DSCN9448_Medium_.JPG) [function.copy]: failed to open stream: No such file or directory in C:\WebSite\gallery\uploadphoto.php on line 512
Warning: getimagesize(C:WebSitegallery/data/2/DSCN9448_Medium_.JPG) [function.getimagesize]: failed to open stream: No such file or directory in C:\WebSite\gallery\image-inc.php on line 214
Warning: copy(C:WebSitegallery/data/2/DSCN9448_Medium_.JPG) [function.copy]: failed to open stream: No such file or directory in C:\WebSite\gallery\image-inc.php on line 241
Warning: getimagesize(C:WebSitegallery/data/2/DSCN9448_Medium_.JPG) [function.getimagesize]: failed to open stream: No such file or directory in C:\WebSite\gallery\image-inc.php on line 412
Warning: getimagesize(C:WebSitegallery/data/2/DSCN9448_Medium_.JPG) [function.getimagesize]: failed to open stream: No such file or directory in C:\WebSite\gallery\image-inc.php on line 612
Warning: filesize() [function.filesize]: stat failed for C:WebSitegallery/data/2/DSCN9448_Medium_.JPG in C:\WebSite\gallery\image-inc.php on line 620
Warning: fread(): supplied argument is not a valid stream resource in C:\WebSite\gallery\image-inc.php on line 620
December 3rd, 2005, 11:52 PM
Ya know, I ran PhotoPost on a windows server once and don't remember having to do anything special. Maybe I'm just having a brainfart.
I don't have any backups of it unfortunately so I can't look back at my config.
December 4th, 2005, 01:31 AM
thanks man, appreciate the help. Unfortunately, I purchased based on win functionality in our hosted environment.
I just messed with this more, and it almost dosen't matter what you change the data path to in the admin, or directly in the DB. Filemon shows it always looks for C:WebSitegallery/data/2/.....
Chuck, how should I proceed?
December 4th, 2005, 04:17 AM
Well you can email me admin login and I can fix it.
I am 100% sure you have missed what I already stated above.
You sure you checked storage options in admin?
c:/website/gallery/data/ is correct
December 4th, 2005, 04:28 PM
Chuck, thanks for the help. I just sent you an email.
December 4th, 2005, 11:25 PM
Chuck, thanks for looking at this, I'm happy with your desire to get this running.
I am currently still receiving "There was an error uploading this photo. Please report to System Administrator.".
December 5th, 2005, 06:16 AM
I beleive I sent you an email and the required fix for this.
Your running 5.1x PHP which requires a modification to how localtime is handled
I have not heard back from you since on this issue as you where going to upload the modded files I sent you
December 27th, 2005, 05:21 AM
Have you managed to resolve this issue? I'm trying to run a development environment on a local Win2k pro machine running Apache as the localhost. All directories have been given every permission under the sun but a) I cannot upload pics (no such file or directory errors) and b) I cannot create an album - error is "cannot create/write to xxxx. Check permissions etc." The data subdirectory is actually created (eg 501, 502 etc) but photopost stops there with the cannot create/write error (even though all children of data have full control permissions). (The file path has also lost some slashes in the process as noted above; I get d:wwwphotopost/data/503 for example returned in the error message instead of d:/www/photopost/data/503). This is driving me crazy :-( Any ideas anyone?
December 27th, 2005, 07:48 AM
As explained above to the other gentleman when installing and you place backslashes this causes the issue. You can not use backslashes in PHP in paths. Ton's of articles on the web about this cause everyone in windows environment is use to using backslashes and everywhere else you use forward slashes in paths. You must use forward slashes. So in Admin Global Options make sure your data and upload paths are set as this and save
Then in Admin => Storage Options view them and click REVERT TWICE to get rid of the stored path with no slashes
December 27th, 2005, 08:55 AM
Aha - I was using forward slashes but I had not seen any mention of that Admin => Storage Options procedure !!!
That's cured it, thanks Chuck.
January 2nd, 2006, 12:22 PM
In the program, in every field... you should let us know if it needs to be forward slashes and if we need a starting "/" and/or a trailing "/".
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.