weiphp 3.0创建插件提示错误解决办法 提示您没有创建目录写入权限,

环境 linux weiphp3.0

步骤: 创建weiphp插件的时候提示 目录不可写入

 

解决方法: 查看是/Admin/Plugin/create.html 这个文件提示的 找到

Application\Admin\Controller 目录下的 PluginController.class.php

发现目标代码

 

// 创建向导首页
public function create() {
if (! is_writable ( ONETHINK_PLUGIN_PATH ))
$this->error ( '您没有创建目录写入权限,无法使用此功能' );

$hooks = M ( 'hooks' )->where ( 'name!="weixin"' )->field ( 'name,description' )->select ();
$this->assign ( 'Hooks', $hooks );
$this->meta_title = '创建向导';
$this->display ( 'create' );
}

ONETHINK_PLUGIN_PATH  的定义在

Application\Common\Common 目录下的 function.php

// OneThink常量定义
// const ONETHINK_VERSION = '1.1.141101';
const ONETHINK_ADDON_PATH = './Addons/'; // 微信插件
const ONETHINK_PLUGIN_PATH = './Plugins/'; // 系统插件

查看根目录的plugins  chmod 777 plugins 就可以了

posted @ 2016-02-01 02:27  平静互动  阅读(1117)  评论(1编辑  收藏  举报