01

Dedecms内容发布界面的编辑器提示Service Temporarily Unavailable的解决办法

在用了Dreamhost的主机后,在使用dedecms时遇到了这样一个问题:Dedecms 内容发布界面的文章内容编辑器提示Service Temporarily Unavailable ,无法发布和编辑内容,找了很多文章解决不了,偶尔发现了一个强人的博客上有解决办法,哈,搞定了。解决办法发出来:

Dedecms 内容发布界面的文章内容编辑器提示Service Temporarily Unavailable 的解决办法:
Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
 

原因:都是百分号惹得祸。
问题出在最后面那个%上。部分空间(像我现在用的空间就是这样)会出现这种问题。

解决思路:只要把100%进行urlencode,就不会存在这样的问题了。

解决方法:将include/htmledit/dede_editor.php文件第43行中的

$Link = “{$this->BasePath}{$File}?modetype=”.$this->ToolbarSet.”&InstanceName={$this->InstanceName}&height=”.$this->Height.”&width=”.$this->Width ;

改为:

$Link = “{$this->BasePath}{$File}?modetype=”.$this->ToolbarSet.”&InstanceName={$this->InstanceName}&height=”.$this->Height.”&width=”.urlencode($this->Width) ;

即加了一个urlencode函数。

问题解决。

关于作者
孙波, 携程旅行网, Senior Manager
资深互联网民工,供职携程旅行网,网络市场部高级经理,曾就职于阿里巴巴、5173等。产品、市场、BI、站长,这么个圈子,基本都混过。业余关注TMT投资领域。

1 条评论了已经

发表评论

名字(必须)
邮箱(不会被公布)(必须)
网址

字体为 粗体 是必填项目,邮箱地址 永远不会 公布。

允许部分 HTML 代码:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
URLs(网站链接)必须完整有效 (比如: http://www.sunbo.name),所有标签都必须完整的关闭。

超出部分系统将会自动分段及换行。

请保证评论内容是与日志或 Blog 内容相关的,灌水、攻击性或不恰当的评论 可能 会被编辑或删除。