安装dede UTF_8时报出了一个致命异常和警告,最后不能显示网站后台和首页了
安装dede UTF_8时报出了一个致命错误和警告,最后不能显示网站后台和首页了
安装dede UTF_8时报出了一个致命错误和警告,最后不能显示网站后台和首页了。报错如下:
登陆首页显示:Fatal error: Call to undefined function ParCv() in /include/dedesql.class.php on line 489
登陆后台显示: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
(为保护客户的隐私,程序的完整路径没有写出,只写出错误路径。)
其实这个问题是因为function ParCv() 并没有封装在类 dedesql.class.php里。
下面给大家分享一下解决方法:
<span style="color: #008000;">//</span><span style="color: #008000;">特殊操作</span><span style="color: #008000;">/*</span><span style="color: #008000;">修改下面代码</span><span style="color: #008000;">*//*</span><span style="color: #008000;">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;}</span><span style="color: #008000;">*/</span><span style="color: #0000ff;">if</span>(isset($GLOBALS['arrs1'<span style="color: #000000;">])){ $v1 </span>= $v2 =<span style="color: #000000;"> ”; </span><span style="color: #0000ff;">for</span>($i=0;isset($arrs1[$i]);$i++<span style="color: #000000;">) { $v1 .</span>=<span style="color: #000000;"> chr($arrs1[$i]); } </span><span style="color: #0000ff;">for</span>($i=0;isset($arrs2[$i]);$i++<span style="color: #000000;">) { $v2 .</span>=<span style="color: #000000;"> chr($arrs2[$i]); } $GLOBALS[$v1] .</span>=<span style="color: #000000;"> $v2;}</span>
替换后清除下浏览器缓存,在进入前台和后台就显示正常运行了。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











Function means function. It is a reusable code block with specific functions. It is one of the basic components of a program. It can accept input parameters, perform specific operations, and return results. Its purpose is to encapsulate a reusable block of code. code to improve code reusability and maintainability.

This article will explain in detail how PHP determines whether a specified key exists in an array. The editor thinks it is very practical, so I share it with you as a reference. I hope you can gain something after reading this article. PHP determines whether a specified key exists in an array: In PHP, there are many ways to determine whether a specified key exists in an array: 1. Use the isset() function: isset($array["key"]) This function returns a Boolean value, true if the specified key exists, false otherwise. 2. Use array_key_exists() function: array_key_exists("key",$arr

In this article, we will learn about enumerate() function and the purpose of “enumerate()” function in Python. What is the enumerate() function? Python's enumerate() function accepts a data collection as a parameter and returns an enumeration object. Enumeration objects are returned as key-value pairs. The key is the index corresponding to each item, and the value is the items. Syntax enumerate(iterable,start) Parameters iterable - The passed in data collection can be returned as an enumeration object, called iterablestart - As the name suggests, the starting index of the enumeration object is defined by start. if we ignore

Detailed explanation of the role and function of the MySQL.proc table. MySQL is a popular relational database management system. When developers use MySQL, they often involve the creation and management of stored procedures (StoredProcedure). The MySQL.proc table is a very important system table. It stores information related to all stored procedures in the database, including the name, definition, parameters, etc. of the stored procedures. In this article, we will explain in detail the role and functionality of the MySQL.proc table

Usage and Function of Vue.use Function Vue is a popular front-end framework that provides many useful features and functions. One of them is the Vue.use function, which allows us to use plugins in Vue applications. This article will introduce the usage and function of the Vue.use function and provide some code examples. The basic usage of the Vue.use function is very simple, just call it before Vue is instantiated, passing in the plugin you want to use as a parameter. Here is a simple example: //Introduce and use the plug-in

The clearstatcache() function is used to clear the file status cache. PHP caches the information returned by the following functions −stat()lstat()file_exists()is_writable()is_readable()is_executable()is_file()is_dir()filegroup()fileowner()filesize()filetype()fileperms() What to do To provide better performance. Syntax voidclearstatecache() Parameter NA Return value clearstatcache(

The file_exists method checks whether a file or directory exists. It accepts as argument the path of the file or directory to be checked. Here's what it's used for - it's useful when you need to know if a file exists before processing it. This way, when creating a new file, you can use this function to know if the file already exists. Syntax file_exists($file_path) Parameters file_path - Set the path of the file or directory to be checked for existence. Required. Return file_exists() method returns. Returns TrueFalse if the file or directory exists, if the file or directory does not exist Example let us see a check for "candidate.txt" file and even if the file

With the development of the Internet, SOA (service-oriented architecture) has become an important technical architecture in today's enterprise-level systems. Services in the SOA architecture can be reused, reorganized and extended, while also simplifying the system development and maintenance process. As a widely used Web programming language, PHP also provides some function libraries for implementing SOA. Next, we will detail how to use SOA functions in PHP. 1. The basic concept of SOA. SOA is a distributed system development idea and architecture.
