After dedeUTF_8 is installed, a fatal error and warning are reported. The website background and homepage cannot be displayed.

Source: Internet
Author: User
: 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.