解决:Fatal error: Call to undefined function parcv() in include\dedesql.class.php on line 489
更新了一下DedeCmsV5.6-UTF8,出现以下错误提示:
Fatal error: Call to undefined function parcv() in include\dedesql.class.php on line 489
解决办法,在 include/dedesql.class.php 找到:
if(isset($GLOBALS['arrs1'])){ $v1 = $v2 = ''; for($i=0;isset($arrs1[$i]);$i++) { $v1 .= ParCv($arrs1[$i]); } for($i=0;isset($arrs2[$i]);$i++) { $v2 .= ParCv($arrs2[$i]); } $GLOBALS[$v1] .= $v2;}
替换为:
if(isset($GLOBALS['arrs1'])){ $v1 = $v2 = ''; for($i=0;isset($arrs1[$i]);$i++) { $v1 .= chr($arrs1[$i]); } for($i=0;isset($arrs2[$i]);$i++) { $v2 .= chr($arrs2[$i]); } $GLOBALS[$v1] .= $v2;}