Solution:
1. Check the domain name configuration and other information in the system.php file in the \caches\configs directory of the site root directory;
2. Check the domain name configuration and other information in the system.php file in the site root directory \phpsso_server\caches\configs directory;
3. Some users have local communication failure, check C:\WINDOWS\ system32\drivers\etc\hosts file, if you use the localhost domain name to access, whether the machine is bound to 127.0.0.1 localhost (remove the # in front of # 127.0.0.1 localhost);
4. Check Check whether the access address of phpsso is correct, and then check whether the application id, interface address, encryption key, version number in Settings->phpsso Settings and the corresponding options in phpsso->Application Management->Edit Application are consistent;
Here is the application ID (the default is 1, if you delete and then add it, it will become something else)
Here you can see the communication key ("Application Address" is the domain name of your website, note that there is a "/" at the end; the communication file is api.php?op=phpsso)
Compare the application ID and encryption key in the above two pictures with the parameters in the phpsso configuration (careful friends look at the "Interface Address" here, there is no "/" at the end, and it is better than the official one The phpcms v9 user manual has an additional directory address "phpsso_server")
Recommended tutorial: phpcms tutorial
The above is the detailed content of Solution to communication failure between phpcms and phpsso. For more information, please follow other related articles on the PHP Chinese website!