verification message will not go away

Please post any ChronoForms bugs you found here

Re: verification message will not go away

Postby guitoun » Wed Dec 10, 2008 11:34 am

Hi Max,

You can test live here: http://joomlatest.hiezone.com

The contact form is the "CONTACT" item of my menu.

Thanks for your help
Guillaume
guitoun
Fresh Boarder
 
Posts: 10
Joined: Sun Dec 07, 2008 4:17 pm

Re: verification message will not go away

Postby GreyHead » Wed Dec 10, 2008 11:56 am

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
Bob Janes : ChronoForms Support

Tell us how we are doing - the Chrono Satisfaction Survey

If you'd like to buy me a beer - then thank you very much :-)
User avatar
GreyHead
Administrator
Administrator
 
Posts: 31952
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re: verification message will not go away

Postby guitoun » Wed Dec 10, 2008 12:57 pm

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 :D

Guillaume
guitoun
Fresh Boarder
 
Posts: 10
Joined: Sun Dec 07, 2008 4:17 pm

Re: verification message will not go away

Postby GreyHead » Wed Dec 10, 2008 1:26 pm

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
Bob Janes : ChronoForms Support

Tell us how we are doing - the Chrono Satisfaction Survey

If you'd like to buy me a beer - then thank you very much :-)
User avatar
GreyHead
Administrator
Administrator
 
Posts: 31952
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re: verification message will not go away

Postby guitoun » Wed Dec 10, 2008 1:40 pm

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
guitoun
Fresh Boarder
 
Posts: 10
Joined: Sun Dec 07, 2008 4:17 pm

Re: verification message will not go away

Postby admin » Wed Dec 10, 2008 9:34 pm

Hi Guillaume,

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

Max
ChronoForms/ChronoConnectivity/ChronoComments/ChronoForums Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want to have a full data management application ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
Want a Joomla forums extension similar to phpBB ? try ChronoForums
User avatar
admin
Administrator
Administrator
 
Posts: 9254
Joined: Mon Aug 14, 2006 5:29 am

Re: verification message will not go away

Postby guitoun » Thu Dec 11, 2008 8:31 am

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
guitoun
Fresh Boarder
 
Posts: 10
Joined: Sun Dec 07, 2008 4:17 pm

Re: verification message will not go away

Postby admin » Fri Dec 12, 2008 12:37 am

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
ChronoForms/ChronoConnectivity/ChronoComments/ChronoForums Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want to have a full data management application ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
Want a Joomla forums extension similar to phpBB ? try ChronoForums
User avatar
admin
Administrator
Administrator
 
Posts: 9254
Joined: Mon Aug 14, 2006 5:29 am

Re: verification message will not go away

Postby webzep » Sun Dec 14, 2008 6:23 am

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?
webzep
Fresh Boarder
 
Posts: 4
Joined: Sun Dec 14, 2008 5:55 am

Re: verification message will not go away

Postby admin » Sun Dec 14, 2008 9:45 pm

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
ChronoForms/ChronoConnectivity/ChronoComments/ChronoForums Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want to have a full data management application ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
Want a Joomla forums extension similar to phpBB ? try ChronoForums
User avatar
admin
Administrator
Administrator
 
Posts: 9254
Joined: Mon Aug 14, 2006 5:29 am

Re: verification message will not go away

Postby neillo » Thu Dec 18, 2008 1:17 am

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
neillo
Fresh Boarder
 
Posts: 1
Joined: Thu Dec 18, 2008 1:09 am

Re: verification message will not go away

Postby admin » Thu Dec 18, 2008 2:06 pm

Hi Neill,

Thanks for sharing this but the piece (JRequest::getVar('cf_wrong_security_code') == 1) will check to see if the variable
Code: Select all
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
ChronoForms/ChronoConnectivity/ChronoComments/ChronoForums Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want to have a full data management application ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
Want a Joomla forums extension similar to phpBB ? try ChronoForums
User avatar
admin
Administrator
Administrator
 
Posts: 9254
Joined: Mon Aug 14, 2006 5:29 am

Re: verification message will not go away

Postby webzep » Thu Dec 18, 2008 7:57 pm

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.
Attachments
chronocontact.txt
(20.99 KiB) Downloaded 206 times
chronocontact.html.txt
(16.49 KiB) Downloaded 193 times
webzep
Fresh Boarder
 
Posts: 4
Joined: Sun Dec 14, 2008 5:55 am

Re: verification message will not go away

Postby admin » Fri Dec 19, 2008 3:51 am

webzep, you are testing this in the form page or article page wit ha form inside or a module ?

Regards
Max
ChronoForms/ChronoConnectivity/ChronoComments/ChronoForums Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want to have a full data management application ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
Want a Joomla forums extension similar to phpBB ? try ChronoForums
User avatar
admin
Administrator
Administrator
 
Posts: 9254
Joined: Mon Aug 14, 2006 5:29 am

Re: verification message will not go away

Postby webzep » Fri Dec 19, 2008 4:01 am

The form is inserted into an article (loadposition) using the ChronoForms module.
webzep
Fresh Boarder
 
Posts: 4
Joined: Sun Dec 14, 2008 5:55 am

PreviousNext

Return to ChronoForms Bugs

Who is online

Users browsing this forum: No registered users and 7 guests

 

Who is online

In total there are 7 users online :: 0 registered, 0 hidden and 7 guests (based on users active over the past 15 minutes)
Most users ever online was 441 on Sat Jul 14, 2012 10:55 am

Users browsing this forum: No registered users and 7 guests

Current time

It is currently Wed May 22, 2013 12:21 pm