Wrong verification code

Please post any ChronoForms bugs you found here

Wrong verification code

Postby stephenfoster on Wed Jun 27, 2007 10:18 pm

Unfortunately have problem with the image verification code, always says Sorry you've entered wrong verification code, even though correct case sensitive code has been put in. im using latest chrono form version. Tried with and without mambot. Any suggestions, im using version joomla 1.01.10. thanks in advance.
stephenfoster
Fresh Boarder
 
Posts: 9
Joined: Tue Jun 26, 2007 10:43 am

Re:Wrong verification code

Postby stephenfoster on Thu Jun 28, 2007 5:21 pm

Found out that the session variable is not getting stored from the /administrator/components/com_chronocontact/chrono_verification.php file when it draws the image.Probably server related, I can store session varables directly in the main code com_chronocontact.php and html. Any hack/mod to get around this?
stephenfoster
Fresh Boarder
 
Posts: 9
Joined: Tue Jun 26, 2007 10:43 am

Re:Wrong verification code

Postby GreyHead on Thu Jun 28, 2007 5:45 pm

I had a similar problem with the SecurityImages extension and found this hack which went into the code checker page. I don't know if it works with ChronoForms and it needs to be modified to use the ChronoForms session name.
Code: Select all
   //should fix problems that
   //occur when you're using a script on your Joomla! site that has started a session
   //with a different session name than "md5($mosConfig_live_site)" before Security Images
   //can do that (= SMF bridge, VirtueMart and many others).
   //The checker code is affected by such problems, not the image generation code.
   //So the checker code must check for an opened session with a different session
   //name, stop that session and start a new one. EASY!
   if (empty ($_SESSION))
   {
      session_name(md5($mosConfig_live_site));
      session_start();
   }
   elseif (session_name() != md5($mosConfig_live_site))
   {
      $old_session = session_name();
      session_write_close();

      session_name(md5($mosConfig_live_site));
      session_start();
   }


Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3253
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Wrong verification code

Postby stephenfoster on Fri Jun 29, 2007 4:13 pm

Didit solve the problem unfornunately. Tried to set and detect the session name using your code and session was empty when verification code file ran, so code used the new session name. When chronoforms.php file ran the new session that was set in verification script did not exist.
stephenfoster
Fresh Boarder
 
Posts: 9
Joined: Tue Jun 26, 2007 10:43 am

Re:Wrong verification code

Postby GreyHead on Fri Jun 29, 2007 8:31 pm

Hi Stephen,

Hmmm sorry, don't know much about sessions. I'd have to blunder around in the dark using trial and error. Perhaps Max has an idea?

Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3253
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Wrong verification code

Postby admin on Sat Jun 30, 2007 8:12 am

Hi, do you try this on your machine or a live server ? does your template file contains any session_start(); statements ?

Max
ChronoForms Developer Thanks for using ChronoForms.
If you have any problems with ChronoForms please tell us.
If you like ChronoForms please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
User avatar
admin
Platinum Boarder
 
Posts: 2313
Joined: Mon Aug 14, 2006 5:29 am

Re:Wrong verification code

Postby stephenfoster on Sat Jun 30, 2007 9:54 pm

Hi the programme is on a live server and no sessions are run in template file. All sessions get emptied just before and after verification file runs. I am running on a php live server with safe mode on, would that cause problem with sessions? I have tested it on another server setup without safe mode and your code works fine.
If the program called the verification as a function it may then work.
Thanks for everyones suggestions.<br><br>Post edited by: stephenfoster, at: 2007/06/30 17:56
stephenfoster
Fresh Boarder
 
Posts: 9
Joined: Tue Jun 26, 2007 10:43 am

Re:Wrong verification code

Postby admin on Sun Jul 01, 2007 12:42 am

Hi Stephen,

first, its not a joomla recommend to have safe mode ON but lets try this and see if they will help solving it :

#1 - try to add this line at the top of the verification file :

Code: Select all
defined( '_VALID_MOS' ) or die( 'Restricted access' );


#2- comment line : session_start(); at the verification file.

Please let me know what happens

Cheers

Max
ChronoForms Developer Thanks for using ChronoForms.
If you have any problems with ChronoForms please tell us.
If you like ChronoForms please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
User avatar
admin
Platinum Boarder
 
Posts: 2313
Joined: Mon Aug 14, 2006 5:29 am

Re:Wrong verification code

Postby stephenfoster on Mon Jul 02, 2007 6:25 pm

The defined( '_VALID_MOS' ) or die( 'Restricted access' ); stops the verification file displaying. Commenting out the session_start(); didt solve it either :(
stephenfoster
Fresh Boarder
 
Posts: 9
Joined: Tue Jun 26, 2007 10:43 am

Re:Wrong verification code

Postby stephenfoster on Thu Jul 05, 2007 5:51 pm

Finally solved the problem and thought id share incase anyone else has similar issue.

Removing session save path from Joomla configuration.php solved the problem.

Is there any chance the verification file could check to see if a there has been a session folder specified in Joomla config and save the verification session varibles to that folder instead of the master php session folder?

Many thanks for great form component which I have now purchased.
stephenfoster
Fresh Boarder
 
Posts: 9
Joined: Tue Jun 26, 2007 10:43 am

Re:Wrong verification code

Postby admin on Thu Jul 05, 2007 5:58 pm

Thanks Stephen, I will try to put this at the new version to be released in a few hours, if not then it will be at the next one.

Cheers

Max
ChronoForms Developer Thanks for using ChronoForms.
If you have any problems with ChronoForms please tell us.
If you like ChronoForms please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
User avatar
admin
Platinum Boarder
 
Posts: 2313
Joined: Mon Aug 14, 2006 5:29 am

Re:Wrong verification code

Postby ccondo on Wed Sep 12, 2007 11:03 pm

Any word if this was ever solved?
I have this issue and dont see the session option in the configuration.php file.

I am running 2.3 on joomla 1.5 rc2
ccondo
Fresh Boarder
 
Posts: 13
Joined: Mon Sep 10, 2007 5:53 pm

Re:Wrong verification code

Postby GreyHead on Wed Sep 12, 2007 11:14 pm

Hi ccondo,

I did a file diff on 2.3 RC1 when it came out and, from what I remember, the paths issue was fixed but nothing changed on sessions.

Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3253
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Wrong verification code

Postby admin on Wed Sep 12, 2007 11:59 pm

Hi ccondo,

At your joomla Config, do you have anything in the session save path field ?

Cheers

Max
ChronoForms Developer Thanks for using ChronoForms.
If you have any problems with ChronoForms please tell us.
If you like ChronoForms please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
User avatar
admin
Platinum Boarder
 
Posts: 2313
Joined: Mon Aug 14, 2006 5:29 am

Re:Wrong verification code

Postby ccondo on Thu Sep 13, 2007 12:18 am

You are refering to configuration.php in the root of joomla right?

The only line that says anything about session is:
var $session_handler = 'database';
ccondo
Fresh Boarder
 
Posts: 13
Joined: Mon Sep 10, 2007 5:53 pm

Next

Return to ChronoForms Bugs

Who is online

Users browsing this forum: cjmicro, Yahoo [Bot] and 1 guest

cron