我每件事都是按照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
我打开了链接
http://127.0.0.1:8000/ckfinder/connector?command=Init并有JSON错误:
{“错误”:{“数字”:110,“消息”:“未知错误”}
有人能帮我吗?如何找出麻烦的原因?我在谷歌上搜索了很多网站,而且没有任何数据。
发布于 2021-04-22 05:58:39
您使用的是PHP吗?
对我来说,这个问题是包本身中一个不受欢迎的行。
我通过更改vendor\ckfinder\ckfinder-laravel-package\_connector\ArgumentResolver.php line 65修复了这个错误
从…
if ($reflectionClass = $param->getClass()) {至
if ($reflectionClass = new \ReflectionClass($param->getType()->getName())) {因为PHP8.0.3中不推荐getClass(),所以现在它对我来说很好。
注意:一定要记住,更改供应商文件夹中的内容是不好的!
https://stackoverflow.com/questions/66969523
复制相似问题