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

配置问题 #6

Closed
dope2008 opened this issue Sep 13, 2015 · 15 comments
Closed

配置问题 #6

dope2008 opened this issue Sep 13, 2015 · 15 comments

Comments

@dope2008
Copy link

请求后台配置项http错误,上传功能将不能正常使用! 上传图片那里,是不是路由要自己写的??

@stevenyangecho
Copy link
Owner

路由不需要自己写,得按照说明做完整配置

@dope2008
Copy link
Author

配置是缓存问题,已经搞定了,现在的问题是,上传就返回can't find the uploaded file

@dope2008
Copy link
Author

91994079-6f64-4af8-b741-f2886ef9c4bd

@dope2008
Copy link
Author

找到问题了,修改public/laravel-u-editor/ueditor.config.js // 服务器统一请求接口路径
, serverUrl: "/laravel-u-editor/server/" 修改为 serverUrl: "/laravel-u-editor/server" 最后的/不要

@stevenyangecho
Copy link
Owner

最后面的 / 应该是没有影响才对,实际测试也没有影响.
建议多试几次,确实有影响就得改代码了

@MrVidon
Copy link

MrVidon commented Sep 14, 2015

真是坑,public/laravel-u-editor/ueditor.config.js 需要把serverUrl修改下,作者真大意

@JellyBool
Copy link

@dope2008 我也是出现这个错误,你是怎么解决的?

配置是缓存问题这个是什么意思?我需要怎么配置?

@bunnkou
Copy link

bunnkou commented Oct 21, 2015

@dope2008 “请求后台配置项http错误,上传功能将不能正常使用!”
同求。。。

@bunnkou
Copy link

bunnkou commented Oct 21, 2015

@JellyBool 兄弟,这个问题解决没?

@bunnkou
Copy link

bunnkou commented Oct 22, 2015

UEditorServiceProvider 文件里
$router->any('/laravel-u-editor/server', 'Controller@server');
这里的 /laravel-u-editor/server 路由捕获不到,我换了个名字就可以了,但是我用 route:list 查了一下没有发现有相同的路由信息。
我是新手,请大神指教一下 @stevenyangecho

@xinz0526
Copy link

Laravel 5.1;Windows Xampp环境;laravel-u-editor 1.2依然出现“请求后台配置项http错误,上传功能将不能正常使用!”
修改UEditorServiceProvider 和public/laravel-u-editor/ueditor.config.js路径依然不成功。求解

@stevenyangecho
Copy link
Owner

@bunnkou @xinz0526 猜测原因应该是nginx apache的rewrite 没有配置正确.下个版本看争取把错误提示弄明显一点

@xinz0526
Copy link

好的,谢谢。

@EdenChan
Copy link

确实是
UEditorServiceProvider 文件里
$router->any('/laravel-u-editor/server', 'Controller@server');
路由匹配不上 但是把项目路径指定为根目录就正常了 这条路由非常奇怪。。

我的解决方法是将上面这条路由规则改成
$router->any('/laravel-ueditor/server', 'Controller@server');

然后去ueditor.config.js把33行左右 改成
serverUrl: "项目路径+laravel-ueditor/server" 就一切正常了
很神奇的路由。。 难道laravel路由名不支持xxx-xxx-xx格式?

@bzs1984
Copy link

bzs1984 commented Apr 22, 2016

在5.2里面路由没有生效,通过route:list可以看到
UEditorServiceProvider 文件里
$router->any('/laravel-u-editor-server/server', 'Controller@server'); 配置的路由 但是不知为何访问会提示:
Controller method not found.

但是把这个路由单独写在 routes.php文件里面就可以访问了
Route::any('/laravel-u-editor-server/server', '\Stevenyangecho\UEditor\Controller@server');

这个地方一直没搞懂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants