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.
Hi Max,
I don't manage to find the file: can u post the link plz ?
Thanks a lot
Guillaume
i cannot find the fix either
i see where you discuss it but do not see a clear fix
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.
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
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.
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.
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.
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
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.
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.
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
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
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
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
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.
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
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.
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?
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.
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
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.
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.
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.
The form is inserted into an article (loadposition) using the ChronoForms module.
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.
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.
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
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.
has anything been resolved with this, I need to use verification within a module position
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
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?
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.
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
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.
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.
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
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
Hi techdiva02,
Do you have the Anti-Spam check enabled on the Anti-Spam tab?
Bob
I changed the spam message to "No" and it works. Thank you!!