ecmall页面空白解决方案(转)

时间:2022-03-29 04:03:33

页面空白解决方案:
 ---------------------------------------------------------------------------------------------
 
1,到php.ini中打开错误报告,将报错信息贴出来
 打开错误报告的方法:将error_reporting 设置为  E_ALL,将display_errors 设置为 On
 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2,我把temp入面的folder再set 777就可以了....
 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3,php,mysql,httpd版本问题
 ++++++++++++++++++++
 httpd版本:
 [root@bogon jitong360temp]# httpd -v
 Server version: Apache/2.2.15 (Unix)
 Server built:   Dec  8 2011 18:07:26
 ++++++++++++++++++++
 php版本:
 [root@bogon jitong360temp]# php -v
 PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/sqlite3.so' - /usr/lib/php/modules/sqlite3.so: undefined symbol: sqlite3_stmt_readonly in Unknown on line 0
 PHP 5.3.14 (cli) (built: Jun 14 2012 18:25:17)
 Copyright (c) 1997-2012 The PHP Group
 Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
     with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies
 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 www.it165.net
 4,其实还有一个可能会造成网页空白… 就是填写账号或密码的时候 要避免:/@这关键词!否则会导致数据库连结失败
 看data/config.inc.php可以看到
 ‘DB_CONFIG’ => ‘mysql://username:password@localhost:3306/databasename’,
 他是以/@:作分隔!所以只要用到关键词就会出错
 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 5,将原有基于 ECMall 2.2 的系统,迁徙到最新的 php 5.3.3 时,出现首页和其它页面都为空白页的情况,调试多次,无果。后查看其 temp/logs/ 下的日志文件,发现是 eccore/model/mysql.php 文件,报时区错误,采用了在 php.ini 中添加时区设置的办法。
 
在 php.ini 中指定:
 
date.timezone = Asia/Shanghai
 
然后,重启 php-fpm ,问题解决。