Installation Dede utf_8 times a fatal error and warning, finally can not display the website backstage and the homepage

Source: Internet
Author: User
Tags deprecated browser cache
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.

  • Related Article

    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.