PDA

View Full Version : Problem with uploading image / creating a thumbnail


blurr
12-11-2005, 12:01 PM
Right since my webhost upgraded PHP I've had problems with uploading the image, well not so much uploading the image, but creating a thumbnail. Now before you say, yes I have read the other threads concerning this and I have tried the various suggested fixes... ie. editing certain lines in the function.php and index.php etc, none of which have worked. Both the images and thumbnail folders are set to CHMOD 777...

Basically once I've uploaded the photo, it kicks up these errors directly below it...

Warning: end(): Passed variable is not an array or object in /usr/local/psa/home/vhosts/myembers.com/httpdocs/includes/functions.php on line 55

Warning: imagejpeg(): supplied argument is not a valid Image resource in /usr/local/psa/home/vhosts/myembers.com/httpdocs/includes/functions.php on line 94

Warning: chmod(): Unable to access ../thumbnails/thumb_20051211125934_waste.jpg in /usr/local/psa/home/vhosts/myembers.com/httpdocs/includes/functions.php on line 96

Warning: chmod(): No such file or directory in /usr/local/psa/home/vhosts/myembers.com/httpdocs/includes/functions.php on line 96

Here's my general info:

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

MySQL version 4.1.11 (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) mod_python/2.7.10 Python/2.2.2 mod_gzip/1.3.26.1a mod_perl/1.29 mod_throttle/3.1.2 PHP/4.4.1 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7e

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

and here are my 'Paths'

Guessed imagepath: /usr/local/psa/home/vhosts/myembers.com/httpdocs/images/

Configured Imagepath /usr/local/psa/home/vhosts/myembers.com/httpdocs/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

Joe[y]
12-11-2005, 01:00 PM
i can't see why upgrading php would have affected this if it's not up to php5. but alas, something is obviously up!

ok. first of all, though i'm not sure if this is the problem - try making your image path relative.. ie, change your configured imagepath to ../images/

however, i think this is more likely something to do with file upload permissions that might have been affected during your hosts upgrade and perhaps you should ask them if they know what the problem could be as well.

blurr
12-11-2005, 01:10 PM
Sorry to sound dumb... but do you mean change the path from...

/usr/local/psa/home/vhosts/myembers.com/httpdocs/images/

to just

../images/

?

Joe[y]
12-11-2005, 01:23 PM
yeah i mean just that.

blurr
12-11-2005, 01:44 PM
Cheers.

Unfortunately it didn't work. So I tried reverting back to my previous index.php in the admin and in httpdocs and the function.php file.

and now it comes up with this...

Warning: imagejpeg(): Unable to access ../thumbnails/thumb_20051211144310_waste.jpg in /usr/local/psa/home/vhosts/myembers.com/httpdocs/includes/functions.php on line 92

Warning: imagejpeg(): Invalid filename '../thumbnails/thumb_20051211144310_waste.jpg' in /usr/local/psa/home/vhosts/myembers.com/httpdocs/includes/functions.php on line 92

Warning: chmod(): Unable to access ../thumbnails/thumb_20051211144310_waste.jpg in /usr/local/psa/home/vhosts/myembers.com/httpdocs/includes/functions.php on line 94

Warning: chmod(): No such file or directory in /usr/local/psa/home/vhosts/myembers.com/httpdocs/includes/functions.php on line 94


I have posted this problem on my webhost support forum... no reply as of yet, so I thought I'd continue badgering you guys!

I've also double checked the CHMOD for the files and they're both set to 777.

blurr
12-11-2005, 02:22 PM
Thanks for your help Joe[y] after further searching in this forum I finally found the fix (http://forum.pixelpost.org/showthread.php?t=2736&highlight=imagejpeg%28%29)

Guess I wasn't looking hard enough.

Joe[y]
12-11-2005, 02:32 PM
ahah. when you said you had already edited lines in functions.php i figured you meant that thread.

anyway glad it's working now.

blurr
12-11-2005, 02:40 PM
Yeah I think I pretty much tried every other fix than that one... sods law eh :)

Oh and when are you releasing your updated template of "light white"

Joe[y]
12-11-2005, 04:02 PM
Yeah I think I pretty much tried every other fix than that one... sods law eh :)

Oh and when are you releasing your updated template of "light white"

as soon as i get the comment template finished! everything else is done. http://dev.jlspurling.com/pixelpost/1.5/