Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

设置guestup_path后未登录访问该目录有警告提示 #52

Closed
cqsn558 opened this issue May 5, 2020 · 2 comments
Closed

设置guestup_path后未登录访问该目录有警告提示 #52

cqsn558 opened this issue May 5, 2020 · 2 comments

Comments

@cqsn558
Copy link

cqsn558 commented May 5, 2020

在后台guestup_path设置了一个目录,如果在未登录的情况下进入该设置的目录会在页面顶部提示:
Warning: Invalid argument supplied for foreach() in D:\common.php on line 1564
Warning: Invalid argument supplied for foreach() in D:\common.php on line 1583
如果登录后再进入这个目录就没有提示。
common.php文件中以上两行代码相同:
foreach ($files['children'] as $file) {

@qkqpttgf
Copy link
Owner

qkqpttgf commented May 5, 2020

你可能是宝塔的受害者?
我觉得你可以调一下php警告等级(报警级别)。
另,D:\ ??

@cqsn558
Copy link
Author

cqsn558 commented May 5, 2020

是用的宝塔,因为我网站没显示过警告,以为是程序有bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants