/ThinkPHP/Library/Think/Storage/Driver/File.class.php  LINE: 48错误

这是一个将windows下运行正常的ThinkPHP框架移到Linux下会出现的一个问题: 

:( 

STORAGE_WRITE_ERROR:./Runtime/Cache/Install/c6bbce5b1f1dcf027c8ceb5cf5141b65.PHP 

错误位置 

FILE: /home/wwwroot/testisale/ThinkPHP/Library/Think/Storage/Driver/File.class.php  LINE: 48 

TRACE 

/#0 /home/wwwroot/testisale/ThinkPHP/Library/Think/Storage/Driver/File.class.php(48): E('STORAGE_WRITE…') 

/#1 [internal function]: Think\Storage\Driver\File->put('./Runtime/Cache…', ' #2 /home/wwwroot/testisale/ThinkPHP/Library/Think/Storage.class.php(37): call_user_func_array(Array, Array) 

/#3 /home/wwwroot/testisale/ThinkPHP/Library/Think/Template.class.php(114): Think\Storage::__callstatic('put', Array) 

/#4 /home/wwwroot/testisale/ThinkPHP/Library/Think/Template.class.php(114): Think\Storage::put('./Runtime/Cache…', ' #5 /home/wwwroot/testisale/ThinkPHP/Library/Think/Template.class.php(76): Think\Template->loadTemplate('./Application/I…', ") 

/#6 /home/wwwroot/testisale/ThinkPHP/Library/Behavior/ParseTemplateBehavior.class.php(32): Think\Template->fetch('./Application/I…', Array, ") 

/#7 /home/wwwroot/testisale/ThinkPHP/Library/Think/Hook.class.php(119): Behavior\ParseTemplateBehavior->run(Array) 

/#8 /home/wwwroot/testisale/ThinkPHP/Library/Think/Hook.class.php(89): Think\Hook::exec('Behavior\ParseT…', 'view_parse', Array) 

/#9 /home/wwwroot/testisale/ThinkPHP/Library/Think/View.class.php(126): Think\Hook::listen('view_parse', Array) 

/#10 /home/wwwroot/testisale/ThinkPHP/Library/Think/View.class.php(72): Think\View->fetch(", ", ") 

/#11 /home/wwwroot/testisale/ThinkPHP/Library/Think/Controller.class.php(56): Think\View->display(", ", ", ", ") 

/#12

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

 

 

 

 

 

 

 

 

出现这个问题的原因是项目中的Runtime权限不够,需要给Runtime和其目录下的所有文件授权,读者只需要执行下列命令即可:

chmod -R 777 Runtime

 

http://blog.csdn.net/callouweicheng/article/details/50898351

TP框架中/ThinkPHP/Library/Think/Storage/Driver/File.class.php 错误的更多相关文章

  1. TP框架中关于if、else 分支结构逻辑错误

    TP框架中关于if.else 分支结构逻辑错误 代码中没有任何错误 将注释往下一行就可以解决 造成问题的原因: TP框架中 想分配变量可以使用assign方法 在[模块]中: $this->as ...

  2. TP框架中如何使用SESSION限制登录?

    TP框架中如何使用SESSION限制登录? 之前总是被问题今天才明白,最高效的来做页面访问限制问题. OOP思想中的继承特性,实现验证,是否已经登录,不必每个页面都进行判断. 实现如下: 继承Cont ...

  3. TP框架中ajax post请求时提示404

    ajax post请求时提示404错误 TP框架中ajax post请求时提示404 找了半天是 控制器中方法有错误! 下次再遇到去控制器方法中找一步一步找,肯定能找到,我是单词拼错了!

  4. TP框架中field查询字段

    TP框架中field查询字段 不是fields 也不是files !!!! 不是fields 也不是files !!!! 不是fields 也不是files !!!! 不是fields 也不是file ...

  5. TP框架中模板赋值

    TP框架中模板赋值 $this->assign('name',$value); $this->name = $value; // 两种写法是等效的

  6. TP框架中模糊查询实现

    TP框架中模糊查询实现 $where['g.name'] = array('like','%'.$groupname.'%'); 表达式查询 上面的查询条件仅仅是一个简单的相等判断,可以使用查询表达式 ...

  7. tp框架中的一些疑点知识-2

    tp中有三种常量: 预定义常量, 这个设置后不会随环境的改变而改变的,比如'URL_MODEL' => 1 注意是 model, 不是 url_mode 路径常量, 也不会随环境的改变而改变的, ...

  8. tp框架中的一些疑点知识-5

    关于vim中的缓存区的前后bp和bn的界定 通过命令ls可以看到 缓存区的 排序. 最开始打开的文件排在最上面, 序号最小. 那么它们就是 更 前 的缓冲区. 序号更前的用bp, 序号靠后的用bn. ...

  9. TP框架中的M、D、C、I、A、S方法

    M方法 M实例化参数是数据库的表名 //使用M方法实例化$User = M('User');//和用法$User = new /Think/Model ('User');等效//执行其他的数据操作$U ...

随机推荐

  1. 经典js框架

    http://requirejs.org/ http://durandaljs.com/ http://knockoutjs.com/index.html http://www.jeasyui.com ...

  2. 列表控件ListBox关联的MFC中的类:CListBox

    列表控件ListBox关联的MFC中的类:CListBox ######################################################## 1.在列表的结尾添加一项: ...

  3. Python基础-迭代器&生成器&装饰器

    本节内容 迭代器&生成器 装饰器 Json & pickle 数据序列化 软件目录结构规范 作业:ATM项目开发 1.列表生成式,迭代器&生成器 列表生成式 我现在有个需求,看 ...

  4. NetFlow流量采集与聚合的研究实现

    http://www.21ic.com/app/analog/200907/44851.htm

  5. kylin

    Kylin只能导入扁平化的Hive表,简而言之,其不支持Hive的复杂数据类型,如array.struct.map等

  6. 51nod 1086 背包问题 V2 【二进制/多重背包】

    1086 背包问题 V2  基准时间限制:1 秒 空间限制:131072 KB 分值: 40 难度:4级算法题  收藏  关注 有N种物品,每种物品的数量为C1,C2......Cn.从中任选若干件放 ...

  7. Python与数据结构[0] -> 链表/LinkedList[1] -> 双链表与循环双链表的 Python 实现

    双链表 / Doubly Linked List 目录 双链表 循环双链表 1 双链表 双链表和单链表的不同之处在于,双链表需要多增加一个域(C语言),即在Python中需要多增加一个属性,用于存储指 ...

  8. System.getProperty("os.name")

    Here is a handy Java class that useSystem.getProperty("os.name") to detect which type of o ...

  9. 【NOIP模拟赛】【乱搞AC】【奇技淫巧】【乘法原理】回文串计数

    回文串计数 (calc.pas/calc.c/calc.cpp) [题目描述] 虽然是一名理科生,Mcx常常声称自己是一名真正的文科生.不知为何,他对于背诵总有一种莫名的热爱,这也促使他走向了以记忆量 ...

  10. 将本地jar包安装进入maven仓库

    实际项目中pom.xml依赖写法: <dependency> <groupId>org.springframework</groupId> <artifact ...