该站点运行正常,但在我修改了代码文件之后。该网站停止工作。我检查了错误日志并尝试了其他调试解决方案,但该站点根本无法正常工作。它显示一个空白页。错误日志不显示任何内容。目录索引设置为 index.php。请帮助我。[注意:错误报告已打开,它也是一个普通的 php 代码文件,当我回显某些内容时,它不会显示任何内容。]
<?php
include_once('../../includes/SiteSetting.php');
include_once('../../includes/classes/class.forum.php');
$forumObj = new Forum();
#--------GEtting Forum List-------------
$categories = $forumObj->getCategories();
if(!empty($categories) && count($categories)>0)
{
$i=0;
foreach($categories as $category)
{
$forums = $forumObj->getForums($_GET['search'], $category['categoryid']);
$ForumArray[$i] = $category;
$ForumArray[$i]['forums'] = $forums;
$i++;
}
}
else
{
$ForumArray[$i]['forums'] ="";
}
$smarty->assign("forumarray", $ForumArray);
?>
这是 htaccess 选项 +FollowSymLinks +ExecCGI
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>