Developer Support »

Securimage CAPTCHA image won't show  (See more user questions)

Hi

If I remember correctly, everything worked as it should when you tried it on
your own hosting setup? That means everything with your form, the captcha
and my script is sweet.

You then put it on a different system, and you get various problems,
obviously connected to that system. I'm afraid I can't offer any help
there. My script relies on PHP being set up correctly and everything
associated with it, being set up correctly, including the mail() function.

PHP setup on the server, is not my thing. Even if it was, there are SO MANY
variables (have you looked at the PHP config options?!) that it would need
intensive full-on analysis, which even if I was an expert on, would be
impossible for me to look at on your intranet!

I don't mean to come across as unhelpful, but do you see what I mean? I
only supply the script. The PHP on the server must be working correctly for
it to work.

Is there no way you can make a simple test page on the live web server??
That should answer a lot of questions at a stroke.

Normally if customers are not getting the email from the script, I point
them to this page on my support section:

https://formtoemail.com/developersupport/not_receiving_email.php

BUT...you have got the script set up correctly and working sweetly, so there
might not be much in the above link that is relevant for you.

Sorry I can't offer more help.

Best wishes.

Charles Sweeney
https://formtoemail.com
The world's easiest feedback script!

----- Original Message -----
Sent: Wednesday, July 15, 2009 1:40 PM
Subject: RE: FormToEmail-Pro script - securimage captcha


Sorry Charles,

I am picking your brain way too much on this...
I know it is a server issue on our intranet server (aka internal servers to
us, hence my referring to it like that...sorry...). Either permissions or a
missing library and yes, it is totally related to the Captcha but it does
involve formtoemailpro since it is performing the captcha validation.
The problem is in finding what is causing the issue in the intranet servers
and of course you can't help me with this as you can't even see the scripts
in action.
For some reason the font files or words list are not read.
In any case, I have tested the form without the securimage bit and it is
also not sending the email. So it most definitely is a permissions issue or
libraries/functions not enabled. What could possibly be causing the script
not to send? I have checked and the mail function is enabled.


Thank you,

-----Original Message-----
Sent: Tuesday, July 14, 2009 6:48 PM
Subject: Re: FormToEmail-Pro script - securimage captcha

Hi

Again, I think this might be down to the securimage captcha code that I know
nothing about!

That said, you have seen it working, and if you have replicated the previous
setup, it should work.

I'm not quite sure what you mean by the captcha "works internally but it
doesn't validate". To me, it either works or it doesn't. Do you mean it
displays a captcha code? Is that what you mean by it working internally?

I'm sorry that I can't offer much help here, as you have got it working
before, so you know that everything in the captcha code and the script code
is sweet.

Not got any validation errors?

Charles Sweeney
https://formtoemail.com
The world's easiest feedback script!

----- Original Message -----
Sent: Tuesday, July 14, 2009 9:27 PM
Subject: RE: FormToEmail-Pro script - securimage captcha


Hi Charles,

Just a little clarification:
When I mentioned validation error, I meant the captcha validation.
Things are getting even more bizarre.
I grabbed the files from my own hosting, and now the captch works internally
but it doesn't validate. Everytime I put in the code, no matter how simple
and easy it is I get "Please enter the correct CAPTCHA code" and that is
coming from the formtoemailpro.php file line 1007.
I tried using a full path to the securimage.php file on line 103 but got the
blank page error. It's now back to the original code.
Any thoughts?


Thank you,


-----Original Message-----
Sent: Tuesday, July 14, 2009 9:44 AM
Subject: Re: FormToEmail-Pro script - securimage captcha

Hi

I just had a play with your form. I can see that the captcha is working.
I'm not sure if you were working on the script at the same time, because
sometimes I was getting the correct "thank you" page, other times I was
getting a blank screen (which is usually down to errors in the script).

I'm not quite with you. I don't see how the securimage captcha is related
to your validation problem (by validation, I take it you mean checking for
required fields, in this case?).

