Home >Backend Development >PHP Tutorial >dedecms5.7 linkage type cannot be displayed_PHP tutorial
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