织梦DedeCms系统错误调试(老版本参考)
可能是后台程序文件的问题。
找到文件/include/common.inc.php
找到下面的代码,大约第10行吧,
// error_reporting(E_ALL);
error_reporting(E_ALL || ~E_NOTICE);
报错函数改为:
error_reporting(E_ALL);
// error_reporting(E_ALL || ~E_NOTICE);
然后在一键更新生成,查看下报错信息。
根据报错的信息,查看是哪个文件,然后找出安装文件,替换一下即可。
织梦DedeCms系统错误调试(新版本参考)
- 先开启错误提示,(修改/include/common.inc.php的第13行)
原来是define('DEDE_ENVIRONMENT', 'production');
修改为define('DEDE_ENVIRONMENT', 'production123'); - 再建立文件夹/data/tplcache
出现如下是需要开启虚拟主机的输出缓存区:
Notice: Undefined variable: cfg_domain_cookie in /data/home/qxu1590920139/htdocs/include/common.inc.php on line 197 Warning: Cannot modify header information - headers already sent by (output started at /data/home/qxu1590920139/htdocs/include/common.inc.php:197) in /data/home/qxu1590920139/htdocs/include/common.inc.php on line 363 Notice: Uninitialized string offset: 0 in /data/home/qxu1590920139/htdocs/index.php on line 11