The thing about $_POST['captcha_code'] and $_GET['captcha_code'] is
irrelevant. The script uses $_REQUEST['captcha_code'] which includes the
$_POST and $_GET arrays. This is because I don't know if customers will be
using POST or GET on their forms. $_REQUEST covers both. Just keep it as
it is. Like I said, the captcha is working, so any input from it is not
relevant to the other issues.

I had a look at your edited script. For the required fields validation to
work, you need to enable it, like so:

$required_fields_check = 1;

Some other points. You have this for the email input on the form:

<input name="EMAIL" type="text" class="normaltext" id="EMAIL" size="50" />

For certain features of the script (checking the syntax of the email address
and putting the email address in the From: header of the resultant email)
you need to use "email" (lower case), like this:

<input name="email" type="text" class="normaltext" id="EMAIL" size="50" />

Remember to put "email" (lower case) in the list of required fields array.

You have got some validation errors on the form page:

http://validator.w3.org/

This can cause unpredictable results, particularly (in my experience looking
at customer's forms) when using an XHTML doctype. I would recommend that
you get rid of ALL the errors (however minor they might appear), and use a
straight HTML doctype if need be.

A minor point. You have put fields in the $field_order_keys array to sort
the fields but you have not enabled the option. You have:

$sort_fields = 0;

...should be:

$sort_fields = 1;

I appreciate that this might be disabled for now while you are testing.
Usually with a small form, you don't need to sort the fields, they will be
submitted in the order they are shown on the form. Remember to put "email"
(lower case) in the $field_order_keys array, if you change it to lower case
on the form.

Otherwise, you should be good to go.

Any questions, just let me know.

Best wishes.

Charles Sweeney
https://formtoemail.com
The world's easiest feedback script!

----- Original Message -----
Sent: Tuesday, July 14, 2009 1:44 PM
Subject: RE: FormToEmail-Pro script - securimage captcha


Hi Charles,

I took a different approach and placed the files in my own (ACENET shared
hosting) hosting. That confirms the thought that it might be something
missing from the PHP installation.
On my own hosting the securimage works fine but the formtoemail validation
doesn't.
You can see it here: http://
Based on the securimage FAQ page it might have something to do with how you
get the variable in the formtoemail file.
On the faq page it mentions something like: change $_POST['captcha_code'] to
$_GET['captcha_code']
Not sure if this makes sense to you. If I can get this to work on my server
then I just need to find the PHP differences between my hosting and the
internal config and we are good to go :)
I have attached the formtoemailpro file I am using for the form above.
Again, thank you for your help.


Thank you,


-----Original Message-----
Sent: Monday, July 13, 2009 3:20 PM
Subject: Re: FormToEmail-Pro script - securimage captcha

Hi Flavia.

My pleasure to assist you.

I know next-to-nothing about intranets, but I can say, I quite often see
people geting problems with them, that disappear when they go on the web.

Can't you set up a simple website somewhere on the internet to test the
form? Even just a test page on the live site?

Charles Sweeney
https://formtoemail.com
The world's easiest feedback script!

----- Original Message -----
Sent: Monday, July 13, 2009 7:59 PM
Subject: RE: FormToEmail-Pro script - securimage captcha


Hi Charles,

Thank you so much for the help. I will try adding the session call but, as
you, I don't think that will help.
I thought about recaptcha but I am not sure it will work with the intranet's
subdomain...
This is too frustrating. The form will eventually be live on the web but
before it gets there is needs to be verified by the security team internally
and that means everything should run perfectly in the intranet before it is
made live.
I will keep trying.


Thank you,

-----Original Message-----
Sent: Monday, July 13, 2009 2:49 PM
Subject: Re: FormToEmail-Pro script - securimage captcha

Hi

I have tested the securimage captcha quite thouroughly, and it works as it
should. I also have other customers using it, so they are very good guinea
pigs! I don't get many reports of problems with it, but as you suggest, it
might be something to do with your intranet. Most customers are on the web.

