thinkphp error after setting the App_debug constant to False

Source: Internet
Author: User

thinkphp The following issue occurs after setting the App_debug constant to false :
Parse error:syntax error, unexpected t_string in \www\runtime\~app.php on line 1
or directly report "Server error", what should I do?


This has something to do with PHP, modify the configuration in php.ini Short_open_tag = on


Because the build method inside the app.class.php:
When debug mode is turned on, the contents of the relevant file are retrieved and then re-assembled into a file, which automatically adds <?php and?>.
That's the ~app.php file you saw.
However, when you do not turn on debug mode, the relevant files will be loaded every time, this way, your error will be exposed.

;

thinkphp error after setting the App_debug constant to False

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.