Maian Script World on Facebook Maian Script World on Twitter Maian Script World - Latest News Maian Script World on YouTube Maian Script World on LinkedIn


Please Read

You are required to register before you can post. This is via a custom verification system. Please post any problems you are encountering here and I`ll do my best to respond as soon as I can. Please note that a reply WILL be posted to all queries, so do not double post. There are no guarantees when a reply will appear but I do my best to answer all within 3/4 days max. Bumping topics won`t make the slightest difference.

IMPORTANT: Posts in English ONLY please, thank you! Any other languages will be ignored and your message deleted.
SEARCH: Use the search option to see if your question has been answered on the forum before. Or check the relevant script docs.
CUSTOMER: If you have purchased a commercial version of any of my software, using the contact option at the licence centre ensures a faster response.
AUTO DELETION: Accounts older than 5 days, with no posts or topics, are automatically deleted. Only register if you are thinking of posting.
PRIVATE MESSAGES: Private messages are currently disabled.
LINKS: Any links posted are 'NOFOLLOW' and will not be picked up by search engines.

You are not logged in.

#1 10-03-2007 18:07:15

DaveEverett
Members
Registered: 10-03-2007
Posts: 1

Captcha code not showing

Installation seemed to go well, but when I tested the form the code is replaced by the little red cross that indicates that an image is missing. Any ideas where I've gone wrong?

Form is at http://www.torbaypublishing.com/mail/

Dave

Offline

#2 11-03-2007 13:57:47

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,063

Re: Captcha code not showing

Hi Dave,

Does your server have the GD library with freetype support enabled? This is required for the captcha to function.

David.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#3 25-02-2008 07:04:21

Larry
Members
From: United States of America
Registered: 25-02-2008
Posts: 8

Re: Captcha code not showing

David,

The captcha code will not display when trying to incorporate into my website.

<a href="http://www.gr8-website-hosting.com/contact/index.php" target="_blank" rel="nofollow">URL</a>

When I upload your script "as is" prior to putting it into my template the captcha worked fine. I can't remember how to determine if the freetype support is enabled.

Any help you can provide will be greatly appreciated!

Larry

Offline

#4 25-02-2008 08:35:59

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,063

Re: Captcha code not showing

Hi Larry,

You need to view your servers PHP configuration. To do this:

1. Create a blank .txt file and type the following code:

<?php
phpinfo();
?>

Save the file with a .php extension and upload anywhere on your server. Then access the file in your browser. Scroll down for the GD setup.

If the GD is enabled with freetype support, try re-uploading the 'classes/fonts/' directory again.

David.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#5 25-02-2008 19:24:22

Larry
Members
From: United States of America
Registered: 25-02-2008
Posts: 8

Re: Captcha code not showing

Thanks for the quick reply. GD is enabled with freetype support and I re-uploaded the classes/fonts/ directory and still no captcha.

When I move the form code to the very top it shows:

<a href="http://www.gr8-website-hosting.com/contact/index.php" target="_blank" rel="nofollow">URL</a>

The problem is I want it down within the contact page section where it belongs (scroll down).

Larry

Offline

#6 25-02-2008 19:30:08

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,063

Re: Captcha code not showing

Are you using includes to show the form? Or maybe an iframe? To adapt the system into your own, you need to edit the templates within Maian Mail.

David.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#7 25-02-2008 20:14:02

Larry
Members
From: United States of America
Registered: 25-02-2008
Posts: 8

Re: Captcha code not showing

I'm not using includes or an iframe. I just don't understand why it'll show at the top of my page but not when I move it down.

I'll play around with the templates. In the meantime, I may just disable the captcha feature.

Thanks again!

Offline

#8 26-02-2008 12:30:50

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,063

Re: Captcha code not showing

The captcha uses session data, so I`m guessing that because you have data being sent by the browser before the captcha loads, its failing. Have you got a server error log? If so, check that. Some servers log the errors in the root of your site.

If that is the issue, you`ll see an error about the session not being able to initiate as header data has already been sent.

David.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#9 26-02-2008 16:55:14

Larry
Members
From: United States of America
Registered: 25-02-2008
Posts: 8

Re: Captcha code not showing

Could the problem be that I deleted the <em>session_start(); </em> code from default options section of the php-captcha.inc.php file? I'm working from a different CPU at the moment so I can't test it to see.

Offline

#10 27-02-2008 08:20:56

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,063

Re: Captcha code not showing

You could always try putting it back to see. If you have a server error log, the answer will be there.

David.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#11 28-02-2008 00:32:39

Larry
Members
From: United States of America
Registered: 25-02-2008
Posts: 8

Re: Captcha code not showing

David,

Here were the contents of my session log file:

[27-Feb-2008 18:23:08] PHP Warning:  Unknown(): (null): Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP    compiled with module API=20020429, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
[27-Feb-2008 18:23:08] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/stdrlw15/public_html/contact/index.php:11) in /home/stdrlw15/public_html/contact/classes/php-cap tcha.inc.php  on line 258

Line 258 had the following line of code: header("Content-type: image/&#036;this->sFileType");

I wasn't sure what to do from there.

Thanks for your patience.

Larry

Offline

#12 28-02-2008 08:49:53

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,063

Re: Captcha code not showing

Well, the header error is because data has been sent to the browser before its called. In this case its the error message. So, the header code isn`t a problem.

It looks as though you have some kind of mismatch in your Apache and PHP configuration. Might be worth contacting your host about it.

David.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#13 29-02-2008 07:12:14

Larry
Members
From: United States of America
Registered: 25-02-2008
Posts: 8

Re: Captcha code not showing

Well, I finally got it - <a href="http://www.gr8-website-hosting.com/contact/index.php" target="_blank" rel="nofollow">URL</a>

I was making the mistake of copying the PHP code from the main index file into the location I wanted the form to appear on my website. I went in and modified the index template with my site's code and let the form pull in that way. This whole process was bittersweet in that it took up a lot of my time trying to figure it out but learned a lot about PHP through research on other websites.

Lastly, I want to thank you David for responding to all my inquiries these past couple days. You provide better support for something that's FREE compared to some merchants where you actually have to fork over money for their services. Keep up the good work!

Thanks again!

Larry

Offline

#14 29-02-2008 08:17:59

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,063

Re: Captcha code not showing

You`re welcome Larry and I`m glad you got it working,

David.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

Board footer

2Checkout.com is an authorized reseller of goods and services provided by Maian Script World.© 2003-2013 David Ian Bennett. All Rights Reserved | Forum: FluxBB

Privacy Policy | Refund Policy