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

请求200, 首页显示空白 #3

Closed
zhoushiyang opened this issue Dec 20, 2016 · 13 comments
Closed

请求200, 首页显示空白 #3

zhoushiyang opened this issue Dec 20, 2016 · 13 comments

Comments

@zhoushiyang
Copy link

request 200 OK
but Unable to display index page
index page is blank
what's that?

log info
172.26.1.118 - - [19/Dec/2016:18:21:21 +0800] "GET / HTTP/1.1" 200 5 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36"

@zhoushiyang zhoushiyang changed the title Unable to display index page index page is blank Dec 20, 2016
@zhoushiyang zhoushiyang changed the title index page is blank 请求200, 首页显示空白 Dec 20, 2016
@zhoushiyang
Copy link
Author

切换到工程根目录下执行php index.php /cli/Init/initUserData
没有数据插入到表中,目前整个数据库实例的所有表中均没有数据,是否导致空白的原因,请官方尽快给个答复, 谢谢!

@huangmeng4520
Copy link

我的问题和你一样,在日志里面发现问题了,执行php index.php /cli/Init/initUserData命令时,报错了
ERROR - 2016-12-21 15:23:59 --> Severity: error --> Exception: Call to undefined function mysql_connect() /var/www/system/database/drivers/mysql/mysql_driver.php 136

@huangmeng4520
Copy link

huangmeng4520 commented Dec 21, 2016

@tencent-adm

  1. 本人使用docker搭建环境

/config/development/constants.php 里面的配置已经改成主机访问地址
image

创建数据库,导入sql文件执行数据初始化已经完成

执行 php index.php /cli/Init/initUserData 命令时报错

ERROR - 2016-12-21 15:23:59 --> Severity: error --> Exception: Call to undefined function mysql_connect() /var/www/system/database/drivers/mysql/mysql_driver.php 136

导致访问时主机空白 /account/login?cburl= 默认缺少cbcurl参数

@owenlxu
Copy link
Contributor

owenlxu commented Dec 21, 2016

请按以下顺序配置:
1.建数据库,导入项目中提供的sql文件
2.在db.php中配置数据库访问
3.执行命令

@huangmeng4520
Copy link

就是按照这个顺序执行的,sql已经导入cmdb库,db.php已经配置。执行命令时日志就报错,我用的php是7.0.2版本。

1 similar comment
@huangmeng4520
Copy link

就是按照这个顺序执行的,sql已经导入cmdb库,db.php已经配置。执行命令时日志就报错,我用的php是7.0.2版本。

@vipsql
Copy link

vipsql commented Dec 22, 2016

同样的问题

@owenlxu
Copy link
Contributor

owenlxu commented Dec 22, 2016

也都是php7 执行命令报错吗?

@raindylong
Copy link

一样的梗,php7.0缺省已经不支持老版本的"mysql"扩展了,php7以后都是推荐直接用pdo_mysql了。

@owenlxu
Copy link
Contributor

owenlxu commented Dec 26, 2016

可以直接切换
'dbdriver' => 'mysql',
修改下php下的驱动吧

@gavindev
Copy link
Contributor

空白页还有一种可能是$config['sess_save_path'] 指定的路径不能写,可以指定为

$config['sess_save_path'] = '/tmp/session';

@vipsql
Copy link

vipsql commented Jan 4, 2017

php版本7.0+;修改dbdriver=>'mysqli'即可

@zhoushiyang
Copy link
Author

已找到原因,php执行程序的版本过低,执行初始化的时候没有插入数据。

uriwangsz pushed a commit that referenced this issue Jun 13, 2018
ProtosL referenced this issue in ProtosL/bk-cmdb Sep 7, 2018
模型管理、进程管理
wusendong pushed a commit to wusendong/bk-cmdb that referenced this issue Dec 4, 2018
breezelxp pushed a commit that referenced this issue Mar 7, 2019
breezelxp pushed a commit that referenced this issue Dec 19, 2019
bson interface 解析到map, slice 上
breezelxp pushed a commit that referenced this issue Feb 5, 2020
bson interface 解析到map, slice 上

Former-commit-id: bc31639
wjyfelen added a commit to wjyfelen/bk-cmdb that referenced this issue May 27, 2021
# This is the 1st commit message:

feature: 3.10.x add host os type unix

# This is the commit message #2:

feature: add system unix

# This is the commit message TencentBlueKing#3:

temp:for  debug
wjyfelen added a commit to wjyfelen/bk-cmdb that referenced this issue May 27, 2021
# This is the 1st commit message:

feature: 3.10.x add host os type unix

# This is the commit message #2:

feature: add system unix

# This is the commit message TencentBlueKing#3:

temp:for  debug
wjyfelen added a commit to wjyfelen/bk-cmdb that referenced this issue May 27, 2021
parent f3ff332
author wjyfelen <wjyfelen@163.com> 1622105868 +0800
committer wjyfelen <wjyfelen@163.com> 1622106038 +0800
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEEqJeYU9ehInTtwoaSl35Fh3pRu5oFAmCvX7YACgkQl35Fh3pR
 u5oEOBAAwMAxLERRySrbLrO4Y8hER1VJA/yns2sSVOCUcoy2iVqECgTVIUCHWPef
 7Sj2XbY2YYyK6SFTjYvBK5XmL+yoPvTo1iSkK8nBwlbzY/LmMeVx523vrKBiqjEu
 HEa/DzG/3DuZRYZF/znYZT1XzKX/1sAEIIuo9ff8nz3aMszRBM8hI3p2YHNyVTN8
 C77+XhphhRBI6dple0rjmWwpsQXEkOlQRXoiDWlw+6d2IyLE2vrCgithVbZujGdX
 dEf2oEywAT/92HgRbOaGEpLGxyNzUj9TkUXRbwKJuJET58jUJpK3dpGUq79AQsRu
 yNON2qNrOi4E2Ig/QCqr9FLf1WR6O2tj7HivHrio7ow0YcrB2j1VYFpDaB8jXpZN
 n+HCewfFpmFhNOTr+jIkL1i+BMvDLPBWab3ui4n5quxeMhnlBDqAJmV2bpY4fIwR
 wOqxgHBiqNz7gzreToQnUKo2nAkm0PpokdcNjbz7vGU8dmO22aBzS1e6+hm62JUu
 eldf3uPCUUMOYR9Pk1xgmnzaeXih/RAtcRcWQJ+Ysp4QX2Xr9PYgNDGoDujpEaAK
 HxvpACX0smdaCg42wWuHT745DrhyNGBtJDC5HeToa+9KvVTwqJaQB8THsNvsf2na
 H168/t7QMHrz55nTrHT3C2X5tkwsTaqGZGp5WEvVtItJoDQzgk8=
 =kmlb
 -----END PGP SIGNATURE-----

# This is a combination of 3 commits.
# This is the 1st commit message:

feature: 3.10.x add host os type unix

# This is the commit message #2:

feature: add system unix

# This is the commit message TencentBlueKing#3:

temp:for  debug

# This is the commit message TencentBlueKing#4:

feature: add host type unix

# This is the commit message TencentBlueKing#5:

增加.gitignore
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

6 participants