又如:unix服务器空间,用记事本编辑config.inc.php保存可能导致出错[/p][p=26, null, left][color=rgb(51, 51, 51)][backcolor=rgb(252, 252, 252)]2、服务器空间的原因导致空白页面。[/p][p=26, null, left][color=rgb(51, 51, 51)][backcolor=rgb(252, 252, 252)](1)可能是php.ini配置不正确,可能出错的地方如下:[/p][p=26, null, left][color=rgb(51, 51, 51)][backcolor=rgb(252, 252, 252)]①. extension_dir = 和PHP实际的ext目录不一致。[/p][p=26, null, left][color=rgb(51, 51, 51)][backcolor=rgb(252, 252, 252)]②. 没有把PHP目录和ext目录添加到环境变量中。[/p][p=26, null, left][color=rgb(51, 51, 51)][backcolor=rgb(252, 252, 252)]③. extension=php_mysql.dll等前的;注释没去掉。[/p][p=26, null, left][color=rgb(51, 51, 51)][backcolor=rgb(252, 252, 252)]④. Zend安装目录和php.ini中Zend指定的目录不一致。[/p][p=26, null, left][color=rgb(51, 51, 51)][backcolor=rgb(252, 252, 252)]⑤php.ini文件的问题默认文件里有个doc_root =选项是注释掉的,必须去掉注释才可以[/p][p=26, null, left][color=rgb(51, 51, 51)][backcolor=rgb(252, 252, 252)](2)有些空间不支持gzip导致,解决办法:http://www.discuz.net/viewthread.php?tid=207119[/p][p=26, null, left][color=rgb(51, 51, 51)][backcolor=rgb(252, 252, 252)]或者用phpmyadmin点击sql运行下面的sql语句,代码:[/p]
UPDATE `cdb_settings` SET `value` = '0' WHERE `variable` = 'gzipcompress' LIMIT 1 ;
[p=26, null, left][color=rgb(51, 51, 51)][backcolor=rgb(252, 252, 252)](3)空间满了,不能写入缓存。检查下是不是空间不够了[/p][p=26, null, left][color=rgb(51, 51, 51)][backcolor=rgb(252, 252, 252)](4)运行install.php文件,IE出现一片空白,php error显示:[/p][p=26, null, left][color=rgb(51, 51, 51)][backcolor=rgb(252, 252, 252)]Warning: Unexpected character in input: '\' (ASCII=92) state=1 in E:\139163 www\bbs\install.php on line 976[/p][p=26, null, left][color=rgb(51, 51, 51)][backcolor=rgb(252, 252, 252)]Parse error: parse error, unexpected '}' in E:\139163 www\bbs\install.php on line 979[/p][p=26, null, left][color=rgb(51, 51, 51)][backcolor=rgb(252, 252, 252)]这是因为PHP没有mysql扩展库的问题[/p][p=26, null, left][color=rgb(51, 51, 51)][backcolor=rgb(252, 252, 252)](5)php.ini,查找short_open_tag,将其设置为short_open_tag= on[/p][p=26, null, left][color=rgb(51, 51, 51)][backcolor=rgb(252, 252, 252)](6)php5版本的用户可能是php版本的问题[/p][p=26, null, left][color=rgb(51, 51, 51)][backcolor=rgb(252, 252, 252)]http://www.discuz.net/viewthread.php?tid=217733[/p][p=26, null, left][color=rgb(51, 51, 51)][backcolor=rgb(252, 252, 252)]二、已经运行了一段时间或运行了较长时间的论坛出现了空白页面。[/p][p=26, null, left][color=rgb(51, 51, 51)][backcolor=rgb(252, 252, 252)]主要有以下几种情况[/p][p=26, null, left][color=rgb(51, 51, 51)][backcolor=rgb(252, 252, 252)]1、因断电或其它未知原因mysql无法正常启动,导致网站无法访问。重启服务器后,PHP访问正常且MYSQ数据库连接正常。但Discuz论坛所有或部分页面一片空白
问题原因:是在mysql连接不正常的情况下,网站的缓存仍然在建立,只是因为无法连接数据库,所以缓存都是有误的。 但是这些旧缓存不会自动更新,需要手动删除重新建立。[/p][p=26, null, left][color=rgb(51, 51, 51)][backcolor=rgb(252, 252, 252)]解决方法:forumdata/cache和forumdata/templates下面的文件全部删除。 刷新网站,第一次很慢,但访问正常了。[/p][p=26, null, left][color=rgb(51, 51, 51)][backcolor=rgb(252, 252, 252)]2、安装了某个插件,插件引起空白页面。也可能是插件冲突。[/p][p=26, null, left][color=rgb(51, 51, 51)][backcolor=rgb(252, 252, 252)]解决方法:停止或删除插件,更新缓存看看是否正常。[/p][p=26, null, left][color=rgb(51, 51, 51)][backcolor=rgb(252, 252, 252)]3、模板文件被修改或损坏。[/p][p=26, null, left][color=rgb(51, 51, 51)][backcolor=rgb(252, 252, 252)]解决方法:后台文件校验,看看故障前是否有文件被修改或删除。然后,用安装包中的原始文件替换. 比如:替换 forumdisplay.htm解决版块列表页面空白问题。[/p][p=26, null, left][color=rgb(51, 51, 51)][backcolor=rgb(252, 252, 252)]三、注意:以上解决方法不保证全面准确,仅供参考,操作前注意备份。[/p]