JavaScript-micro-message Access JS encountered this problem

Source: Internet
Author: User
Warning:fopen (Access_token.json) [function.fopen]: failed to open stream:permission denied in jssdk.php on line 79

Warning:fwrite () expects parameter 1 to BES resource, boolean given in jssdk.php on line 80

Warning:fclose () expects parameter 1 to BES resource, boolean given in jssdk.php on line 81

Warning:fopen (Jsapi_ticket.json) [function.fopen]: failed to open stream:permission denied in jssdk.php on line 56

Warning:fwrite () expects parameter 1 to BES resource, boolean given in jssdk.php on line 57

Warning:fclose () expects parameter 1 to BES resource, boolean given in jssdk.php on line 58

Reply content:

Warning:fopen (Access_token.json) [function.fopen]: failed to open stream:permission denied in jssdk.php on line 79

Warning:fwrite () expects parameter 1 to BES resource, boolean given in jssdk.php on line 80

Warning:fclose () expects parameter 1 to BES resource, boolean given in jssdk.php on line 81

Warning:fopen (Jsapi_ticket.json) [function.fopen]: failed to open stream:permission denied in jssdk.php on line 56

Warning:fwrite () expects parameter 1 to BES resource, boolean given in jssdk.php on line 57

Warning:fclose () expects parameter 1 to BES resource, boolean given in jssdk.php on line 58

Under what circumstances. If it is a Linux environment, it will open the read and write permissions of Access_token.json and Jsapi_ticket.json.

Don't tell me you're using the SAE. The SAE does not support local write permissions and has to modify the code.
You can store access tokens inside the memcache of the SAE.

If it is a different system, please open the Write permission.

This is the reason for the SAE as a test environment, and today I have just met. The SAE does not have read and write access to the file.
My condolences

  • 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.