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

安装完成后登陆后台报错 #4

Open
Y-A-K-E opened this issue Nov 18, 2019 · 2 comments
Open

安装完成后登陆后台报错 #4

Y-A-K-E opened this issue Nov 18, 2019 · 2 comments

Comments

@Y-A-K-E
Copy link

Y-A-K-E commented Nov 18, 2019

未定义数组索引: SERVER_ADDR

index.php/admin/index/index.html
$data['SERVER_ADDR'] = $_SERVER['SERVER_ADDR'] ? $_SERVER['SERVER_ADDR'] : $_SERVER['LOCAL_ADDR'];

php版本:php-7.3.11-Win32-VC15-x64
web服务器是caddy1.x

@Y-A-K-E
Copy link
Author

Y-A-K-E commented Nov 18, 2019

mysql 是8.0.11

@Y-A-K-E
Copy link
Author

Y-A-K-E commented Nov 18, 2019

报错是
D:\web\KiteCMS\application\admin\controller\Index.php
66行

添加一个@能进后台,不过后台那里服务器IP为空

@$data['SERVER_ADDR'] = $_SERVER['SERVER_ADDR'] ? $_SERVER['SERVER_ADDR'] : $_SERVER['LOCAL_ADDR'];

问题不大,不影响使用.

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

1 participant