我有这个代码来抑制所有的错误。出现错误时出现空白页,如何用自定义页替换此空白页?
php_flag log_errors on
php_value error_log PHPerrors.log
## prevent access to PHP error log ##
<Files PHPerrors.log>
Order allow,deny
Deny from all
Satisfy All
</Files>
## supress php errors ##
php_flag display_startup_errors off
php_flag d
首先,我的网页返回空白白屏幕,在将error_reporting(E_ALL);添加到index.php后出现错误:
A PHP Error was encountered
Severity: Notice
Message: Only variable references should be returned by reference
Filename: core/Common.php
Line Number: 257
然后,使用这个,更改第257行的system/core/common.php文件。但改变后,我的网络又回到了空白屏幕。
请帮我解决这个问题..。
我的index.ph
我已经在Ubuntu 32位中进行了配置,当我在LAMP环境中运行PHP项目时,它给出了以下错误:
Fatal error: SourceGuardian Loader - Protected script header checksum error. The file has been modified. Install the original unmodified file or contact the script author to get the original file. Error code [17] in /var/www/projectname/index.php on
问题1是为什么我所有的2个项目都是空白的?当我看到我的控制台时,上面写着500错误。网络是空白的。
问题2是我的日志错误。
我的两个项目正在进行中
Operating system is :Windows server,
Web server: Apache 2.4.33
Web framework: Laravel
Php version 7.1.16
问题是它在一天中变成一到两次空白。没有错误信息,没有屏幕,只有白色空白。我试着从storage/logs/laravel.log上看到它,它说。
No application encryption key has been spe