Home > Backend Development > PHP Tutorial > ucenter communication failed and Discuz's avatar cannot be displayed

ucenter communication failed and Discuz's avatar cannot be displayed

WBOY
Release: 2016-08-08 09:19:51
Original
1460 people have browsed it

If it is some small style pictures of the Discuz forum, you only need to upgrade the forum of the Discuz forum or directly replace the first domain name of the css of the entire site, for example, change everything starting with 127.0.0.1:8080/.. to 127.0 .0.1:8081/..

However, in fact, Discuz’s avatar cannot be displayed except for the loss of the picture of the avatar itself. One possible reason is that Discuz fails to communicate with ucenter. As a result, ucenter cannot manage Discuz user information.

If your ucenter is not installed elsewhere,

First enter http://127.0.0.1:8081/discuz/uc_server/ and enter the backend through the founder’s password, http://127.0.0.1: 8081/discuz/ is my domain name + project name

Enter the application management, you can find that Discuz! Board communication failed, edit it.

At the same time, open conf/config_ucenter.php in the Discuz directory, check whether the main application URL in UCenter is filled in correctly, and fill in the IP address of Discuz for the application IP. As shown in the figure below, the key check is whether the communication key in UCenter matches the UC_KEY in line 15 of conf/config_ucenter.php. If not, copy the UC_KEY in line 15 of conf/config_ucenter.php to the user management center of UCenter, save and exit. .


At the same time, as shown below, return to the forum http://127.0.0.1:8081/discuz, log in with the super administrator account, go directly to the tools under the management panel in the background->Update cache, OK , exit, update the web page, everything is normal.

Copyright Statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.

The above introduces the ucenter communication failure and the inability to display the Discuz avatar, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template