No error is reported in ThinkPHP. a blank page is displayed. How can this problem be solved?

Source: Internet
Author: User
Tags blank page
Provides various official and user-released code examples. For code reference, you are welcome to exchange and learn. I am a newbie to ThinkPHP. After configuring according to the manual, an error will be reported when the program fails at the beginning, and no error will be reported later! After several queries, no results were found, and the problem was found several times. The following describes my solution.
I am posting for the first time. I hope the name of T-friends can give more advice and communicate with each other.
The following code is basically available during entry code development. define('APP_PATH','./Application/');
// define('APP_DEBUG', TRUE);
include './ThinkPHP/ThinkPHP.php';
?>
When an error occurs in the program, a blank page is displayed. The first response is: Why?
There are many solutions on the Internet, and some knowledge is essential for beginners of PHP.
========================================================== ====== Add error_reporting (E_ALL) to the first line)In php. ini, find display_errors = Off and change it to display_errors = On.
This method can no longer be used as a foundation, but the blank page of ThinkPHP cannot be reached.
========================================================== ====== Add the following code to the configuration file:
'Show _ PAGE_TRACE '=> true
This method is good and can display all the information during the ThinkPHP program running process, but it is powerless for blank pages.
========================================================== ======
Finally, my solution is: 'Tmpl _ EXCEPTION_FILE '=> 'public: exception', // template file of the Exception pageI configured a template file with an exception page, but the code in the code file on this page is not completely written, resulting in the failure to display PHP errors, so a blank page is displayed.

AD: truly free, domain name + VM + enterprise mailbox = 0 RMB

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.