Discuz! X3.1QQ connection prompt connect_error_code_0 solution

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.