Get the App
SLTechnology News&Howtos  ›  Servers  › 

The solution to the problem that the dedecms5.7 linkage type cannot be displayed

Shulou Source: shulou.com Published: 2022-06-02 03:56:01 10月02日 Update

Editor to share with you the dedecms5.7 linkage type can not show the solution, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

What if the dedecms5.7 linkage type cannot be displayed?

This article mainly introduces the solution that the dedecms5.7 linkage type can not be displayed. Generally, the js cannot be loaded normally due to the path problem (the path lacks the delimiter'/'). Please refer to it.

Recommended study: dream weaving cms

The cause of the problem: generally, it is due to the path problem (the path lacks the delimiter'/') that the js cannot load normally.

If you encounter this kind of problem, try to check that 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):

The code is as follows:

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

Add the following:

The code is as follows:

If (substr ($cmspath,-1,1)! ='/') $cmspath. ='/'; this line of code is fine.

Or directly change it to

The code is as follows:

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

Just do it. If you find the problem with the regular table, just modify it.

The above are all the solutions that cannot be displayed by the dedecms5.7 linkage type. thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Code problem path type method content delimiter article reference learning one line not much reason most tools files more regularity knowledge industry Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Docker MySQL OPPO Reno Shulou Information