近期常常有會員升級或者搬家後再登入或者退出 UCenter Home 的時候會有 404 的錯誤,如下圖所示

問題分析:
這個一般是由於 UCenter Home 的 config.php 檔案中 UCenter 的 ip 填寫錯誤或者 UCenter Home 的應用 id 與 UCenter 後臺的不對應造成的。
檢查步驟:
1 、登入 UCenter 後臺 => 應用管理 => 開啟 UCenter Home 的應用 => 點選編輯,如下圖所示:

這裡可以看到 UCenter Home 的應用 id 為 1 。
然後開啟 UCenter Home 的 config.php 檔案,如下圖所示:

這裡的
define('UC_APPID', '1');
- define('UC_APPID', '1');
要和上面 UCenter 中看到的 ID 一致。
2 、檢查 UCenter Home 的 config.php 檔案中 UCenter 的 ip 是否填寫正確。
如下圖所示:

這裡的
define('UC_IP', '61.129.45.177');
- define('UC_IP', '61.129.45.177');
一定要填寫 UCenter 的真實 IP 地址。
有些站點由於搬家,這裡的 IP 地址可能填的還是舊伺服器上的 IP 地址,所以這裡注意一定要改為新伺服器的 IP 地址。
3 、登入 UCenter 後臺,編輯 UCenter Home 這個應用,將裡面最下面的應用的 UCenter 配置資訊: 複製一份,將 UCenter Home 的 config.php 裡面的對應資訊替換下。
如下圖所示:

複製綠色區域的所有內容,將 UCenter Home 的 config.php 裡面的對應資訊替換下。即替換如下圖所示的內容。
