session_start(): Failed to initialize storage module: user

比眉伴天荒 2023-06-10 11:26 92阅读 0赞

出现问题:

:(

session_start(): Failed to initialize storage module: user (path: D:\phpStudy\PHPTutorial\tmp\tmp)

错误位置

FILE: D:\www\other\crm\Core\ThinkPHP\Common\functions.php  LINE: 1265

ThinkPHP3.2.3 { Fast & Simple OOP PHP Framework } — [ WE CAN DO IT JUST THINK ]

Fatal error: Uncaught Error: Call to a member function close() on null in D:\www\other\crm\Core\ThinkPHP\Library\Think\Session\Driver\Redis.class.php:62 Stack trace: #0 [internal function]: Think\Session\Driver\Redis->close() #1 {main} thrown in D:\www\other\crm\Core\ThinkPHP\Library\Think\Session\Driver\Redis.class.php on line 621.session_type=’redis’

watermark_type_ZmFuZ3poZW5naGVpdGk_shadow_10_text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl8zOTQ2MTQ4Nw_size_16_color_FFFFFF_t_70

查看 Redis.class.php

watermark_type_ZmFuZ3poZW5naGVpdGk_shadow_10_text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl8zOTQ2MTQ4Nw_size_16_color_FFFFFF_t_70 1

断点后找到问题:

需安装redis 扩展

1.安装教程:window Apcache 增加redis扩展

  1. 断点查看redis配置

发表评论

表情:
评论列表 (有 0 条评论,92人围观)

还没有评论,来说两句吧...

相关阅读