Home  >  Article  >  CMS Tutorial  >  How to solve the problem that dedecms5.7 linkage type cannot be displayed

How to solve the problem that dedecms5.7 linkage type cannot be displayed

藏色散人
藏色散人Original
2019-12-20 10:00:032034browse

How to solve the problem that dedecms5.7 linkage type cannot be displayed

dedecms5.7 How to solve the problem that the linkage type cannot be displayed?

This article mainly introduces the solution to the problem that dedecms5.7 linkage type cannot be displayed. Generally, it is due to path problems (the path lacks the separator '/') that causes js to fail to load normally. Please refer to it for reference.

Recommended study: Dream Weaver cms

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

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

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

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

The code is as follows:

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

Add below it:

The code is as follows:

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

or directly change it to

The code is as follows:

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

That’s it. I found this problem with the regular table and just modified it.

The above is the detailed content of How to solve the problem that dedecms5.7 linkage type cannot be displayed. For more information, please follow other related articles on the PHP Chinese website!

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