This article to give your classmates about Ucenter integration, communication failure, debugging test troubleshooting methods, I hope this method for you to help the reunion Oh.
The failure is due to an error in your application's api/uc.php. For example, Ucenter rules. Only uc.php This file returns 1 normally, the communication succeeds. But if you return a SQL error. Instead of 1, it must be a failure. How to test it?
The code is as follows |
Copy Code |
Include_once "config/config_global.php"; Include_once "config/config_ucenter.php"; Include_once "uc_client/client.php"; Echo Uc_user_synlogin (2); 1 ID for the user ?>
|
The above code is saved as a test.php file. Put it in the root directory of your DZ forum or ucenter and use the domain name directly. com/test.php See what the error is. Of course. uc.php file
error_reporting (0); This sentence is commented out at the end. Errors are displayed more clearly. After the error has been found. This sentence must be added. Otherwise, the communication may fail.
http://www.bkjia.com/PHPjc/633168.html www.bkjia.com true http://www.bkjia.com/PHPjc/633168.html techarticle This article to give your classmates about Ucenter integration, communication failure, debugging test troubleshooting methods, I hope this method for you to help the reunion Oh. The failure is due to your application's ...