Forums » Support

Another problem with image-upload

lotte
UK
2008-05-01 16:36:21
 

Hello,
I installed indexhibit and all is going well despite the fact I got prolems to upload images.
The error message I get is
"Parse error: syntax error, unexpected '`' in /www/htdocs/xxxxxxxx/xxxxx/ndxz-studio/lib/media.php on line 269"

The lines of code where the script interrupts are these:
function do_output($output_image, $image)
{
switch($this->filemime) {
case 'gif':
imagegif($output_image, $image);
break;
case 'jpg':
imagejpeg($output_image, $image, $this->quality);
break;
case 'jpeg':
imagejpeg($output_image, $image, $this->quality);
break;
case 'png':
imagepng($output_image, $image);
break;
}
}

(line 269 is the first break)

I tried to upload jpgs and gifs.
I have no idea what the problem might be, does anyone have a clue?

Cheers
Lotte

Vaska
I WROTE THIS
2008-05-01 16:55:01
 

And the error message? I bet the server has an out-of-date version of the GD Library or doesn't have enough RAM.

Or, some other files were not uploaded...make sure all the files are uploaded.

I'm more than confident this works...it has in...probably about 10,000 installs now.

lotte
UK
2008-05-03 14:06:10
 

you are right, obviously the problem has been that some files were missing. looks like i should use a better ftp-client.
thanks a lot!
you built a great tool :)

Showing 1 - 3 of 3 posts in Forum > Support > Another problem with image-upload
 

You need to be logged in to post.