| GD Library |
| Author | Text |
sallymem Junior Member

Posts: 76

Gender:  Online: No |
Date: 07/04/2008 19:43 GD Library | #post5866 | Url: http://sallysl.startlogic.com/portal/download-Snow+Effect.html
Version: 3.6.0
Host: Linux ( http://sallysl.startlogic.com/phpinfo.php)
Installed addons/scripts: MemHT Calendar
Error/Problem: " I keep getting Wrong Security Code!" in the download and contact page where I use the Captcha Security Images.
I am moving my site to a new host because the old http://www.ixwebhosting.com lost all my gallery and till today could not restore it. I will be recreating the site on the address above.
This host has Platform
Type Debian
MySQL 5.0.45
Perl 5.8.8
PHP 4.4.7
and I think this check is causing the error:
if ((isset($_POST['post_code_page']) AND isset($_SESSION['chk_download']) AND strtolower($_POST['post_code_page'])==strtolower($_SESSION['chk_download'])) OR !(extension_loaded('gd') AND $siteConfig['graphic_check']))
the part about the extension_loaded
Thanks Mem |
|
 |
| |
mem MemHT's Dad Admin & Developer

Posts: 5130

Gender:  Online: No |
Date: 07/04/2008 20:00 Re: GD Library | #post5868 | Why "error" ? It's a standard PHP function that check if your host have GD libraries installed.
Try putting this in a php file:
| code | <?php
echo (extension_loaded('gd')) ? "Y" : "N" ;
?> |
|
|
 |
| |
sallymem Junior Member

Posts: 76

Gender:  Online: No |
Date: 07/04/2008 21:20 Re: GD Library | #post5872 | but in the code it is set as:
!(extension_loaded('gd') so it is evaluating to false.. should I change Edited: 07/04/2008 21:20 Reason: smiles on |
|
 |
| |
mem MemHT's Dad Admin & Developer

Posts: 5130

Gender:  Online: No |
Date: 07/04/2008 21:30 Re: GD Library | #post5873 | No, it's perfect as is.
As i said, try to execute that code |
|
 |
| |
sallymem Junior Member

Posts: 76

Gender:  Online: No |
Date: 08/04/2008 09:04 Re: GD Library | #post5891 | I removed the not(!) in the contact us page and it worked, but in the download, removing it caused thesystem to ignore the security image all together... I am sure your code is accurate, it is the host.
Is there anything else you can think off...
 |
|
 |
| |
paulo89 Moderator Developer

Posts: 1286

Gender:  Online: No
Version: 3.8.1 Country: Portugal Languages: Portuguese, Portuguese and little english ^^ |
Date: 08/04/2008 09:18 Re: GD Library | #post5892 | Hi
You deleted the page imgCode.php?
This page does not exist |
|
 |
| |
mem MemHT's Dad Admin & Developer

Posts: 5130

Gender:  Online: No |
Date: 08/04/2008 11:45 Re: GD Library | #post5900 | I said not to touch the script, if you do that, it's your own business... the ! char is there because it has to be, not because i wanted to write something
I repeat, TRY TO EXECUTE THE CODE I'VE POSTED IN THE PREVIOUS MESSAGE IN A PHP FILE, AND SEE WHERE'S THE PROBLEM... we can continue to chat for years here, but if you do not do that, nothing will change Edited: 08/04/2008 11:46 |
|
 |
| |
sallymem Junior Member

Posts: 76

Gender:  Online: No |
Date: 08/04/2008 19:08 Re: GD Library | #post5923 | why r u so mad mem, I was just testing...  The page with your code is here: http://sallysl.startlogic.com/gd.php
it shows Y, which means the value translates to true, but with the ! is translates to N
and the imageCode.php is not deleted it is on the server and the images are actually created, they are just not being evaluated.
I checked with the hosting company, they said I need to place this line:
session_save_path("/home/users/web/b1129/sl.sallysl/public_html/cgi-bin/tmp " );
before every session_start Edited: 08/04/2008 19:25 Reason: 4got |
|
 |
| |
mem MemHT's Dad Admin & Developer

Posts: 5130

Gender:  Online: No |
Date: 08/04/2008 19:28 Re: GD Library | #post5925 | I'm not mad, i just needed that file. So it's a host problem. Than do what they says. Try putting at the beginning of root/index.php the session_save_path code |
|
 |
| |
sallymem Junior Member

Posts: 76

Gender:  Online: No |
Date: 08/04/2008 19:44 Re: GD Library | #post5926 | I did , but I've checked your code, you have a lot of session_start , do I need to include it before every one, also, is there a difference between @session_start and without the @ ? Edited: 08/04/2008 19:46 Reason: smiles on |
|
 |
| |