由于最近研究SEO,连编辑器都换成了强大的FCKeditor,不过使用中难免会出现这样那样的毛病。这不,第一个错误就出来了。
下载了FCKeditor_2.6.4 for Bo-Blog完美版,马上就开始安装了,按照安装说明上写的
将fckeditor文件夹上传到了Editor中覆盖原有文件夹。
在上传图片的时候,选择浏览服务器,突然发现出现404错误,错误信息是这样的
Forbidden
You don't have permission to access /editor/fckeditor/editor/filemanager/browser/default/browser.html on this server.Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.forece.net Port 80
上网搜索了一下,貌似中文网站都没有写怎么解决这个错误。没办法,看英文吧。找了几篇,很多人出现这个错误,他们的共同点就是使用HostGator的服务器。这就好办了,有人说,直接和HostGator的客服沟通,让他们将FCKeditor的Broswer.html 文件放入他们的白名单就可以了。
原话是这样的
You will need to contact hostgator support and ask them to add the site and possibly just the file browser.html to their whitelist. They are running some sort of mod_security on apache and it's detecting an exception and trigger the security violation and thus blocking access to the needed files.
马上联系客服,HostGator就是这点好,24小时客服在线。填写的姓名以及问题原因后,马上就有个技术员过来帮我解决问题了。这个业务员超Nice,跟我说了无数句谢谢。
聊天内容如下:
(10:15:22 AM) Michael Bo: has entered the chat.
(10:15:27 AM) Michael Bo: Hello, welcome to HostGator Live Chat.
(10:15:34 AM) FCKeditor Error: Hi, nice to see u.
(10:15:55 AM) Michael Bo: Just a moment and I will check on that for you
(10:16:09 AM) FCKeditor Error: OK, thanks a lot
(10:16:46 AM) Michael Bo: May I have your primary domain name please
(10:16:50 AM) FCKeditor Error: vteam.info
(10:17:22 AM) Michael Bo: Can you tell me the error you are having, or the link that has the error
(10:18:31 AM) FCKeditor Error: it's in my another domain, forece.net. and the link is http://www.forece.net/editor/fckeditor/editor/filemanager/browser/default/browser.html
(10:18:53 AM) FCKeditor Error: in the folder www/forece/
(10:19:20 AM) Michael Bo: Thank you, just a moment please
(10:19:27 AM) FCKeditor Error: OK
(10:20:09 AM) Michael Bo: Thank you
(10:20:30 AM) FCKeditor Error: no problem.
(10:22:43 AM) Michael Bo: thanks
(10:23:09 AM) FCKeditor Error: it's done?
(10:24:57 AM) Michael Bo: Just another mmoment please
(10:25:05 AM) FCKeditor Error: :)
(10:25:58 AM) Michael Bo: Thank you
(10:32:01 AM) Michael Bo: I was able to white list those, but the error still seems to be there
(10:32:09 AM) Michael Bo: It looks like it is a script error
(10:32:30 AM) FCKeditor Error: really?
(10:32:39 AM) FCKeditor Error: i'm going to check it..
(10:32:48 AM) Michael Bo: Yes, I even double checked the whitelist
(10:33:22 AM) FCKeditor Error: I've checked it already.. i think it's ok now..
(10:33:31 AM) FCKeditor Error: anyway, thank you all the same
(10:33:36 AM) Michael Bo: ;yw
(10:33:45 AM) Michael Bo: You are welcome
(10:33:46 AM) FCKeditor Error: :)
(10:33:53 AM) Michael Bo: have a good day
(10:34:01 AM) FCKeditor Error: you too.
(10:34:03 AM) Michael Bo: Thank you for using HostGator Live Chat. If you could take a minute to rate your experience with HostGator as well as my overall performance, that would help us to improve our customer service. To do that, just click the button that says Rate and Exit in the upper right hand corner. The survey takes less than a minute to fill out.
忙活了半天,最后他判定可能是我Scripts的错误,他已经检查了两遍了,并且已经放入白名单中。我试了一下,发现已经可以打开文件上传功能了。跟他说了声谢谢,说已经没问题了(其实还是有问题的),给他评分走人。
上传虽然是可以上传了,也可以编辑图片,不过再次打开图片上传的时候,却无法看到上次出现的毛病,还蹦出个对话框说是什么系统无法返还XML的错误。
我心想可能真的是插件的毛病吧。重新下载了一个FCKeditor_2.6.4 for Bo-Blog原始版本,不是那个完美版哦,我一般也不怎么上传影音功能,就是图片多一些,所以完美版对我来说没什么大的作用。我主要使用的是FCKeditor可以给图片加入各种属性。比如:Alt,Title之类的。
上传后,一切问题都消失了!
大家如果出现404问题后,先别急向服务商反映,看看是不是插件的错误。如果实在不成,再向服务商要求加入白名单吧。