HELP ME WITH INCLUDE PROBLEM ERROR FAILED TO OPEN LINE 236 (PHP

Please help me I don’t know where to start from. I go to the website now, to find this error, indicating at line 236, I don’t have such file there. What does error mean, and do I solve the problem, please help me. I am a dummy to php

[php]Warning: include_once(./modules/forum/forum_home.php) [function.include-once]: failed to open stream: No such file or directory in /home/nigeriak/public_html/index.php on line 236

Warning: include_once() [function.include]: Failed opening ‘./modules/forum/forum_home.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/nigeriak/public_html/index.php on line 236. [/php]

I’m sorry for the title and bad english

can you post your index.php please

Thank you, here is the index you are asking for. Someone helped me to build it, but it seems he didin’t know anything about PHP like me.

[php]<?php
if(!isset($include_allowed)){die(""); }

$current_location = $site_path . $country . “/” . “forum/”;
$current_location_pagination = $site_path . $country . “/” . “forum/front-page-topics”;
$forum_path = $forum_location = $site_path . $country . “/” . “forum”;
$page_ad_limit = 5;

if(isset($user_id) && $user_id >= 1){
$user_country_id = getUserPart($user_id, ‘country’);
$country_acronym = strtolower(getCountryPart($user_country_id, ‘acronym’));
$country_url = $site_path . $country_acronym . “/”;
}

if(isset($user_id) && $user_id >=1){
$full_name = ucwords(getUserPart($user_id, ‘full_name’));
$sex = getUserPart($user_id, ‘sex’);
$user_country_id = getUserPart($user_id, ‘country’);
$telephone = getUserPart($user_id, ‘telephone’);
$email = getUserPart($user_id, ‘email’);
$username = getUserPart($user_id, ‘username’);
$date_registered = getUserPart($user_id, ‘date_created’);
}else{
$username = “Guest”;
}

$country_id = isCountry($country);
$ad_country_id = $country_id;
$country_name = getCountryPart($country_id, ‘title’);
$max_per_page = 45;
$total_records = 0;
$flag_list = FALSE;
$target_url = $current_location_pagination . “/”;
$status = 1;
$count = 0;
$page = 1;

$seo_title = “Nigeria Key”;
$seo_meta = "Nigeria Key is an online source for Nigeria latest news, Nigeria gossips and celebrity scandals,

with Nigeria entertainment news and world news, and also an opportunity to discuss politics, business, jobs, with it’s daily growing members.";

//pagination variable pg
if(isset($fourthvar) && is_numeric($fourthvar))
{ $page = $fourthvar; }

$list_arr = listFeaturedForumTopics($country_id, $page, $max_per_page);
if($list_arr)
{
$total_records = $list_arr[‘total’];
$list = $list_arr[‘list’];
$flag_list = TRUE;
}else{
$flag_list = false;
}

updateTrackingRecords(‘none’, 0, ‘forum’, $country_id, 1);
include_once("./templates/header.php");
?>

<div class="content_container">
	<div class="dark_box">
		<h2><?php echo strtoupper($site_name); ?> NEWS</h2>
	</div>
	<div class="light_box" style="text-align: left;">
			<a href="<?php echo $site_path . $country . '/' . 'forum/science-technology'; ?>"><strong>Science/Technology:</strong></a>
			<?php 
					$list_board_arr = listAllForumBoards(111, 1, 100);
					$count_board = count($list_board_arr);
					$ticker = 0;
					foreach($list_board_arr as $board_id)
					{
							$ticker = $ticker + 1;
							$board_name = getBoardPart($board_id, 'title');
							$board_description = getBoardPart($board_id, 'description');
							$board_slug = getBoardPart($board_id, 'slug');
							$board_url = $site_path . $country . "/" . "forum/" . $board_slug;
							
			?>
					 <?php if($count_board != $ticker){ ?>
							<a href="<?php echo $board_url; ?>" title="<?php echo $board_description; ?>"><strong><?php echo $board_name; ?></strong></a>,
					 <?php }else{ ?> 
							<a href="<?php echo $board_url; ?>" title="<?php echo $board_description; ?>"><strong><?php echo $board_name; ?></strong></a>
					 <?php } ?>
			<?php } ?>		
	</div>
	<div class="dark_box" style="text-align: left;">
			<a href="<?php echo $site_path . $country . '/' . 'forum/entertainment'; ?>"><strong>Entertainment:</strong></a>
							<?php 
									$list_board_arr = listAllForumBoards(112, 1, 100);
									$count_board = count($list_board_arr);
									$ticker = 0;
									foreach($list_board_arr as $board_id)
									{
											$ticker = $ticker + 1;
											$board_name = getBoardPart($board_id, 'title');
											$board_description = getBoardPart($board_id, 'description');
											$board_slug = getBoardPart($board_id, 'slug');
											$board_url = $site_path . $country . "/" . "forum/" . $board_slug;
											
							?>
									 <?php if($count_board != $ticker){ ?>
											<a href="<?php echo $board_url; ?>" title="<?php echo $board_description; ?>"><strong><?php echo $board_name; ?></strong></a>,
									 <?php }else{ ?> 
											<a href="<?php echo $board_url; ?>" title="<?php echo $board_description; ?>"><strong><?php echo $board_name; ?></strong></a>
									 <?php } ?>
							<?php } ?>
 		</div>
		
		<div class="light_box" style="text-align: left; border-bottom: none;">
				<a href="<?php echo $site_path . $country . '/' . 'forum/general'; ?>"><strong><?php echo $site_name; ?> / General:</strong></a>  				      
							<?php 
									$list_board_arr = listAllForumBoards(113, 1, 100);
									$count_board = count($list_board_arr);
									$ticker = 0;
									foreach($list_board_arr as $board_id)
									{
											$ticker = $ticker + 1;
											$board_name = getBoardPart($board_id, 'title');
											$board_description = getBoardPart($board_id, 'description');
											$board_slug = getBoardPart($board_id, 'slug');
											$board_url = $site_path . $country . "/" . "forum/" . $board_slug;
											
							?>
			 <?php if($count_board != $ticker){ ?>
					<?php if($board_id == 115 || $board_id == 116){ ?>
							<?php if(isset($user_id) && isBoardModeratorx($user_id)){ ?>
								<a href="<?php echo $board_url; ?>" title="<?php echo $board_description; ?>"><strong><?php echo $board_name; ?></strong></a>,
							<?php } ?>
					<?php }else{ ?>
							<a href="<?php echo $board_url; ?>" title="<?php echo $board_description; ?>"><strong><?php echo $board_name; ?></strong></a>,
					<?php } ?>
					
			 <?php }else{ ?> 
					<?php if($board_id == 115 || $board_id == 116){ ?>
							<?php if(isset($user_id) && isBoardModeratorx($user_id)){ ?>
								<a href="<?php echo $board_url; ?>" title="<?php echo $board_description; ?>"><strong><?php echo $board_name; ?></strong></a>,
							<?php } ?>
					<?php }else{ ?>
							<a href="<?php echo $board_url; ?>" title="<?php echo $board_description; ?>"><strong><?php echo $board_name; ?></strong></a>,
					<?php } ?>				
			 <?php } ?>
			 
			 
			<?php } ?>						


		</div>
</div>


<div class="content_container">
	<div class="dark_box">
		<h3><?php echo strtoupper($site_name); ?> IMPORTANT QUICK LINKS</h3>
	</div>
	<div class="light_box">
			<div style="width: 120px; float: left; margin-right: 10px;" class="hide_from_mobile">
			  <?php include("./modules/widgets/goog_txt_img_120_600.php"); ?>
		    </div>
			<div style="width: 120px; float: right; margin-left: 10px;" class="hide_from_mobile">
			  <?php include("./modules/widgets/goog_txt_img_120_600.php"); ?>
		    </div>

					<?php if(isset($error)){ ?>
							<div class="error">
								<ul>
								<?php foreach($error as $errormsg){
									echo "<li>$errormsg</li>"; } ?>
								</ul>
							</div>
						<?php } ?>
						<?php if(isset($msg)){ ?>
							<div class="status">
								<ul>
								<?php foreach($msg as $report_msg){
									echo "<li>$report_msg</li>"; } ?>
								</ul>
							</div>
						<?php } ?>
						<?php if(isset($status_msg)){ ?>
							<div class="content_box">
								<?php foreach($status_msg as $report_status){
									echo $report_status; } ?>
							</div>
					<?php } ?>	
											
					<?php 
					if($list_arr){ 
						foreach($list as $topic_id){
								$topic_title = getTopicPart($topic_id, 'title');
								$slug_title = getTopicPart($topic_id, 'slug_title');
								$topic_url = $site_path . $country . "/" . "forum/" . $topic_id . "/" . $slug_title;
					?>
					<p style="margin-bottom: 3px; line-height: 16px;">	
					&raquo;&nbsp;<a href="<?php echo $topic_url; ?>"><?php echo trim(convertToBold($topic_title)); ?></a>&nbsp;&laquo;
					</p>
					<?php }} ?>
	</div>
	<div class="clearfloat"></div>
			  <?php if($total_records > $max_per_page){ ?>
					<div class="dark_box"><div class="pagination">
						<?php  echo @getPaginationString($page, $total_records, $max_per_page, 2, $target_url, ""); ?>
					</div></div>
			  <?php }else{ ?>
			  		<div class="dark_box"><?php echo $total_records; ?> Topic(s) featured on <?php echo $site_name; ?></div>
			  <?php } ?>
	
	<div class="light_box" style="border-bottom: none;">
			<strong>Members Online:</strong>
			<p class="forum_stats_p">
				There are currently&nbsp;<?php printTotalSectionUsersOnline('forum', $country_id); ?>:&nbsp;
				<?php printTotalSectionMembersOnline('forum', $country_id); ?> and 
				<?php printTotalSectionGuest('forum', $country_id); ?>
				<br />
				<?php
				$list_users_online_arr = listUsersCurrentlyOnlineBySection('forum', $country_id, 1, 3000);
				$count_users_online = count($list_users_online_arr);
				$count_users_online_ticker = 0;
				if($list_users_online_arr)
				{
						foreach($list_users_online_arr as $online_user_id)
						{
							$online_user_name = getUserPart($online_user_id, 'username');
							$count_users_online_ticker = $count_users_online_ticker + 1;
				?>
							<a href="<?php echo $site_path . $online_user_name; ?>"><?php echo $online_user_name; ?></a><?php if($count_users_online != $count_users_online_ticker){ echo ','; } ?>
				<?php
						}
				} ?>
			</p>
			
	
	</div>
	
</div>
<?php include_once("./templates/footer.php"); ?>[/php]

Thank you i will be waiting for your reply. God bless you

by the looks of it it seems that your forum_home.php is in the wrong directory/spot I may be wrong but just double check all your locations for your pages.

I apologize if this dose not help I will be heading to bed and ill take another look when I get back on.

Anyone else please, feeling like knocking myself. Someone should help me please. Everything was fine yesterday.

Sponsor our Newsletter | Privacy Policy | Terms of Service