首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >CKFinder + Laravel 8的故障

CKFinder + Laravel 8的故障
EN

Stack Overflow用户
提问于 2021-04-06 13:23:23
回答 1查看 720关注 0票数 0

我每件事都是按照1-5点做的,就像Readme.MD https://github.com/ckfinder/ckfinder-laravel-package#configuring-authentication中所说的那样。

现场作者说:At this point you should see the connector JSON response after navigating to the <APP BASE URL>/ckfinder/connector?command=Init address. Authentication for CKFinder is not configured yet, so you will see an error response saying that CKFinder is not enabled

我打开了链接

代码语言:javascript
复制
http://127.0.0.1:8000/ckfinder/connector?command=Init

并有JSON错误:

{“错误”:{“数字”:110,“消息”:“未知错误”}

有人能帮我吗?如何找出麻烦的原因?我在谷歌上搜索了很多网站,而且没有任何数据。

EN

回答 1

Stack Overflow用户

发布于 2021-04-22 05:58:39

您使用的是PHP吗?

对我来说,这个问题是包本身中一个不受欢迎的行。

我通过更改vendor\ckfinder\ckfinder-laravel-package\_connector\ArgumentResolver.php line 65修复了这个错误

从…

代码语言:javascript
复制
if ($reflectionClass = $param->getClass()) {

代码语言:javascript
复制
if ($reflectionClass = new \ReflectionClass($param->getType()->getName())) {

因为PHP8.0.3中不推荐getClass(),所以现在它对我来说很好。

注意:一定要记住,更改供应商文件夹中的内容是不好的!

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66969523

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档