Installation Dede utf_8 times a fatal error and warning, finally can not display the site background and home. The error is as follows:
Login Home Display: Fatal error:call to undefined function parcv () in/include/dedesql.class.php on line 489
Login Backstage Display: Deprecated:function ereg_replace () is Deprecated in/dede/config.php on line 2
Fatalerror:call to undefined function parcv () in \include\dedesql.class.php on line 489
(To protect customer privacy, the full path of the program is not written out, only the wrong path is written.) )
In fact, this problem is because function PARCV () is not encapsulated in class dedesql.class.php.
Here are some ways to share the solution:
// Special Operations /* Modify the following code *//* if (isset ($GLOBALS [' arrs1 '])) { $v 1 = $v 2 = '; For ($i =0;isset ($arrs 1[$i]), $i + +) { $v 1. = PARCV ($arrs 1[$i]); } For ($i =0;isset ($arrs 2[$i]), $i + +) { $v 2. = PARCV ($arrs 2[$i]); } $GLOBALS [$v 1]. = $v 2;} */ if (Isset ($GLOBALS [' arrs1 ')) { = $v 2 = "; for ($i =0;isset ($arrs 1[$i]), $i + +) { $v 1. = chr ($arrs 1[$i]); } for ($i =0;isset ($arrs 2[$i]), $i + +) { $v 2. = chr ($arrs 2[$i]); } $GLOBALS [$v 1]. = $v 2;}
After the replacement, clear the browser cache, in the foreground and in the background to display the normal operation.
The above describes the installation of Dede Utf_8 times a fatal error and warning, and finally can not display the site background and home page, including the content, I hope to be interested in PHP tutorial friends helpful.