DISCUZ and UCenter are synchronized online and offline, but communication fails when they are moved online ...... -Php Tutorial

Source: Internet
Author: User
DISCUZ and UCenter are synchronized online and offline, but communication fails when they are moved online ...... Synchronization is successful online:



However, communication fails as soon as it is passed online ......



The database should have been completely imported, with no omissions


The KEY and ID have been determined to be consistent, and a KEY has been changed ......

Source code of config. inc. php in the main site (www:

    


Reply to discussion (solution)

Check whether the cache is used. The ucenter seems to have a DB configuration, or the configuration is not modified.

View the apps under \ uc_server \ data \ cache. back up the php file and delete it. log on to the PHP file. if not, manually modify the file. it seems that the apps are available on both the main site and the communication site. php. Take a look.

View the apps under \ uc_server \ data \ cache. back up the php file and delete it. log on to the PHP file. if not, manually modify the file. it seems that the apps are available on both the main site and the communication site. php. Take a look.



I have read \ uc_server \ data \ cache and there is no such file as apps. php ..
But it is found in uc_client \ data \ cache, which is a fish of the internet ...... It is still a local IP address. After I change it to a domain name and upload it, the communication still fails ......

Check whether the cache is used. The ucenter seems to have a DB configuration, or the configuration is not modified.



The UCenter cache has been updated in the control panel and is still invalid ......

Help... me... (powerless ..)

Discuz! Failed to communicate with UCenter
Check the following:
1. is the "application URL" correct? can I access the forum.
2. "physical path of the application", which is empty by default. if other problems are ruled out, you can try to enter an absolute path. for example, the root directory is Discuz! Program, the/uc directory is UCenter, so you can enter "../" (without quotation marks) in this item; this method is valid for some hosts.
3. "UCenter access address" in the Discuz background ". If your UCenter access address has changed, modify this item until you can access the UCenter through this address. if not, follow the prompts to use the IP address.
4. whether the "communication key" is consistent. This is generally the main cause of communication failure between the UCenter and Discuz. You can write this key on your own, but ensure that the keys of UCenter and Discuz are consistent.
5. "ID ". Check whether the application ID of the UCenter background is consistent with that of the Discuz background. if not, modify the "UCenter application ID" of the Discuz background ". This is also the main cause of communication failure between UCenter and Discuz.

I used jiasule... However, I read this official post of jiasule:

Http://bbs.jiasule.com/thread-8486-1-1.html

I did not fill in the IP address before, but I did not fill in the IP address yesterday ......

I changed the forum to back-to-source, and the domain name resolution was also changed to the server IP address. it still showed that the communication failed ......

Also .. Does ping blocking on the server affect communication?

I gave the js output on the control \ admin \ app. php page a knife... which one can tell from the output information what's wrong?

I gave the js output on the control \ admin \ app. php page a knife... which one can tell from the output information what's wrong?



define('UC_APPID', '2');


Your appid is incorrect.


I gave the js output on the control \ admin \ app. php page a knife... which one can tell from the output information what's wrong?



define('UC_APPID', '2');


Your appid is incorrect.



The one with appid = 2 is the main station...

The figure above shows that the appid of the Forum is = 1. No problem ......

QAQ for help

Help... try to change define ('UC _ CONNECT ', 'mysql'); to define ('UC _ CONNECT ', '');

Check the code of the communication block, debug the underlying layer, and write the log to record the variable value.
Compare the differences between locally and online printed variables

I have encountered a communication failure, which is in the cache file uc_client/data/cache/apps. php.
When sending a request, dz obtains the information of all applications that are added to the synchronous communication from the cached file. if only the application itself has the information, no notification is sent.
However, it is not updated with the ucenter update, but only the dz information of myself, so no notifications are sent to other systems. no matter how I update dz or ucenter cache, there is no change here, apps from the development system
Of course, you may have different problems. you can take a look.

We recommend that you add the application again online, and copy the UC configuration to the corresponding config to overwrite it.

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.