MemHT Portal is a Free PHP CMS and Blog
It permit the creation and the management online of websites with few and easy steps.
It's completelly customizable, expandable and suitable for all needs.
Moderators: Moderators
Page 1/2 1 2 >
Forum RSS feedReply
GD Library
AuthorText
sallymem
Junior Member
Avatar

Posts: 76
Contributes: 14

Gender: _FEMALE_
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
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

Avatar

Posts: 5130
Contributes: 2473

Gender: _MALE_
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" ;

?>
Delete Edit Quote
 
sallymem
Junior Member
Avatar

Posts: 76
Contributes: 14

Gender: _FEMALE_
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
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

Avatar

Posts: 5130
Contributes: 2473

Gender: _MALE_
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
Delete Edit Quote
 
sallymem
Junior Member
Avatar

Posts: 76
Contributes: 14

Gender: _FEMALE_
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...
Smile
Delete Edit Quote
 
paulo89
Moderator
Developer

Avatar

Posts: 1286
Contributes: 523

Gender: _MALE_
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
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

Avatar

Posts: 5130
Contributes: 2473

Gender: _MALE_
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 Smile

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
Delete Edit Quote
 
sallymem
Junior Member
Avatar

Posts: 76
Contributes: 14

Gender: _FEMALE_
Online: No
Date: 08/04/2008 19:08
Re: GD Library
#post5923
why r u so mad mem, I was just testing...Smile 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
Smile


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
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

Avatar

Posts: 5130
Contributes: 2473

Gender: _MALE_
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
Delete Edit Quote
 
sallymem
Junior Member
Avatar

Posts: 76
Contributes: 14

Gender: _FEMALE_
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
Delete Edit Quote
 
Reply
Page 1/2 1 2 >
Tags Cloud
Advertising
News Archive
Language
Help MemHT Portal
Navigator
Users Block
Hi Guest
IP: 38.103.63.59

Username
Password
New files
MemHT Wiki
Friends
MemHT Portal is a free software released under the GNU/GPL License by Miltenovik Manojlo