How to solve the problem of Page Jump Blank in php
How to solve the php page jump blank, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.
Php page jump blank solutions: 1, check and modify the database configuration file; 2, through the "error_reporting (E_ALL);" to view error messages and modify; 3, empty the program cache.
This article operating environment: windows7 system, PHP7.1 version, DELL G3 computer
What if the php page jumps to a blank?
Common Solutions to the Open Blank of PHP website
1. Incorrect database configuration information leads to
Check the database configuration file to see if the database information is wrong, and if the information is wrong, just change it to the correct one. Common open source programs and database configuration files are:
WordPress:wp-config.phpDiscuz: config/config_global.phpconfig/config_ucenter.phpDede (dream weaving): data/common.inc.phpThinkphp: common/convention.phpEcshop: data/config.php
two。 Program errors lead to
You can add error_reporting (E_ALL) at the top of the blank page; then visit the page to see the error message and debug the program according to the prompt
Sample code:
3. Cache issu
Some programs in the cache file is too large will lead to website blank, when this problem occurs, the general website background can still be accessed, log in to the background after emptying the program cache.
Some website programs will generate a static page, and when generated for various reasons, the size of the generated home file index.html is 0kb, there is no content, resulting in access blank. Generally, you can delete the generated index.html and then visit the website to regenerate it.
4. Matters needing attention
When you modify a file, remember to back up the file first to avoid modification errors that cannot be restored.
When modifying database information, be sure to use a dedicated text editor such as notepad++, editplus, etc. Errors caused by coding problems will occur when using notepad
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.