Home > Article > CMS Tutorial > 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!