On uploding 10.3 files to online server it shows error after login, localhost work fine
Fatal error: Uncaught Error: Cannot pass parameter 5 by reference in /home4/xxxxxxxxxxx/public_html/xxxxxxx.xxxxxxxxx.xxx/classes/loginpage.php:713'>xxxxxxx.xxxxxxxxx.xxx/classes/loginpage.php:713 Stack trace: #0 /home4/xxxxxxxxxxx/public_html/xxxxxxx.xxxxxxxxx.xxx/classes/loginpage.php(278)'>xxxxxxx.xxxxxxxxx.xxx/classes/loginpage.php(278): LoginPage->callBeforeLoginEvent() #1 /home4/xxxxxxxxxxx/public_html/xxxxxxx.xxxxxxxxx.xxx/classes/loginpage.php(185)'>xxxxxxx.xxxxxxxxx.xxx/classes/loginpage.php(185): LoginPage->doLoginRoutine() #2 /home4/xxxxxxxxxxx/public_html/xxxxxxx.xxxxxxxxx.xxx/login.php(43): LoginPage->process() #3 {main} thrown in /home4/xxxxxxxxxxx/public_html/xxxxxxx.xxxxxxxxx.xxx/classes/loginpage.php on line 713
Complete build performed and Uploaded all files in output directory, still same error. I have upgraded project from 10.2 to 10.3
Server config:
Server: Localhost via UNIX socket
Server type: Percona Server
Server connection: SSL is not being used Documentation
Server version: 5.6.41-84.1 - Percona Server (GPL), Release 84.1, Revision b308619
Protocol version: 10
User: XXXXXXXXXX@localhost
Server charset: UTF-8 Unicode (utf8)
cpsrvd 11.78.0.41
Database client version: libmysql - 5.1.73
PHP extension: mysqliDocumentation curlDocumentation mbstringDocumentation
PHP version: 7.2.7
My even in Before login was
global $conn;
$sql = "SELECT * FROM login where username = '".$username."'";
$rs = db_query($sql,$conn);
$data = db_fetch_array($rs);
$data["org_id"]=$_SESSION["org_id"];
// Place event code here.
// Use "Add Action" button to add code snippets.
return true;
After removing the above event from before login works fine, But this error only in the server, not in localhost
What will be the issue, Project 10.2 was working fine