After migrating the server today, the front desk can be displayed and called normally, and the backend shows a 500 error when logging in, generally In this case, you have to check the core jump file. After checking, it is found that the login.php file is not called. Because the login.php file cannot be found, it proves that there is a syntax error in this file.
Open the server error message and find that Fatal error: Call-time pass-by-reference has been removed
After searching for information, I found that my original server environment was version 5.2, and I upgraded to version 5.2 after changing the server. Version 5.4, so a parameter passing error occurred.
Fatal error: Call-time pass-by-reference has been removed
When PHP is upgraded to 5.5, it will appear during program execution. The following error message is
Fatal error:Call-time pass-by-reference has been removed,
means that the new version no longer allows the use of references when calling functions, such as getFormMethod(& $method),
is no longer allowed. You can write
when defining the function. function getFormMethod(&$method){},
when calling.
getFormMethod($method);