View Full Version : having trouble uploading images...error message-
03-07-2005, 01:17 PM
I'm trying to upload using Firefox on a mac...
I have Pixelpost installed, and running, but when I try to upload an image, I get this error in the Post Entry area of the admin page...
Warning: move_uploaded_file(/shootblog/images/airwolf.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in c:\domains\shootmatt.com\wwwroot\shootblog\admin\i ndex.php on line 443
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'c:\temp\php4DF.tmp' to '/shootblog/images/airwolf.jpg' in c:\domains\shootmatt.com\wwwroot\shootblog\admin\i ndex.php on line 443
Upload went without error.
I've checked my permissions on the folders and my image and thumbnail folders are set to 777
Am I missing something obvious?
03-07-2005, 01:53 PM
as a registered user of this forum you can use the search function
when you use the search function you will find at least 18 postings to this search phrase No such file or directory
I did a search, I found these answers and some of the solutions could be a solution for you as well...
there is some system information in the admin panel
it is always good to provide us with this information ;=)
is Pixelpost running on a Windows server? On Apache, locally or at a website?????
first do these things:
- check out whether your hoster configured the server (is it Apache?) in a so called "secure mode" so our script will not work
- check out if your hoster maybe disallows the moving of files between different directories, as our script uploads the images to a temporary directory and moves it to the images- and thumbnails-directory
- is GD lib installed
- are the directories writeable
- is the image path correct? I doubt it...
well, give us these informations and we can go ahead...
good luck, and please, register and use the search function :o
03-07-2005, 03:12 PM
Thanks for the help,
Here's the info from my Admin General info page
MySQL version 4.0.21-debug
GD-lib bundled (2.0.28 compatible)
Server software Microsoft-IIS/6.0
EXIF Your php does not seem to be compiled with exif-enabled.
Images folder is writable, which is a good thing.
Thumbnails folder is writable.
I'll find out the other info, and post back with my results...
03-07-2005, 03:57 PM
Connie, I got the following info from my host,
They're running Windows 2003 server.
With regards to "check out if your hoster maybe disallows the moving of files between
different directories, as our script uploads the images to a temporary
directory and moves it to the images- and thumbnails-directory"
I was told this: You will need to informa us of any special permissions that may be required. We can set the permissions to anything you need to allow the scripts to work.
Regarding "Is GD lib installed?"
I was told this: Yes,you can verify this by using the following script: http://www.wehostwebs.net/checkphp.php
What should my next steps be?
03-07-2005, 07:37 PM
Managed to get myself to a new error message. I fixed the path to my image folder so that it is properly listed. But now I have the following:
POSTED: First Try
I\'d love for this to work...
Warning: imagejpeg(): supplied argument is not a valid Image resource in c:\domains\shootmatt.com\wwwroot\shots\admin\index .php on line 1183
Warning: chmod() [function.chmod]: No such file or directory in c:\domains\shootmatt.com\wwwroot\shots\admin\index .php on line 1185
After that, if you go to http://www.shootmatt.com/shots you can see that everything has worked, except for the acutal uploading of the image (the directory is empty---i verified this with FTP software) and the generation of the thumbnail (also checked via FTP).
So I'm guessing that my problem is in the folder permissions on the server. Can you shed some light on what specifically I should ask my host to do? What folder permissions etc. to have them enable for my account.
03-07-2005, 08:20 PM
well, I don't think it's a question of folder permissions because
Images folder is writable, which is a good thing.
Thumbnails folder is
it must be something with windows server, I remember vaguely there was a similar situation with a windows server here, have a look here
or search the forum for "Windows server"
I am not the expert for this but I am sure you will find a solution
03-07-2005, 08:35 PM
is your php running in safe_mode ?
03-07-2005, 08:36 PM
I don't know. Is there a way for me to check, or should I simply ask my host?
03-07-2005, 08:57 PM
Whoo hoo! One step closer at least.
My host is a windows server, so I was able to use your mod to the admin files. I now no longer get the error message, but my image still doesn't upload.
I'll ask my host if they're running in safe_mode.
03-07-2005, 09:06 PM
probability 87.3% that's a problem with host security!
The code wants to
$thumbimage = "../thumbnails/thumb_$file";
and it can't!
copy paste this and save this as a php file.
edit it and replace 'somefilename_in_the_current_folder' with a file name in you have on your site.
place it on your site and try to open it in the browser.
03-07-2005, 09:20 PM
Just got word back that they're not running in safe_mode
And! Just noticed that my image is getting uploaded after all, but it's not going into the image directory!
my blog is
no image there...but! if you go to http://www.shootmatt.com/shots/imagesairwolf.jpg , there it is!
Is this something that I did wrong? (I'm guessing that the answer is yes) but the real question is...what did I do wrong?
03-07-2005, 09:32 PM
What a difference a slash makes...
my images weren't getting put in the Images directory...because I left off the final /
It works now, thanks to you and connie.
My host runs Win2003 server, so your mod i think is what got me in the game.
Then the slash is what prevented my images from posting...
03-07-2005, 09:50 PM
@Connie: another image path problem is solved!
03-08-2005, 06:11 AM
yes, this for sure will go into the FAQ :x
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.