You could try putting the session_start line at the very top of the script
(formtoemailpro.php) but I don't think it will make any difference. It's
not so much that this line *should* go at the top of the script, the
session_start function should be called *before* any output (to screen) from
the script, so for simplicity's sake, it is normally suggested to put it at
the top of the code (I do the same thing on my instructions for
pre-populating the form) because you know if it's called at the start of the
script, that there can't be any output before it.

Where I have it in the script, there is no output before it, so it should
work, and it does. You can simply try it (to eliminate it for your own
peace of mind). Put the line at the top of the script. like so:

<?php

session_start();

error_reporting(E_ALL ^ E_NOTICE);

What about trying the reCAPTCHA option? That is all handled on their
servers, pretty much.

Any questions, just let me know.

Best wishes.

Charles Sweeney
https://formtoemail.com
The world's easiest feedback script!

----- Original Message -----
Sent: Monday, July 13, 2009 7:34 PM
Subject: RE: FormToEmail-Pro script - securimage captcha


Hi Charles,

One thing is that on the securimage documentation it asks to add the session
call to the first line of the form validation script (formtoemail). Since I
am no expert I didn't. Could this the issue?
I did contact Drew Phillips via his contact form but based on the FAQ and
documentation pages there hasn't been a lot of action there in quite some
time.
To be honest, I wouldn't even bother with the captcha but this is not my
call. We have an strict security scan done on all sites and she wants the
captcha on so it tightens the form. I am looking for info and if I find the
cause I will let you know in case others come across the same problem.


Thank you,


-----Original Message-----
Sent: Monday, July 13, 2009 2:29 PM
Subject: Re: FormToEmail-Pro script - securimage captcha

Hi

Thanks for the good info.

I can't help you either. I didn't write the captcha. It was written by
Drew Phillips from phpcaptcha.org . You need to go there for support
specific to it. I have no clue as to its inner workings, I simply call it
from the script.

Sorry I can't be of more help.

Are you sure you need the captcha? Bet you don't. ;o)

Charles Sweeney
https://formtoemail.com
The world's easiest feedback script!

----- Original Message -----
Sent: Monday, July 13, 2009 7:22 PM
Subject: RE: FormToEmail-Pro script - securimage captcha


Hi Charles,

I found that the initial issue was related to the gd library not being
enabled. Now I am having a separate issue where the image shows but no
characters (letters or numbers) show. Just two curvy lines.
I googled and found one instance that the person had the same issue but
the proposed solution didn't apply (verifying if $use_gd_font was
enabled).
I am a total loss.
This is an intranet site and php has just been installed. It might be
related to a library not being enabled or something of the kind but I
can't really tell as I am no php expert.
I appreciate your help with this issue.


Thank you,

-----Original Message-----
Sent: Monday, July 13, 2009 2:05 PM
Subject: Re: FormToEmail-Pro script - securimage captcha

Hi

Thank you for your purchase.

If you do everything, as per the instructions, it should work.

Usually a problem is associated with the /securimage files and directory
being in the wrong place. The /securimage directory needs to be
relative to the directory that the form is in.

so....

If the form page is:

example.com/contact.htm

The securimage directory should be here:

example.com/securimage

...if the form is here:

example.com/forms/contact.htm

The securimage directory should be here:

example.com/forms/securimage

If you are still having a problem, give me the URL of your form page,
and attach your form page file and your edited script. I will have a
look at them.

Any questions, just let me know.

Best wishes.

Charles Sweeney
https://formtoemail.com
The world's easiest feedback script!

----- Original Message -----
Sent: Monday, July 13, 2009 4:03 PM
Subject: FormToEmail script


> Comments: Hi,
>
> We purchased FormToEmail Pro Multiple license and I am trying to set
it
> up using the securimage captcha.
> I followed all the instructions, downloaded all the associated files,
> placed the securimage folder at root level as described and the form
> itself sends fine without the captcha enabled but when I enable
captcha
> and add the securimage lines to the form the captcha image won't show.
> How can I fix this?
> Any help is appreciated,