forum.webdiplomacy.net

webDip dev coordination forum / public access todo list
It is currently Thu Nov 23, 2017 5:25 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Sat Mar 24, 2012 8:25 pm 
Offline

Joined: Thu Jan 14, 2010 7:48 pm
Posts: 87
Ok, I know I shouldn't have this issues any more, but here it is :oops: :

I've changed hosting a couple of days ago. Everything seemd working fine.
But today a new user pointed out a problem with the registration.

Whatever I do with register.php, there is no reaction at all:

I can insert the anti-script code (wrong or right), the email, but when I click on "validate me", nothing happens. The page just reload, without any warning (wrong anti-bot script, wrong email, existing email...). Nothing.

Does someone have a hint? :?


Last edited by alexintour on Sun Mar 25, 2012 10:44 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Registration problem
PostPosted: Sun Mar 25, 2012 5:17 am 
Offline
Site Admin

Joined: Sat Jun 28, 2008 6:24 am
Posts: 892
This rings a bell, in register.php could you find
Code:
if (isset($_REQUEST['imageToken']) && isset($_REQUEST['imageText']) && isset($_REQUEST['emailValidate']) )


and replace it with

Code:
if (isset($_COOKIE['imageToken']) && isset($_REQUEST['imageText']) && isset($_REQUEST['emailValidate']) )


Hopefully that'll be it, it's a bug with certain php.ini configurations which is fixed in the latest code, but I don't think it's in the last posted release.


Top
 Profile  
 
 Post subject: Re: Registration problem
PostPosted: Sun Mar 25, 2012 8:34 am 
Offline

Joined: Thu Jan 14, 2010 7:48 pm
Posts: 87
Thanks, Kestas.

I also have the 1.00 version, so I'll try to get the latst code and see through the last register.php

Anyway, I've changed the line code and at least now I'm getting an error:

Code:
Error triggered: Undefined index: imageToken.

This was probably caused by a software bug. The details of this error have been successfully logged and will be attended to by a developer.


Top
 Profile  
 
 Post subject: Re: Registration problem
PostPosted: Sun Mar 25, 2012 10:00 am 
Offline
Site Admin

Joined: Sat Jun 28, 2008 6:24 am
Posts: 892
Damn, I forgot that line just detects whether the imageToken is present, the line which starts working on it is right below:
Code:
      $imageToken = explode('|', $_REQUEST['imageToken'], 2);


Replace that with:
Code:
      $imageToken = explode('|', $_COOKIE['imageToken'], 2);


Top
 Profile  
 
PostPosted: Sun Mar 25, 2012 10:46 pm 
Offline

Joined: Thu Jan 14, 2010 7:48 pm
Posts: 87
That's it.

Eventually I'm almost sure I would have seen the REQUEST COOKIE difference, but thanks a lot for pointing that out!

Now it works :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group