Title: header.php error
Last modified: August 18, 2016

---

# header.php error

 *  [ainhoa711](https://wordpress.org/support/users/ainhoa711/)
 * (@ainhoa711)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/headerphp-error/)
 * I was trying to install a plugin and I accidentally messed up my webpage, so 
   I deleted the plugin and went back to the original header.php file (I had modified
   it while installing the plugin) but now this error comes up!
 * Warning: require_once(/home/ainhacom/public_html/wp-content/themes/blixed-10/
   BX_functions.php) [function.require-once]: failed to open stream: No such file
   or directory in /home/ainhacom/public_html/wp-content/themes/blixed-10/header.
   php on line 2
 * Fatal error: require_once() [function.require]: Failed opening required ‘/home/
   ainhacom/public_html/wp-content/themes/blixed-10/BX_functions.php’ (include_path
   =’.:/usr/lib/php:/usr/local/lib/php’) in /home/ainhacom/public_html/wp-content/
   themes/blixed-10/header.php on line 2
 * My page is [http://www.ainhoavega.com](http://www.ainhoavega.com) and since I
   don’t know php I would really appreciate some help… the header.php code is:
 *     ```
       <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
       <?php require_once get_template_directory()."/BX_functions.php"; ?>
       <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
       <head>
       	<title><?php bloginfo('name'); wp_title(); ?></title>
       	<meta http-equiv="Content-Type" content="<?php bloginfo('charset'); ?>" />
       	<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
       	<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen, projection" />
       	<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
       	<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
       	<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
       	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
       	<?php /*comments_popup_script(520, 550);*/ ?>
       	<?php wp_head();?>
       </head>
   
       <body><div id="container"<?php if (is_page() && !is_page("archives")) echo " class=\"singlecol\""; ?>>
   
       <!-- header ................................. -->
       <div id="header">
       	<h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
       </div> <!-- /header -->
   
       <!-- navigation ................................. -->
       <div id="navigation">
   
       	<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get">
       		<fieldset>
       			<input value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" />
       			<input type="submit" value="Go!" id="searchbutton" name="searchbutton" />
       		</fieldset>
       	</form>
   
       	<ul>
       		<li<?php if (is_home()) echo " class=\"selected\""; ?>><a href="<?php bloginfo('url'); ?>">Home</a></li>
       		<?php
       		$pages = BX_get_pages();
       		if ($pages) {
       			foreach ($pages as $page) {
       				$page_id = $page->ID;
          				$page_title = $page->post_title;
          				$page_name = $page->post_name;
          				if ($page_name == "archives") {
          					(is_page($page_id) || is_archive() || is_search() || is_single())?$selected = ' class="selected"':$selected='';
          					echo "<li".$selected."><a href=\"".get_page_link($page_id)."\">Archives</a></li>\n";
          				}
          				elseif($page_name == "about") {
          					(is_page($page_id))?$selected = ' class="selected"':$selected='';
          					echo "<li".$selected."><a href=\"".get_page_link($page_id)."\">About</a></li>\n";
          				}
          				elseif ($page_name == "contact") {
          					(is_page($page_id))?$selected = ' class="selected"':$selected='';
          					echo "<li".$selected."><a href=\"".get_page_link($page_id)."\">Contact</a></li>\n";
          				}
          				elseif ($page_name == "about_short") {/*ignore*/}
                  	 	else {
                   		(is_page($page_id))?$selected = ' class="selected"':$selected='';
                   		echo "<li".$selected."><a href=\"".get_page_link($page_id)."\">$page_title</a></li>\n";
                   	}
           		}
           	}
       		?>
       	</ul>
   
       </div><!-- /navigation -->
   
       <hr class="low" />
       ```
   

The topic ‘header.php error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [ainhoa711](https://wordpress.org/support/users/ainhoa711/)
 * Last activity: [18 years, 7 months ago](https://wordpress.org/support/topic/headerphp-error/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
