本文整理自网络,侵删。
DEDE图片本地化失效的主要原因:
服务器上的运行环境中禁用了fsockopen()函数
解决方案一:
在用fsockopen()的地方用stream_socket_client()函数代替。
具体修改地方是 /include/dedehttpdown.class.php 第507行
$this->m_fp = @fsockopen($this->m_host, $this->m_port, $errno, $errstr,10);
替换为
$this->m_fp = @stream_socket_client($this->m_host . ':' . $this->m_port, $errno, $errstr,10);
解决方案二:
编辑php.ini,找到disable_functions,把其中的fsockopen去掉
若上述方案无法解决,那么分析下php.ini配置文件中allow_url_fopen是否是开启状态;
标签:织梦DedeCMS
相关阅读 >>
dedecms5.7首页和列表页模板中动态调用文章浏览次数的方法
dede后台验证码不显示解决方法详解(dedecms 5.7)
dedecms 官方网站或演示地址字段长度不够出现截断的修改方法
更多相关阅读请进入《织梦DedeCMS》频道 >>