The test account configuration failed on WeChat official account because of one character.

Source: Internet
Author: User

The configuration of the Public Account test account fails because of one character.

Development Environment:

1. SAE Sina Cloud Platform

2. PHP Environment

3. I have applied for a public platform development account for testing.

4. A php document downloaded from the official website

5. the token is also the default weixin. (You do not need to change it for the first time. However, if you want to configure it again after the configuration is successful, the token name is weixin. This will change, the first configuration does not need to be changed)

6. Note that the uploaded code in SAE is compressed into zip format and is automatically configured in SAE. If you use SVN to upload the code, it cannot be used at present.

7. after the code is configured, you do not need to make any changes. After Entering http and token on the test platform, the system prompts that the configuration fails (note that the token is invalid on the actual account ), A prompt is displayed, indicating that the token is invalid. The result is the same !!!


The default php code file, the default token, and the default SAE configuration environment finally open the php file in the code management of the SAE and start to have an extra ', which is an awful flaw, after debugging and configuration for one night, I looked for various reasons and said that the returned string is incorrect. Some people said that the source file needs to be changed to a specific one, and some people use out. print or echo outputs a pile of unreadable text...


I am a pure white man... Looking at the past for various reasons, one is not suitable for you... It turned out to be because of the "float" at the beginning of the file "!!! If the configuration fails due to the same reason, please contact us ..


Public platform development, starting with Xiao Bai!

Related Article

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.