Page 1 of 1
problem with image uploade
Posted: Thu Dec 22, 2005 1:20 am
by StarF
when ever i try to upload a picture i get this:
Code: Select all
Warning: imagejpeg(): Unable to access /hsphere/local/home/perestro/perestrojka.dk/blog/uploads/sh.serendipityThumb.jpg in /hsphere/local/home/perestro/perestrojka.dk/blog/include/functions_images.inc.php on line 855
Warning: imagejpeg(): Invalid filename '/hsphere/local/home/perestro/perestrojka.dk/blog/uploads/sh.serendipityThumb.jpg' in /hsphere/local/home/perestro/perestrojka.dk/blog/include/functions_images.inc.php on line 855
Ændre størrelse på sh.jpg: 83x110
I know it has something to do with the dirs and chmod, i have done a chmod 777
to:
blog (the dir that contains the blog)
templates
templates_c
uploads
what am i missing?
Posted: Thu Dec 22, 2005 8:19 am
by falk
Are you sure the php gd extension is installed?
Re: problem with image uploade
Posted: Thu Dec 22, 2005 11:46 am
by garvinhicking
And does that file "sh.serendipityThumb.jpg" exist? Which permissions does that have?
Regards,
Garvin
Posted: Thu Dec 22, 2005 3:32 pm
by StarF
falk wrote:Are you sure the php gd extension is installed?
Pretty sure, how do i chech? other than uploading a new blog and read the info before i press install?
BTW its hosted on a webserver, where i once before put up a webblog with no problems there.. so its a bit odd.
garvinhicking wrote:And does that file "sh.serendipityThumb.jpg" exist? Which permissions does that have?
Regards,
Garvin
yes its just a picture i uploaded through the media function.
Posted: Thu Dec 22, 2005 3:43 pm
by garvinhicking
Ho!
Pretty sure, how do i chech? other than uploading a new blog and read the info before i press install?
You can check it with a <?php phpinfo(); ?> script.
But in this case I think GD library is not related to the problem.
garvinhicking wrote:And does that file "sh.serendipityThumb.jpg" exist? Which permissions does that have?
yes its just a picture i uploaded through the media function.
So? "Which permissions does that have?"
Regards,
Garvin
Posted: Thu Dec 22, 2005 4:38 pm
by StarF
garvinhicking wrote:Ho!
Pretty sure, how do i chech? other than uploading a new blog and read the info before i press install?
You can check it with a <?php phpinfo(); ?> script.
But in this case I think GD library is not related to the problem.
garvinhicking wrote:And does that file "sh.serendipityThumb.jpg" exist? Which permissions does that have?
yes its just a picture i uploaded through the media function.
So? "Which permissions does that have?"
Regards,
Garvin
if i select chmod on that file with smartftp i can see it got "664"
Posted: Thu Dec 22, 2005 4:42 pm
by garvinhicking
Write a little "test.php" script:
Code: Select all
<?php
$fp = fopen('/hsphere/local/home/perestro/perestrojka.dk/blog/uploads/sh.serendipityThumb.jpg', 'r');
print_r($fp);
print_R(stat('/hsphere/local/home/perestro/perestrojka.dk/blog/uploads/sh.serendipityThumb.jpg'));
?>
Save and Execute that and see what it outputs.
Regards,
Garvin
Posted: Thu Dec 22, 2005 5:53 pm
by StarF
garvinhicking wrote:Write a little "test.php" script:
Code: Select all
<?php
$fp = fopen('/hsphere/local/home/perestro/perestrojka.dk/blog/uploads/sh.serendipityThumb.jpg', 'r');
print_r($fp);
print_R(stat('/hsphere/local/home/perestro/perestrojka.dk/blog/uploads/sh.serendipityThumb.jpg'));
?>
Save and Execute that and see what it outputs.
Regards,
Garvin
i just get a white page?
http://www.perestrojka.dk/blog/uploads/test.php
put it in the same dir as that image?
Posted: Thu Dec 22, 2005 6:30 pm
by garvinhicking
After the <?php add these lines:
Code: Select all
ini_set('display_errors', 'On');
error_reporting(E_ALL);
Seems you get a fatal error.
Regards,
Garvin
Posted: Thu Dec 22, 2005 6:34 pm
by StarF
garvinhicking wrote:After the <?php add these lines:
Code: Select all
ini_set('display_errors', 'On');
error_reporting(E_ALL);
Seems you get a fatal error.
Regards,
Garvin
alright the output now is:
Code: Select all
Warning: fopen(): Unable to access /hsphere/local/home/perestro/perestrojka.dk/blog/uploads/sh.serendipityThumb.jpg in /hsphere/local/home/perestro/perestrojka.dk/blog/uploads/test.php on line 5
Warning: fopen(/hsphere/local/home/perestro/perestrojka.dk/blog/uploads/sh.serendipityThumb.jpg): failed to open stream: No such file or directory in /hsphere/local/home/perestro/perestrojka.dk/blog/uploads/test.php on line 5
Warning: stat(): Stat failed for /hsphere/local/home/perestro/perestrojka.dk/blog/uploads/sh.serendipityThumb.jpg (errno=2 - No such file or directory) in /hsphere/local/home/perestro/perestrojka.dk/blog/uploads/test.php on line 8
Posted: Thu Dec 22, 2005 6:39 pm
by garvinhicking
Then you should talk with your sysadmin -- there is a file permission access problem on your server.
If the file is really 644 as you mentioned, this shouldn't happen!
Regards,
Garvin
Posted: Thu Dec 22, 2005 6:42 pm
by StarF
garvinhicking wrote:Then you should talk with your sysadmin -- there is a file permission access problem on your server.
If the file is really 644 as you mentioned, this shouldn't happen!
Regards,
Garvin
Hmm alright.. as i mentioned its on a web server, so mabye they dont alow these kinds of "things" to be run...