Home > php教程 > php手册 > body text

dedecms5.7 联动类型无法显示

WBOY
Release: 2016-06-13 09:43:58
Original
783 people have browsed it

dedecms5.7 联动类型无法显示

问题原因:一般是由于路径问题( 路径缺少分隔符'/' )导致js无法正常加载

如果遇到该类问题,尝试通过firebug工具检查js是否被正确加载。

 

如果是路径问题,请找到 include/customfields.func.php 文件

找如下代码(有多处代码):

$cmspath = ( (empty($cfg_cmspath) || !preg_match('/[/$]/', $cfg_cmspath)) ? $cfg_cmspath.'/' : $cfg_cmspath );

在其下面加上:

if(substr($cmspath,-1,1) != '/') $cmspath .= '/';这一行代码就好了。

 

或直接改成

$cmspath = ( (empty($cfg_cmspath) || !preg_match('/[\/]$/', $cfg_cmspath)) ? $cfg_cmspath.'/' : $cfg_cmspath );就好了,发现这正则表问题,修改下就好了

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template