: This article describes how to install dedeUTF_8 and reports a fatal error and warning. The website background and homepage cannot be displayed. For more information about PHP tutorials, see. After dede UTF_8 is installed, a fatal error and warning are reported. The website background and homepage cannot be displayed. The following error is reported:
On the homepage, Fatal error: Call to undefined function ParCv () in/include/dedesql. class. php on line 489 is displayed.
Log on to the background and 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 the privacy of customers, the complete path of the program is not written, and only the wrong path is written .)
In fact, this problem is because function ParCv () is not encapsulated in class dedesql. class. php.
The solution is as follows:
// Special operation/* modify the following code * // * 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 ;}
After the replacement, clear the browser cache, and the browser will be running normally on the frontend and backend.
The preceding section describes how to install dede UTF_8 and reports a fatal error and warning. The website background and homepage cannot be displayed, if you are interested in PHP tutorials.