出現問題:
:(
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'
查看 Redis.class.php
斷點後找到問題:
需安裝redis 擴展
1.安裝教程:window Apcache 增加redis擴展
2. 斷點查看redis配置