PDA

View Full Version : Problem when uploading picture


koldapu
09-17-2005, 04:20 AM
Warning: imagejpeg(): supplied argument is not a valid Image resource in MYSITEHERE/photoblog/includes/functions.php on line 92

Warning: chmod(): No such file or directory in MYSITEHERE/photoblog/includes/functions.php on line 94


It doesn't display the picture. :( What can I do?

PHP-version 4.3.10 (Pixelpost's min requirement: PHP version 4.3.0)

MySQL version 4.1.13a-Debian_2-log (Pixelpost's min requirement: MySQL 3.23.58)

GD-lib bundled (2.0.28 compatible) with JPEG support

Server software Apache/1.3.33 (Unix) DAV/1.0.3 mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a PHP/4.3.10 mod_ssl/2.8.22 OpenSSL/0.9.7e

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

Guessed imagepath: ....com/cgi-systemimages/

Configured Imagepath ...photoblog/images

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

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

Language Directory: OK

Addons Directory: OK

Includes Directory: OK

Templates Directory: OK

Nemesis
09-17-2005, 05:37 AM
Did you chmod your thumbnail folder?

koldapu
09-17-2005, 06:04 AM
Did you chmod your thumbnail folder?

It's "777"

raminia
09-17-2005, 06:54 AM
search the forum
http://forum.pixelpost.org/showthread.php?t=1961&highlight=supplied+argument+valid+Image+resource
http://forum.pixelpost.org/showthread.php?t=1838&highlight=supplied+argument+valid+Image+resource
http://forum.pixelpost.org/showthread.php?t=1297&highlight=supplied+argument+valid+Image+resource

and check if you are sending jpg file not a tiff or a raw file.

koldapu
09-17-2005, 09:37 PM
I searched the forum and made different changes, but it still doesn't work.

Here is my info:


PHP-version 4.3.10 (Pixelpost's min requirement: PHP version 4.3.0)

MySQL version 4.1.13a-Debian_2-log (Pixelpost's min requirement: MySQL 3.23.58)

GD-lib bundled (2.0.28 compatible) with JPEG support

Server software Apache/1.3.33 (Unix) DAV/1.0.3 mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a PHP/4.3.10 mod_ssl/2.8.22 OpenSSL/0.9.7e

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

---

Guessed imagepath: /home/amol/alphamol.com/cgi-systemimages/

Configured Imagepath /home/amol/alphamol.com/photoblog/images

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

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

Language Directory: OK

Addons Directory: OK

Includes Directory: OK

Templates Directory: OK



I am sending in only JPG

GeoS
09-17-2005, 10:13 PM
Give us link to your PP installation.

koldapu
09-17-2005, 10:20 PM
Give us link to your PP installation.

http://www.alphamol.com/photoblog

Is that what you want? I'm kind of internet stupid.

GeoS
09-17-2005, 11:54 PM
Try to set IMAGES PATH to ../images.

PS Error which you paste here tells that you have only problem with thumbnail creation.
Is upload without any problem?? I see that /images directory is empty. It means no uploaded images!

koldapu
09-18-2005, 12:07 AM
Try to set IMAGES PATH to ../images.

PS Error which you paste here tells that you have only problem with thumbnail creation.
Is upload without any problem?? I see that /images directory is empty. It means no uploaded images!

It doesn't upload at all. When I click on Images tab on top, it shows :

Warning: getimagesize(../images/20050917170650_b2s04.jpg): failed to open stream: No such file or directory in /home/.elvine/amol/alphamol.com/photoblog/admin/index.php on line 736

Warning: filesize(): Stat failed for ../images/20050917170650_b2s04.jpg (errno=2 - No such file or directory) in /home/.elvine/amol/alphamol.com/photoblog/admin/index.php on line 737
# [edit] #10, Title: doubleshot, file-name:20050917170650_b2s04.jpg
dimensions: x , 0 Kb
to be published: 2005-09-17 17:06:50
[delete] categories: [default]

Rienk
09-18-2005, 08:57 AM
I don't know if my problems are the same. But I found out that my installation does upload, but to the rootfolder, in my case /schatkamer/. When I change the location of imagepath to schatkamer/image. I get several errors for the other maps. So is there anything wrong with the PHP code in the scripts? I can put photo's manually in the image folder but then there is no thumbnail created. And there is no option to do so.

In other words help! Because this script looks so great at all the other users.

O the link,

http://www.timmerloods.nl/schatkamer

Rienk
09-18-2005, 09:23 AM
In the other forums I read that the path should not be "/images" but
"/images/" I see in your previous posts that you make the same mistake as I did. For me it works now. I hope it does for you to.

Good luck I'm going to upload my beautys

http://www.timmerloods.nl/schatkamer (treasure room it's Dutch)

Joe[y]
09-18-2005, 10:48 AM
did you include the tailing slash on your site url and on your configured imagepath?

ie... http://www.alphamol.com/

and ../images/ for configured imagepath.

i'm sure that your url is probably right but it's worth checking (as it sees the other folders) i'm sure it has soemthing to do with paths.


EDIT: haha. Rienk just beat me to it!

koldapu
09-20-2005, 03:59 AM
OMG, it works!

Thanks a lot!