无法创建个人wiki


#1

服务器版本是6.2.3。
在seahub_settings.py新增ENABLE_WIKI = True并重启seafile和seahub之后,新增wiki的时候点击页面提交按钮无反应。
查看服务器日志seahub_django_request.log显示如下:
2018-05-15 07:21:46,256 [ERROR] django.request:256 handle_uncaught_exception Internal Server Error: /home/wiki_create/ Traceback (most recent call last): File "/data/SeaFile/seafile-pro-server-6.2.3/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/handlers/base.py", line 132, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/data/SeaFile/seafile-pro-server-6.2.3/seahub/seahub/auth/decorators.py", line 27, in _wrapped_view return view_func(request, *args, **kwargs) File "/data/SeaFile/seafile-pro-server-6.2.3/seahub/seahub/views/wiki.py", line 175, in personal_wiki_create repo_id = seaserv.create_repo(repo_name, repo_desc, username, passwd) TypeError: create_repo() takes exactly 5 arguments (4 given)


#2

找到原因了
/seahub/seahub/views/wiki.py文件的175行改成repo_id = seaserv.create_repo(repo_name, repo_desc, username, passwd, permission) 就可以了