image_text does not work on new host.

See all posts Reply

image_text does not work on new host. new!
by zirkon, 14 years, 11 months ago
Hello Colin,
Thank you for your nice upload script.

I changed my hosting company. On the new host, image upload works fine but $handle->image_text does not work. I can not write text on uploaded images. I can do it on the old host. How can I overcome this problem.

(I use class.upload v.26. Old host's php version 5.2.9, new host's is 5.2.8. I am novice on php.)

ThanksReply
Re: image_text does not work on new host. new!
by colin, 14 years, 11 months ago
Can you copy here the log produced by the class? After calling $xxx->process() in your code, simply output $xxx->logReply
Re: image_text does not work on new host. new!
by zirkon, 14 years, 11 months ago
I did what you said. It says: "GD not present".
But in the Cpanel when I list Installed Perl Module(s) I see these are installed:
...
GD 2.41
GD::Graph 1.44
GD::Text 0.86
...Reply
Re: image_text does not work on new host. new!
by colin, 14 years, 11 months ago
You need to check whether GD is working. cPanel may be wrong. In order to be sure that GD is working, you need to be sure that it is present in a phpinfo()Reply
Re: image_text does not work on new host. new!
by zirkon, 14 years, 11 months ago
Colin you are great. You are right. Thanks for your help.

I overcame the problem. Let me write the solution maybe it helps the others too:

1- I asked help from the hosting provider whose slogan is "Serious Support" and they said "We can not help you on this, make a search in your favorite search engine!"
2- Well, I made a search and find the solution in a hosting forum says: "To enable GD library on your server, you will need to recompile your PHP with GD. You can recompile Apache and PHP from WHM -> Update Apache or you can also do it via SSH. To compile via SSH, you can use /scripts/easyapache."
3- I accessed to Cpanel's WHM and than EasyApache (Apache Update).
4- I found there some profiles and chose "PHP Image Manipulation".
5- In about 10 minutes update was finished.

Now everything works well.

Again, thanks for your super upload script and "Serious Support"!Reply