Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]文件管理插件安装报错 #624

Open
dahangStar opened this issue Jun 13, 2024 · 0 comments
Open

[BUG]文件管理插件安装报错 #624

dahangStar opened this issue Jun 13, 2024 · 0 comments
Labels
🐛bug Something isn't working

Comments

@dahangStar
Copy link

文件管理插件安装报错

github.com/GoAdminGroup/go-admin/modules/logger.ErrorCtx
/admin/vendor/github.com/GoAdminGroup/go-admin/modules/logger/logger.go:313
github.com/GoAdminGroup/go-admin/plugins/admin/controller.(*Handler).PluginDownload
/admin/vendor/github.com/GoAdminGroup/go-admin/plugins/admin/controller/plugins.go:437
github.com/GoAdminGroup/go-admin/context.(*Context).Next
/admin/vendor/github.com/GoAdminGroup/go-admin/context/context.go:105
github.com/GoAdminGroup/go-admin/plugins/admin.(*Admin).initRouter.Middleware.(*Invoker).Middleware.func3
/admin/vendor/github.com/GoAdminGroup/go-admin/modules/auth/middleware.go:132
github.com/GoAdminGroup/go-admin/context.(*Context).Next
/admin/vendor/github.com/GoAdminGroup/go-admin/context/context.go:105
github.com/GoAdminGroup/go-admin/plugins/admin.(*Admin).themeMiddleware
/admin/vendor/github.com/GoAdminGroup/go-admin/plugins/admin/router.go:141
github.com/GoAdminGroup/go-admin/context.(*Context).Next
/admin/vendor/github.com/GoAdminGroup/go-admin/context/context.go:105
github.com/GoAdminGroup/go-admin/plugins/admin.(*Admin).traceIDMiddleware
/admin/vendor/github.com/GoAdminGroup/go-admin/plugins/admin/router.go:123
github.com/GoAdminGroup/go-admin/context.(*Context).Next
/admin/vendor/github.com/GoAdminGroup/go-admin/context/context.go:105
github.com/GoAdminGroup/go-admin/plugins/admin.(*Admin).globalErrorHandler
/admin/vendor/github.com/GoAdminGroup/go-admin/plugins/admin/router.go:111
github.com/GoAdminGroup/go-admin/context.(*Context).Next
/admin/vendor/github.com/GoAdminGroup/go-admin/context/context.go:105
github.com/GoAdminGroup/go-admin/adapter/gin.(*Gin).AddHandler.func1
/admin/vendor/github.com/GoAdminGroup/go-admin/adapter/gin/gin.go:87
github.com/gin-gonic/gin.(*Context).Next
/admin/vendor/github.com/gin-gonic/gin/context.go:185
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
/admin/vendor/github.com/gin-gonic/gin/recovery.go:102
github.com/gin-gonic/gin.(*Context).Next
/admin/vendor/github.com/gin-gonic/gin/context.go:185
github.com/gin-gonic/gin.LoggerWithConfig.func1
/admin/vendor/github.com/gin-gonic/gin/logger.go:249
github.com/gin-gonic/gin.(*Context).Next
/admin/vendor/github.com/gin-gonic/gin/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
/Users/jinxin/Desktop/gitee/后端/dfjBalancer/admin/vendor/github.com/gin-gonic/gin/gin.go:633
github.com/gin-gonic/gin.(*Engine).ServeHTTP
/Users/jinxin/Desktop/gitee/后端/dfjBalancer/admin/vendor/github.com/gin-gonic/gin/gin.go:589
net/http.serverHandler.ServeHTTP
/usr/local/go/src/net/http/server.go:3137
net/http.(*conn).serve
/usr/local/go/src/net/http/server.go:2039

第一次下载,重启安装百分百报错

查看源代码发现,函数缺少参数 ctx *Context

补全后可以正确安装,另外如果没有设置GOPATH,下载插件时会报错没有Golang开发环境,
文件管理器安装以后,在后台界面增加菜单后,从菜单进入文件管理后,点击首页图标只能进入看板不能返回后台管理,原因是进入首页看板不刷新侧边菜单栏,我还没有找到源码在哪里刷新侧边菜单栏的,然后文件管理插件安装以后不能更改监听路径,必须去数据库手动修改filemanger_seting 这张表里的记录再手动重启程序才能修改

版本信息:

  • GoAdmin 版本:v1.2.26
  • golang 版本:1.22.1
  • 浏览器环境:Chrome
  • 开发环境:mac + vscode
@dahangStar dahangStar added the 🐛bug Something isn't working label Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant