Forums

verification message will not go away

mnymkr 05 Dec, 2008
when I use the form in a module position , if i do not enter the correct verification code the error message will carry over to all other forms

let me give you an example

i have a form in a module position for a diamond quotes page

if i enter the incorrect SPAM letters I will get an error message

when I reenter the verification and it redirects to my front page

the message will appear for my front page form even though it is not anti spam

see here

http://www.bostondiamondexchange.com/beta/jewelry-a-diamond-quotes
Max_admin 06 Dec, 2008
Hi mnymkr,

this is a known bug yes, I have posted a fix here some where few days ago, if you can't find it then let me know and I will post it again!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
guitoun 07 Dec, 2008
Hi Max,

I don't manage to find the file: can u post the link plz ?

Thanks a lot

Guillaume
mnymkr 08 Dec, 2008
i cannot find the fix either

i see where you discuss it but do not see a clear fix
Max_admin 08 Dec, 2008
ok guys, here we go!

open components/com_chronocontact/chronocontact.php and find:

if ( md5($chrono_verification ) != $sessionvar ) {


add below it :
JRequest::setVar('cf_wrong_security_code', 1);


save and close!

now open chronocontact.html.php at the same directory and find:
<?php if($session->get('chrono_verification_msg', '', md5('chrono'))){ ?>


make it :
<?php if(($session->get('chrono_verification_msg', '', md5('chrono')))&&(JRequest::getVar('cf_wrong_security_code') == 1)){ ?>


regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
guitoun 08 Dec, 2008
Hi Max and thanks for your time ...

I have made the modifications and it does not work for me.

If the captcha is wrong the message "You have entered an incorrect verification code at the bottom of the form" is submitted (that's correct). If the captcha is good i am redirected and the email is sent. But if click to my contact link 5 seconds later then i still have the "You have entered an incorrect verification code at the bottom of the form". That's weird because the form is empty at that moment...

Another problem: when the captcha is wrong i am not redirected to the same URL. My contact form is at index.php?option=com_content&view=article&id=16&Itemid=19 and i am redirected to index.php?option=com_chronocontact&task=send&chronoformname=Contact
Any way to correct that ?

Tested under IE 7.0 and Firefox 2.0 under Windows Vista.

Thanks again for your help
Guillaume
Max_admin 08 Dec, 2008
Hi Guillaume,

the 2nd issue has no solution at the moment!

regarding the first one, are you testing the "component" page or the form in an article ? please test the pure form page because the fix was for this one, then we can fix the other the same way!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
guitoun 08 Dec, 2008
Hi Max,

Your are right. I was using the form in an article. When i use the component i no longer have the problem.

But now i have a display problem like the one mnymkr explained here:
http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=3&t=11844&p=18722&hilit=%3Cdiv%3E#p18722

See my attached file for a screenshot.

Any way to correct the captcha problem (form in an article) or to correct my template problem ? (i use the rockettheme "Metamorph v2" template) ?

For the link problem i saw that you posted a solution some time ago for the 2.5 version. Any way to get the same fix for the 3.0 ver ?

Thanks again for your time and your advices.
Guillaume
Max_admin 08 Dec, 2008
Hi Guillaume,

for the layout issue, this will need some interaction with the CSS in the form or the css in your template, I think you need to remove the height:auto of the field or something, I'm really not sure, it depends on your template css too, you can try to disable the "load chronoforms files" setting at the general tab ?

the fix I mentioned for the verification code can be remade at plugins/content/chronocontact.php the only difference is that the 2 changes will be at the same file here!

where is the solution for the link problem ?

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
guitoun 09 Dec, 2008
Hi Max,

You were right for the layout issue. I fixed the height value in the css file and the error goes away. Thanks !

I can't manage to find the
if ( md5($chrono_verification ) != $sessionvar ) {
entry in the /plugins/content/chronocontact.php file. It seems easier (to me) to use the plugin/article way to make my contact page looks like ay other page. And under ie6 i have big problems cause the page is totaly messed-up.If that's not too time-consumming can u post the corrections to make to the /plugins/content/chronocontact.php file to correct the issue ? Thanks

For the link problem i am not able to find the forum post anymore. Looks like it was a dream🙂

Thanks again for your time
Guillaume
Max_admin 09 Dec, 2008
Hi, I checked it, you need only the 2nd fix for that file, the first fix is already done at the component files!

let me know!

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
guitoun 09 Dec, 2008
You are the one Max ! It works great now with the article/plugin way ! Thanks

Only one problem left (the redirect link when the captcha is wrong) but i am sure that you are working on it 😀
As a workaround is it possible to redirect to a static link ? I mean "hardcoding" in some file the path to my contact form so i am redirected to the good path ?

Thanks again
Guillaume
Max_admin 09 Dec, 2008
Very good idea!!🙂 but you will lose the submitted data 😑

lets try this, at the same place you added the first fix and after the line you added, paste this code:

function curPageURL() {
 $pageURL = 'http';
 //if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
 $pageURL .= "://";
 if ($_SERVER["SERVER_PORT"] != "80") {
  $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
 } else {
  $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
 }
 return $pageURL;
}


after 2 lines you can find this line:
showform($posted);


add just before it :
$mainframe->redirect(curPageURL());


let me know!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
guitoun 10 Dec, 2008
Hi Max,

No success on this one. If a mistype the captcha i have the following message in IE 7:

Message

* Votre session a expiré, veuillez vous réidentifier

There is no form with this name or may be the form is unpublished, Please check the form and the url and the form management)



(in English the first line will be: your session has expired, please identify yourself)

I have the same message with Firefox 2.0

I post my 2 files (components/com_chronocontact/chronocontact.php and /plugins/content/chronocontact.php) with my reply so you can take a look. I have renamed /plugins/content/chronocontact.php to plugin_chronocontact.php for the upload

Thanks again
Guillaume
Max_admin 10 Dec, 2008
show me the URL of the article page and the URL you are at when you get this error!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 10 Dec, 2008
HI Max, Guillaume,

I just get the message "You are not allowed to access this URL" which normally points to extra <form> tags but I don't see any here. The form code looks perfectly OK and there are no JavaScript errors showing in FireFox.

Bob
guitoun 10 Dec, 2008
Hi Bob,

Thanks for your help.

I have enter some data in the fields and the wrong captcha code i have the "You are not allowed to access this URL"

If i undo the last modififcations i made to the chronocontact.php file the form is re-displayed with the "You have entered an incorrect verification code at the bottom of the form": i assume that is the correct behavior when the captach code is not correct.

But maybe i am wrong. I am a newbie in Joomla/php/css so feel free to correct me 😀

Guillaume
GreyHead 10 Dec, 2008
Hi Guillaume,

Yes, the 'normal' behaviour is for that message to appear in a JavaScript alert box and for the form to be re-displayed when you click OK.

Bob
guitoun 10 Dec, 2008
Hi Bob,

Without any modification made to the files (ChronoForm component and mambot "out of the box") i don't have any Javascript Window when the captcha is wrong. I am only redirected to the empty form page with the "You have entered an incorrect verification code at the bottom of the form" on top. I assume that with the last modifications Max has given to me the behavior should be the same ?

For the moment i have the "You are not allowed to access this URL" message. Without the last modifications i am redirected like i explained just before but with the wrong path (ie index.php?option=com_chronocontact&task=send&chronoformname=Contact instead of index.php?option=com_content&view=article&id=16&Itemid=19
The last modification i made to chronoform.php were intentend to correct that behavior.

Thank you all
Guillaume
Max_admin 10 Dec, 2008
Hi Guillaume,

I just tested now, do you have the hack active or you removed it ?

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
guitoun 11 Dec, 2008
Hi Max,

The hack is active. I have the "You are not allowed to access this URL" message if a type a wrong captcha.

Thanks for your help
Guillaume
Max_admin 12 Dec, 2008
Hi Guillaume,

No idea then, this will need more testing, its better to wait for the next release, I will give it more testing sometime.

or you can play with the code!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
webzep 14 Dec, 2008
Excuse me for jumping in here on this thread but I'm having the same problem with the "You have entered an incorrect verification code at the bottom of the form." message not going away after first incorrectly, then correctly, entering the Captcha code. I made all modifications recommended above by Max on 12/8 to components/com_chronocontact/chronocontact.php, components/com_chronocontact/chronocontact.html.php and plugins/content/chronocontact.php and still no luck.

The form is inserted into an article (loadposition) with the ChronoForms module and works well other than the incorrect verification code message remaining in IE and FF even after correctly entering the Captcha code, seeing the confirmation and receiving the email.

I did notice that if I cleared the cookies in FF the message was removed on refreshing the browser, although not so in IE. Neither closing the website and reopening or clearing the browser cache has any effect in IE or FF.

Is there another fix or hack we can try to correct this problem?
Max_admin 14 Dec, 2008
Hi webzep,

I'm sure my fixes should do it, please try again and make sure you save the files after making the mods ?

let me know!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
neillo 18 Dec, 2008
Hi, thanks for creating chrono-forms, I have been getting nasty spam all through weekends and the captcha is ace.

I have a quick fix for the repeating error / validation message problem above.

Adding to your code above, check to see if there anything is in $_POST coming out of a previous page, if not, no error.

In chronocontact.html.php replace

if($session->get('chrono_verification_msg', '', md5('chrono'))){

with

if(($session->get('chrono_verification_msg', '', md5('chrono')))&&(JRequest::getVar('cf_wrong_security_code') == 1)&&($_POST != '')) { ?>

The extra check &&($_POST != '') to see if there was form output cancels the error message.

Cheers
Neill
Max_admin 18 Dec, 2008
Hi Neill,

Thanks for sharing this but the piece (JRequest::getVar('cf_wrong_security_code') == 1) will check to see if the variable
cf_wrong_security_code
is posted and if not then it will not show the error too, my fix doesn't work in the normal component page ?

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
webzep 18 Dec, 2008
Thanks, everyone, for your attention to this problem. No, Max, your fixes do not seem to be solving the problem immediately in my case. After entering the wrong Captcha code, getting the error message, then submitting the form correctly, then going back to the form pages (same problem with two different forms), the error msg remains in both IE7 and FF3.0.5. Clearing the browser cache and/or reopening the website right away does not help.

I did save the php files, CHMODed all to 755, and have attached copies of the files now on the server to this post (had to change the file extensions since php files are not allowed). BTW, Max, I added JRequest::setVar('cf_wrong_security_code', 1); to components/com_chronocontact/chronocontact.php a second time, as you instructed, even though that line was already there.

I didn't mention in my original post that I'm using sh404SEF with all Joomla SEO settings at Yes. Would that have an effect?

I can live with the problem since the Captcha images are so clear that it's not likely anyone will make a mistake. Also, for whatever reason, when opening the site the next day and navigating to the form pages the error messages are gone. It would be nice, though, to have it solved if you can figure out what's going on.
Max_admin 19 Dec, 2008
webzep, you are testing this in the form page or article page wit ha form inside or a module ?

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
webzep 19 Dec, 2008
The form is inserted into an article (loadposition) using the ChronoForms module.
Max_admin 20 Dec, 2008
We will need to test in the component page first, the link beside the form in the forms management page, if it works then the fix is working and we need to do the fix at modules/mod_chronocontact/helper.php

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
webzep 22 Dec, 2008
OK, Max, thanks for sticking with me. Your assumption was correct. I created a link directly to the form component page (not the article loadposition), tested by entering the wrong Captcha code and got the proper error message. After entering the correct Captcha code, getting the confirmation screen and then returning directly to the form, the error message was gone. I then went over and looked at the same form loaded into the article and the error message was there.

After replacing the line
<?php if($session->get('chrono_verification_msg', '', md5('chrono'))){ ?>
in helper.php with
<?php if(($session->get('chrono_verification_msg', '', md5('chrono')))&&(JRequest::getVar('cf_wrong_security_code') == 1)){ ?>
that resolved the problem.

Thanks very much for your help with this!
elehost 23 Dec, 2008
Hello,

I had the same problem and it was great to find a quick reply to this. I confirm the fix worked for me perfectly.

In my case I edited the file below as I was including the form in a page using the plugin in Joomla 1.5 with the latest version:

/plugins/content/chronocontact.php at line 296

Thanks for the easy fix to this problem.
dixittejas 24 Dec, 2008
Hello Max,
I also face same problem when i used {imageverification} in one of the articke with pther text.
After submit with erong captcha it redirect to option=com_chronocontact in URL, also my page html is weired.

Please give me just detailed step to solve this.

Thanks in Advance.

Regards
Tejas
Max_admin 24 Dec, 2008
Hi Tejas,

the redirection to the form only page issue is unsolvable at the moment! I'm trying to find some way to fix this!

regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
mnymkr 08 Jan, 2009
has anything been resolved with this, I need to use verification within a module position
mnymkr 14 Jan, 2009
oh i am sorry, yes I have tried the hack and it works great but what about the redirection? Can it not stay on the same page?
Max_admin 14 Jan, 2009
Hi mnymkr,

unfortunately no solution is available for this issue yet! but i will have more time to look into this soon!

Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rowby 11 Feb, 2009
HI
Do you have a fix for the Module version? Getting the "You have entered an incorrect verification code at the bottom of the form." in the module version. (Using ChronoForms V3.0 Stable with Joomla 1.5.9"

Thanks

Rowby

Hi Guillaume,

the 2nd issue has no solution at the moment!

regarding the first one, are you testing the "component" page or the form in an article ? please test the pure form page because the fix was for this one, then we can fix the other the same way!

Regards
Max

jacks88 25 Mar, 2009
To try to summarize this for others, I replaced the code mentioned above in both the modules/mod_chronocontact/helper.php and the plugins/content/chronocontact.php files. This fixed all instances of sticky message not going away. When using the form in an article, if you enter a wrong code, it does redirect to the form instead of the article page, but once you reenter the code correctly it reloads the article page correctly (if you have that url set in admin). I can live with that.

EDIT: PROBLEM -Sorry, this fixes the original problem, but creates another. Now, when someone enters the correct code on the first attempt, the form always says you entered the incorrect code whether you did or not. So anyone has to enter a validation code twice any time they use the form.
el patron 02 Jan, 2010
Hi, I am using the form in an article. Whenever I enter the captcha code it says I entered it incorrectly. The error message is always the same: "You have entered an incorrect verification code at the bottom of the form."

1. Should we NOT use imageverification via captch when the form is embedded in an article?
2. If we link directly to the form is imageverification via captcha working ok?

Thanks for understanding my confusion...but it's 2010 and an update seems in order.
GreyHead 03 Jan, 2010
HI el patron,

Please post a link to the form. As far as I know imageverification works OK using the ChronoForms plugin to embed form in an article.

Bob
el patron 03 Jan, 2010
Hi GreyHead,

I copied the problem captcha form but had to remove the captcha for my production form because well..it's in production.🙂

Click http://colombianhouse.com/index.php?option=com_chronocontact&chronoformname=CopyCaptchaFreeTranslationQuote for the copied form. I realize it's not an embed but the problem (just tested it) is that one can never enter the captcha correctly. This was the original problem even though it's called from the plugin. I checked the plugins for the form...and ReCaptcha is green. Anit-Spam is set to yes, w/o fonts, and: GD Version bundled (2.0.34 compatible) FreeType Support Yes PNG Support Yes

So the problem I am having with "You have entered an incorrect verification code at the bottom of the form" even when captcha code entered correctly is for direct link as well as when called from the plugin....

Thanks in advance for your time. if you need logon, just email me...
GreyHead 04 Jan, 2010
Hi el patron,

The ChronoForms ImageVerification and the ReCaptcha Plugin are two quite different and separate Captcha processes. Please use one or the other, do not use both, or parts of each.

Bob
GreyHead 31 Jan, 2012
Hi techdiva02,

Do you have the Anti-Spam check enabled on the Anti-Spam tab?

Bob
techdiva02 01 Feb, 2012
I changed the spam message to "No" and it works. Thank you!!
This topic is locked and no more replies can be posted.