PDA

View Full Version : Thumbnail prblem



Anonymous
05-12-2003, 06:39 PM
I looked over the rest of the message board but was unable to find a solution there.

My problem is that the script wont create thumbnails. I get this error:
Fatal error: Call to undefined function: imagecreatefromjpeg() in /usr/local/psa/home/vhosts/realestatefortoday.net/httpdocs/realty/include/thumbnail_gd.php on line 33

I am using v1.07 (just installed) on

I was using v1.05 and had the same problem.
I've checked permissions and htey seem to be all correct. No idea of where a phpinfo page might be.
Running php v4.1.0 on Apache server

Any help would be very much appreciated since I am behind schedule on getting this up and running.

greengiant
05-14-2003, 04:39 PM
Does your server have thd gd libs installed? If so what version? phpinfo() might help...

Thanks

Anonymous
05-20-2003, 03:25 PM
I am getting the same sort of errors:

Parse error: parse error, unexpected '*' in /home/infoomna/public_html/malialtd/realty/include/thumbnail_gd.php on line 42

Fatal error: Call to undefined function: make_thumb() in /home/infoomna/public_html/malialtd/realty/include/main.php on line 1118


My php module info is as follows:

http://www.infophreak.com/phpinfomod.php

Anonymous
05-20-2003, 03:42 PM
Your error is a parse error. You have a mis-placed "*" somewhere in your common.php. It doesn't have anything with phpinfo.

Anonymous
05-20-2003, 03:51 PM
from my thumbnail_gd.php:

///* old function
//GD Lib is Version 2 or >
//$dst_img = imagecreatetruecolor($dest_width,$dest_height);
//imagecopyresampled($dst_img, $src_img, 0, 0, 0, 0, $dest_width,$dest_height, $imagewidth, $imageheight);
//GD Lib is Version <2
$dst_img = imagecreate&#40;$dest_width,$dest_height&#41;;
imagecopyresized&#40;$dst_img, $src_img, 0, 0, 0, 0, $dest_width,$dest_height, $imagewidth, $imageheight&#41;;
*/
New Function checks to see if GD2 functions are available for higher quality thumbnails
if &#40;function_exists&#40;"imageCreateTrueColor"&#41;&#41;
&#123;
if &#40; !@&#40;$dst_img = imageCreateTrueColor&#40;$dest_width, $dest_height&#41;&#41; &#41;
&#123;
$dst_img = imageCreate&#40;$dest_width, $dest_height&#41;;
&#125;
else
&#123;
$dst_img = imageCreateTrueColor&#40;$dest_width, $dest_height&#41;;
&#125;
&#125;



Is that * supposed to be there?

THere are no * in my common.php at all.

Any more Ideas. Thanks for the first tip though.

-Doc

Anonymous
05-20-2003, 03:56 PM
Actuall I get it the */ is supposed to be // to comment out the programming notes from the author. So I fixed that by making it //

However; I now get this error:

Parse error: parse error, unexpected T_FUNCTION, expecting T_STRING or T_VARIABLE or '$' in /home/infoomna/public_html/malialtd/realty/include/thumbnail_gd.php on line 43

Fatal error: Call to undefined function: make_thumb() in /home/infoomna/public_html/malialtd/realty/include/main.php on line 1118

greengiant
05-25-2003, 05:20 PM
change the /* to // and then remove the line break...

1.0.8 will be out in about 2-3 weeks. I am moving, sorry for leaving you all in a mess..

Anonymous
05-28-2003, 11:37 AM
Does your server have thd gd libs installed? If so what version? phpinfo() might help...

Thanks

I'm still fairly new to PHP and this is a new site host that I havent worked with before... so I'm not sure. I did find something that showed me how to get a page of PHP info but I do not see any reference to GD library on it. If someone can take a quick peek at it and let me know if I am interpreting this correctly then I can speak with the site host about installing it. http://www.bedlamabbey.com/test.php

Otherwise I need to change Ope Reality code to let me upload a thumbnail instead of automating it.

Rudeman
06-05-2003, 01:00 PM
I looked over the rest of the message board but was unable to find a solution there.

My problem is that the script wont create thumbnails. I get this error:
Fatal error: Call to undefined function: imagecreatefromjpeg() in /usr/local/psa/home/vhosts/realestatefortoday.net/httpdocs/realty/include/thumbnail_gd.php on line 33

.

Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/.schuyleroven/uplink/hotskunk.com/realty/include/thumbnail_gd.php on line 33

I'm having the same problem. I'm using 1.07

I checked to see if there was any */ anywhere. and everthing looks fine.


help

thanks :?:

Rudeman
06-05-2003, 01:10 PM
I looked over the rest of the message board but was unable to find a solution there.

My problem is that the script wont create thumbnails. I get this error:
Fatal error: Call to undefined function: imagecreatefromjpeg() in /usr/local/psa/home/vhosts/realestatefortoday.net/httpdocs/realty/include/thumbnail_gd.php on line 33

.

Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/.schuyleroven/uplink/hotskunk.com/realty/include/thumbnail_gd.php on line 33

I'm having the same problem. I'm using 1.07

I checked to see if there was any */ anywhere. and everthing looks fine.


help

thanks :?:



Ok I found a fix. I copied the working thumbnail_gd.php file from here
the forum found here
http://www.open-realty.org/phpBB2/viewtopic.php?t=399

it worked fine =0)

Rudeman
06-05-2003, 06:15 PM
I looked over the rest of the message board but was unable to find a solution there.

My problem is that the script wont create thumbnails. I get this error:
Fatal error: Call to undefined function: imagecreatefromjpeg() in /usr/local/psa/home/vhosts/realestatefortoday.net/httpdocs/realty/include/thumbnail_gd.php on line 33

.

Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/.schuyleroven/uplink/hotskunk.com/realty/include/thumbnail_gd.php on line 33

I'm having the same problem. I'm using 1.07

I checked to see if there was any */ anywhere. and everthing looks fine.


help

thanks :?:



Ok I found a fix. I copied the working thumbnail_gd.php file from here
the forum found here
http://www.open-realty.org/phpBB2/viewtopic.php?t=399

it worked fine =0)


Ok I thoght it was fixed. actually the problem seems to be when I upload a file as a jpg it will work when I use a gif. but when I use a jpg I get

Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/.schuyleroven/uplink/hotskunk.com/realty/include/thumbnail_gd.php on line 33

Anonymous
06-07-2003, 09:03 AM
Silly questions, but have you set your Images folder on your server permissions to 777 ?

ie access to read write for all

Rudeman
06-09-2003, 03:54 PM
Silly questions, but have you set your Images folder on your server permissions to 777 ?

ie access to read write for all


no question is too silly and yes I do have it set to 777