Home > CMS Tutorial > DEDECMS > body text

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

藏色散人
Release: 2019-12-20 10:00:03
Original
2044 people have browsed it

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 );
Copy after login

Add below it:

The code is as follows:

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

or directly change it to

The code is as follows:

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

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!

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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template