| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 4804|Reply: 4
Collapse the left

[Suggestion] 建议让运行出错信息不显示绝对路径

[Copy link]
Post time: 2018-07-06 11:02
| Show all posts |Read mode
本帖最后由 AlanJia2017 于 2018-7-6 11:10 编辑

看到别人的网站运行出错不会显示绝对路径,而我的网站只显示了完整的安装路径信息。

这个提示页面是否可以修改或者屏蔽呢?
我在官方论坛看到这样一条关于这个问题的帖子:
http://www.discuz.net/thread-512152-1-1.html

个人觉得应该可以有个配置或者对外屏蔽掉这个运行出错信息的页面。只写入错误日志里面就行了。
errorlog.php

看了下,这个页面似乎是在这个php文件里面控制显示的。
  1. source\class\discuz\discuz_error.php
Copy the Code

This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

 Russia

Post time: 2018-07-13 20:09
| Show all posts
Try this:
admin.php -> Admins -> Database -> Run query
Enter the SQL query:
repair table pre_security_failedlog

then press [Submit]

 Russia

Post time: 2018-07-13 22:06
| Show all posts
I have understood!
Plugin "security" does not work anymore!!
Just remove it!
And all the obsolete cloud plugins too!
Use the script "clearcloud.php" from the /utility/ folder.


 Author| Post time: 2018-07-16 12:34
| Show all posts
vot 2018-7-13 22:06
I have understood!
Plugin "security" does not work anymore!!
Just remove it!

Not about this,not only the cloud service。 I mean that there should be a settings to prevent show error details to everyone。Instead of this current way,write the error details info into the file:/data/log/yyyydd_errorlog.php



 Russia

Post time: 2018-07-16 19:56
| Show all posts
Because of the existent exception catching mechanism in PHP I can not realise your wishes.
Tere are only 2 possibilities:
1) Disable to show error messages. In this case you will have no error messages in the browser and in the errorlog file.
2) Enable to show error messages. In this case you will have error messages in the browser and in the errorlog file.

If you know another solution for your problem, just tell me please
You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-11-22 04:32 GMT+3 , Processed in 0.046452 sec., 8 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list