5

解决织梦dedecms问答模块PHP7报错问题

 2 years ago
source link: https://www.huhexian.com/13699.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

解决织梦dedecms问答模块PHP7报错问题

青山 2021-11-2614:53:31评论489字

不知道有没有朋友在使用织梦dedecms升级php版本至php7x,会发现点击问答模块会报错,第一个错误是Analyse Table `` Error!,第二个错误是Call to undefined function set_magic_quotes_runtime,很多小伙伴不知道如何解决,只好将php版本降低。其实这个错误是可以通过修改配置文件来的,下面就来给大家讲解一下如何解决织梦dedecms问答模块PHP7报错问题。

解决织梦dedecms问答模块PHP7报错问题

第一个错误”Analyse Table `` Error!”的解决方法:

打开 /include/Lurd.class.php 找到MYSQL_NUM,将其修改成MYSQLI_NUM,

第二个错误“Call to undefined function set_magic_quotes_runtime”的解决方法:

打开 /ask/data/common.inc.php 找到@set_magic_quotes_runtime(0);,将其修改为:ini_set("magic_quotes_runtime",0); ,

只要将上面两处修改就可以了,是不是很简单呢,有需要的朋友可以尝试一下。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK