PDA

View Full Version : Cannot upload images on new PP 1.5 installation


jonscott
11-06-2006, 04:28 PM
I am trying out PP for the first time. Read thru the entire installation instructions, uploaded files to my website, setup database in pixelpost.php, ran wizard in install.php on my site, which created the MySQL tables fine. Basically installation went without a hitch, but I just cannot upload any images. I searched this entire forum for solutions, and while everyone seems to say "thanks, it's fixed now!" but they don't say "how" they fixed it for others. The "../images" path works fine and I ensured directory security is correct for both images and thumbnails as you can see below. My web server is a windows server.

Anyway, here's my error:

Warning: move_uploaded_file(../images/20061106120906_imagetest.jpg): failed to open stream: Permission denied in C:\Inetpub\vhosts\blueorbsoft.com\httpdocs\photobl og\admin\new_image.php on line 185

Warning: move_uploaded_file(): Unable to move 'C:\WINDOWS\Temp\php1C3.tmp' to '../images/20061106120906_imagetest.jpg' in C:\Inetpub\vhosts\blueorbsoft.com\httpdocs\photobl og\admin\new_image.php on line 185

Here's my info:

Pixelpost Information
You are running Pixelpost version: 1.5 Final - July 2006
Latest Pixelpost version: Check
Looking for help or want to give feedback, please step into Pixelpost forum.: www.pixelpost.org/forum/


Host Information

URL http://www.blueorbsoft.com/photoblog/admin/index.php
PHP-version 4.3.11 (Pixelpost's min requirement: PHP version: 4.3.0 )

Session save path C:\WINDOWS\Temp

MySQL version 4.1.16 (Pixelpost's min requirement: MySQL: 3.23.58 )

GD-lib bundled (2.0.28 compatible) with JPEG support

File Uploads to Pixelpost site are possible.

Server Software Microsoft-IIS/6.0

EXIF Pixelpost is using exifer v1.5 for EXIF-information.


Paths
Guessed imagepath: /photoblog/images/
Configured Imagepath: ../images/

Image Directory: OK - Can we write to the directory? YES. CHMOD: 0777

Thumbnails Directory: OK - Can we write to the directory? YES. CHMOD: 0777

Language Directory: OK

Addons Directory: OK

Includes Directory: OK

Templates Directory: OK




What else can I try?

Thanks,
Jon.

jonscott
11-06-2006, 05:52 PM
I emailed my website hoster to check my rights to C:\Windows\Temp on the webserver. Will see how that goes and let you know.

Thanks,
Jon.

jonscott
11-08-2006, 04:11 PM
Am still waiting on my website hoster response on possible PHP problem or C:\Windows\Temp permission problem. Will let you know if this resolves the issue I have. I don't suppose anyone has any ideas on what else the problem might be?

Thanks,
Jon.

jonscott
11-08-2006, 07:39 PM
Still can't upload images. Get the exact same error in my first post. Can anyone help?

PHP info if that helps:
http://www.blueorbsoft.com/info.php

Thanks,
Jon.

Dennis
11-08-2006, 07:54 PM
Well... the folder seems to be writable, the safe_mode setting is on 'off'...

I'm stumped on this one.

Oh no wait... I just saw something:

Guessed imagepath: /photoblog/images/
Configured Imagepath: ../images/

Guess this is the reason why it fails. Login on your admin panel, go to options and change the image path to /photoblog/images/

Let me know if this resolves anything.

jonscott
11-08-2006, 08:43 PM
Well... the folder seems to be writable, the safe_mode setting is on 'off'...

I'm stumped on this one.

Oh no wait... I just saw something:

Guessed imagepath: /photoblog/images/
Configured Imagepath: ../images/

Guess this is the reason why it fails. Login on your admin panel, go to options and change the image path to /photoblog/images/

Let me know if this resolves anything.

I did notice that too when trying to troubleshoot my problem, and tried just about every type of path permutation there without success. However, one thing I tried *did* work for me: in my Plesk control panel, I ensured I gave my "Plesk IIS User" account full rights to images and thumbnails folder, even though PixelPost General Info returned CHMOD 0777 for both directories originally. Very weird. Anyway, here's a test image (uses GEOS NoSpam template):

http://www.blueorbsoft.com/photoblog/index.php

Be sure to let everyone know of this solution if they're using Windows/IIS.

Thanks!
Jon.

GeoS
11-09-2006, 06:50 PM
Image path in most cases (99,9999999%) should stay as ./images/.
Sessions arent also needed to proper file upload.

PS I see you have posted some images within last 2 days.

PS2 It should mean that you didnt set proper rights for /images/ directory:
Warning: move_uploaded_file(../images/20061106120906_imagetest.jpg): failed to open stream: Permission denied in C:\Inetpub\vhosts\blueorbsoft.com\httpdocs\photobl og\admin\new_image.php on line 185

jonscott
11-09-2006, 08:34 PM
Image path in most cases (99,9999999%) should stay as ./images/.


Yes, I started with the default ../images/, tried everything else, and put it back to ../images/. Nothing seemed to work.


PS I see you have posted some images within last 2 days.


Correct. Just testing it at the moment, and trying out different templates.


PS2 It should mean that you didnt set proper rights for /images/ directory:

Read my original post:

Image Directory: OK - Can we write to the directory? YES. CHMOD: 0777
Thumbnails Directory: OK - Can we write to the directory? YES. CHMOD: 0777


PixelPost General Info didn't report any problems, I just could not upload images due to a permissions problem. My website hoster gave me full rights to the C:\Windows\Temp folder, and that didn't help me. The last thing I did do was give my "IIS User" account full rights to the images and thumbnails folder (using the Plesk control panel), and that finally worked. Go figure.

Thanks,
Jon.

GeoS
11-10-2006, 09:04 AM
Just because most of users use UNIX servers and it is for such platform. In next release we must think about this issue.