Page 1 of 1

NMS and CAPTCHA not working

Posted: Wed Jan 22, 2014 5:18 pm
by konsument
Hi there,

Ive a problem that the captcha doesnt work with my NMS registration template. It keeps telling me "The text entered did not match the text in the captcha image". But its definitely the exact letters! No matter which captcha-option Im using.

Even if I remove the captcha option from the template it keeps telling "The text entered did not match the text in the captcha image"

Got the same issue with the standard-template of NMS.

Any ideas why?

Edit: Using CMSMS 1.11.6, NMS 2.7.4, CAPTCHA 0.4.6

Re: NMS and CAPTCHA not working

Posted: Wed Jan 22, 2014 6:16 pm
by Dr.CSS
Where exactly are you putting the captcha..?

Re: NMS and CAPTCHA not working

Posted: Wed Jan 22, 2014 6:34 pm
by JohnnyB
Make sure the /tmp/ directories are writable otherwise captcha won't be able to set temp data needed.

Also, try completely uninstalling and removing Captcha from the CMS and reinstall.

Re: NMS and CAPTCHA not working

Posted: Thu Jan 23, 2014 3:38 pm
by konsument
All tmp dirs have 777 (tmp, tmp/templates_c, tmp/cache)

Tried to reinstall captcha, cleared site cache after installation - still same problem.

Heres my registration-template:

Code: Select all

<div class="newsletterWrapper">
<div class="newsletterMain">
<h3>Join our mailing list</h3>
and receive all the latest info!<br /><br />
	{if $message ne ""}
	<span class="nms_message">{$message}</span><br /><br />
	{/if}
	{$formstart}
		{$formhidden}
<input type="hidden" name="mact" value="NMS,md4e46,do_create_new_user,1" />
<input type="hidden" name="md4e46returnid" value="75" />
<input type="hidden" name="page" value="75" />
        {if $prompt_email ne ""}<span class="label">E-Mail:</span>{$email}{/if}
{if isset($captcha)}
<div id="captchaWrapper">
<p>Please enter the letters from the image beneath:</p>
<p>{$captcha}</p>
        <span class="label">Captcha-Code:</span><input id="captcha" name="{$actionid}captcha" size="10" maxlength="10"/>
</div>
{/if}
{$submitbtn}
	{$formend}
</div>
</div>

Re: NMS and CAPTCHA not working

Posted: Thu Jan 23, 2014 3:56 pm
by JohnnyB
Try using the following inside of your config.php file to get some debug info.

Code: Select all

$config['debug'] = true;
$config['debug_to_log'] = true;
This will print debug statements on the frontend and backend that may reveal a supressed error message. And debug_to_log writes a log file in the /tmp/cache directory.

Also check the Admin Log in case something is there. And look on the server where CMSMS is installed and inside of the admin directory to see if there is an error_log with more information.