Page 1 of 1

need help with security image

Posted: Sat Feb 03, 2007 2:47 am
by djabadie
Script URL:http://www.bartokprojects.com/tulips_on ... mboard.php
Version of script:1.3 from 18th November 2006
Hosting company:
URL of phpinfo.php:http://www.bartokprojects.com/tulips_on ... hpinfo.php
URL of session_test.php:http://www.bartokprojects.com/tulips_on ... n_test.php
What terms did you try when SEARCHING for a solution:this forum, Google

I just installed Mboard and I'm having trouble viewing the security image when creating or replying to posts. As a test, I set $settings['autosubmit'] to 2 and it worked fine; I was able to see the text number and make a post. When I set it back to 1 though, the image number would not display. I loaded gd_test.php and instead of returning 'works' it returned the URL of the file, http://www.bartokprojects.com/tulips_on ... d_test.php

I'm fairly new at PHP but I do know a little. However, I've never worked with the GD library, so I'm probably missing something there.

Thanks in advance for any help.

Posted: Sat Feb 03, 2007 12:30 pm
by Klemen
What kind of gd_test.php file is this? It returns PHPINFO not the image! And on the bottom you see

Fatal error: Call to undefined function: imagejpeg() in /var/www/html/bartokprojects.com/tulips_on_troost/mboard/gd_test.php on line 26


So you are most likely having problems with GD library, ask your host to check if it is installed properly.

Posted: Sat Feb 03, 2007 3:37 pm
by djabadie
Oops, sorry about that. I added a call to phpinfo to the gd_test file to check the GD library settings before I saw the other phpinfo.php file to download and I forgot to change it back. http://www.bartokprojects.com/tulips_on ... d_test.php is now the original gd_test.php file.

I'll look into the error message you mentioned and see if I can track down the problem. You also said I should see if the GD library is installed properly. Is there anything in specific I should be looking for?

Posted: Sat Feb 03, 2007 4:01 pm
by Klemen
Sorry, I can't help you with your PHP/GD setup, you will need to ask your host or check on any PHP forums for help if you are your own host.

From the PHP manual:
Note: JPEG support is only available if PHP was compiled against GD-1.8 or later.
From the PHPINFO file I see your PHP was compiled with a GD library, you probably just need JPG Support enabled. And that is something only your host can do.