Home >Backend Development >PHP Tutorial >dedecms5.7 linkage type cannot be displayed_PHP tutorial

dedecms5.7 linkage type cannot be displayed_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:39:43879browse

dedecms5.7 linkage type cannot be displayed

Cause of the problem: Generally it is due to a path problem (the path is missing the separator '/') that causes js to fail to load normally

If you encounter this kind of problem, try to check whether the js is loaded correctly through the firebug tool.

If it is a path problem, please find the include/customfields.func.php file

Look for the following code (there are multiple codes):

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

Add below it:

if(substr($cmspath,-1,1) != '/') $cmspath .= '/'; This line of code is just fine.

or change directly to

$cmspath = ( (empty($cfg_cmspath) || !preg_match('/[/]$/', $cfg_cmspath)) ? $cfg_cmspath.'/' : $cfg_cmspath ); Just fine, I found this regular pattern Table problem, just fix it

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/729834.htmlTechArticlededecms5.7 The linkage type cannot be displayed. Cause of the problem: It is usually due to path problems (the path is missing the separator '/') As a result, js cannot be loaded normally. If you encounter this type of problem, try to use fire...
Statement:
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