After the server was migrated today, the front desk can be displayed and called normally. When logging in, a 500 error is displayed in the backend. Generally, in this case, the core jump file must be checked. After checking, it is found that the login.php file is not called. Because the login.php file is not called. If the login.php file is not found, it proves that there is a syntax error in this file. Open the server error message and find. Fatal error: Call-time
After the server was migrated today, the front desk can be displayed and called normally. When logging in, a 500 error is displayed in the backend. Generally, in this case, the core jump file must be checked. After checking, it is found that the login.php file is not called. Because the login.php file is not called. If the login.php file is not 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);