pingjinghudong

环境 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 就可以了

分类:

技术点:

相关文章:

  • 2021-11-27
  • 2021-08-22
  • 2021-12-06
  • 2021-11-14
  • 2021-11-14
  • 2021-08-28
  • 2021-12-31
  • 2021-10-12
猜你喜欢
  • 2021-05-14
  • 2021-12-07
  • 2021-10-22
  • 2021-08-28
  • 2021-11-27
  • 2021-12-19
  • 2021-09-17
相关资源
相似解决方案