After the upgrade, click the QQ internet logon button and the following error message is displayed. Sorry, there is a network problem or the server is busy. Detailed error: connect_error_code_0, error code:, please try again later. Discuz! The QQ interconnection in X3.1 integrates the interfaces of OAuth1.0 and OAuth2.0. the upgrade script determines that if the server supports ssl, OAuth will be used.
After the upgrade, click the QQ internet logon button and the following error message is displayed.
Sorry, there is a network problem or the server is busy. Detailed error: connect_error_code_0, error code:, please try again later.
Discuz! The QQ interconnection in X3.1 integrates the interfaces of OAuth1.0 and OAuth2.0. the upgrade script determines that if the server supports ssl, the OAuth2.0 interface will be used.
This problem occurs when the site is switched to the OAuth2.0 interface.
Source \ plugin \ manyou \ Service \ Client \ OAuth. php
Public function dfsockopen ($ requestURL, $ queryString = array (), $ files = false ){
Return dfsockopen ($ requestURL, 0, $ queryString, '', false, $ this-> _ apiIp, 15, TRUE ,! $ Files? 'Urlencode': 'formdata', true, 0, $ files );
}
Note that the $ this-> _ apiIp parameter is used for the use of the request url to see where this parameter is defined.
Source \ plugin \ manyou \ Service \ Client \ ConnectOAuth. php
Public function _ construct ($ connectAppId = '', $ connectAppKey ='', $ apiIp = ''){
If (! $ ConnectAppId |! $ ConnectAppKey ){
Global $ _ G;
$ ConnectAppId = $ _ G ['setting'] ['connectappid '];
$ ConnectAppKey = $ _ G ['setting'] ['connectappkey'];
}
$ This-> setAppkey ($ connectAppId, $ connectAppKey );
If (! $ This-> _ appKey |! $ This-> _ appSecret ){
Throw new Exception ('apappid/connectAppKey invalid', _ LINE __);
}
If (! $ ApiIp ){
Global $ _ G;
$ ApiIp = $ _ G ['setting'] ['connect _ api_ip ']? $ _ G ['setting'] ['connect _ api_ip ']: '';
}
If ($ apiIp ){
$ This-> setApiIp ($ apiIp );
}
}
Here we can see that the IP address of the interconnection interface set in the background is used.
Discuz! The IP address of the interconnected interface in the background diagnostic tool is the domain name of the OAuth1.0 interface set, that is, the http://openapi.qzone.qq.com.
The domain name of OAuth2.0 interface is changed to https://graph.qq.com, but the IP address used in the interface is still OAuth1.0, so the request cannot be made, and then the above error is reported.
In the diagnostic tool, remove the configured IP address of the interconnected interface.
Updated on April 9, December 17, 2013:
See Discuz! Many people on the official website reported that the network was busy. the following error was reported when I recorded the log and requested the user's openId. the error should be caused by a problem with the space interface, which will be solved by the official website.
Updated on April 9, December 18, 2013:
Fixed.