Recently, a project on hand needs to integrate ucenter with discuz and uchome, and use the same user data for Synchronous login and registration.
I have never used ucenter before. The first time I came into contact, it was not difficult to read the tutorials on the official website. So I started to download discuz! 7.2_full, installation, no difficulty. Then download the ucenter
Home 2.0 is also installed. ucenter home is added to ucenter, And the URL is used for installation. The communication is successful and synchronization is implemented easily. Next, add your application to the ucenter, and press
Use custom installation as instructed in the tutorial to discover communication failure.
Because it was the first time to use ucenter and I didn't understand what the problem was, I searched the world for relevant information and found no reason for countless experiments. In desperation, I finally found the answer through the documentation on the official website. It turns out that there is no answer on the Internet, but the mistake I made is too small ......
The following is a summary of the ucenter add new application Tutorial:
1. Make sure that the new application root directory you want to add contains the uc_client folder and its client. php. If not, directly copy the file under the discuz or uchome root directory.
2. Make sure that the new application root directory you want to add contains config. inc. PHP, and make sure that the configuration parameters are consistent with the automatically generated parameters after you add the new application, or directly copy the automatically generated part
3. Make sure that the new application root directory you want to add contains APIs/UC. php. If not, copy one
4. Check whether the file path of include or require in the API/UC. php file is correct.
After completing the above steps, there is basically no problem. If there is a problem, it is probably not a problem.
Lessons learned from blood, write this article to keep in mind ~
Go to http://blog.163.com/?email protected]/blog/static/1398240612010101855623646/