The site was working properly but after I modified a code file. the site stopped working. I have checked the error log and also tried other debugging solution but the site does not work at all. It shows a blank page. The error log displays nothing. The directory index is set to index.php. Please help me.[Note: the error reporting is turned on, Also its a plain php code file, When I echo something it does not display anything.]
<?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);
?>
Here is the htaccess
Options +FollowSymLinks +ExecCGI
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
What do you see in error log? if you cannot figure out then check if other pages are working properly. You can also try to create a new file with the same code and delete the existing file.