This topic is locked

Build 353 - login event problem

3/11/2008 12:10:27
PHPRunner General questions
J
jacekq author

I've tried to redirect After successful login as following:

header("Location: email_adresy_list.php");

exit();


PHPR 4.2 has generated event code function in 'include/events.php' with the following declaration:

function AfterSuccessfulLogin($username, $password,&$data)



After giving proper login/pass values PHP generates error:

Fatal error: Cannot pass parameter 3 by reference in C:\Program Files\xampp\htdocs\infotexn\emile\login.php on line 71



The proper line in login.php is:

AfterSuccessfulLogin($pUsername,$pPassword,array());


I think it's the bug.
JaceK

J
Jane 3/11/2008

Jacek,
thank you for pointing me ti this bug.

We'll fix it in the next update.
To make you pages working open C:/Program Files/PHPRunner4.2/source/login.php file, find this code:

if(function_exists("AfterSuccessfulLogin"))

AfterSuccessfulLogin($pUsername,$pPassword,array());



and replace it with this one:

if(function_exists("AfterSuccessfulLogin"))

{

$dummy=array();

AfterSuccessfulLogin($pUsername,$pPassword,$dummy);

}


Then open and rebuild your project.