用户
 找回密码
 入住 CI 中国社区
搜索
查看: 1287|回复: 0
收起左侧

[版本 3.x] 刚加载session就报错了,有key,前面没有输出

[复制链接]
发表于 2015-7-26 16:21:15 | 显示全部楼层 |阅读模式
      
PHP复制代码
public function show(){
$this->load->library('session');// 到这已经错了!!!!
}
       
复制代码

encryptionkey已经设好了。各位大神,这是什么情况?
错误信息如下:

A PHP Error was encounteredSeverity: Warning
Message: mkdir(): Invalid path
Filename: drivers/Session_files_driver.php
Line Number: 117
Backtrace:
File: /Library/WebServer/Documents/yz/application/controllers/test/Demo.php
Line: 27
Function: library
File: /Library/WebServer/Documents/yz/index.php
Line: 292
Function: require_once

A PHP Error was encounteredSeverity: Warning
Message: Cannot modify header information - headers already sent by (output started at /Library/WebServer/Documents/yz/system/core/Exceptions.php:272)
Filename: core/Common.php
Line Number: 569
Backtrace:

An uncaught Exception was encounteredType: Exception
Message: Session: Configured save path '' is not a directory, doesn't exist or cannot be created.
Filename: /Library/WebServer/Documents/yz/system/libraries/Session/drivers/Session_files_driver.php
Line Number: 119
Backtrace:
File: /Library/WebServer/Documents/yz/application/controllers/test/Demo.php
Line: 27
Function: library
File: /Library/WebServer/Documents/yz/index.php
Line: 292
Function: require_once

A PHP Error was encounteredSeverity: Warning
Message: fopen(af585777177ee396f327f458ef8faec1a8ca00f9): failed to open stream: Permission denied
Filename: drivers/Session_files_driver.php
Line Number: 156
Backtrace:



本版积分规则