Title: Coding Problem
Last modified: August 20, 2016

---

# Coding Problem

 *  Resolved [Musicyouneed](https://wordpress.org/support/users/musicyouneed/)
 * (@musicyouneed)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/coding-problem-2/)
 * I’m getting the code error “Parse error: syntax error, unexpected $end in /home/
   content/11/9043111/html/wp-content/themes/myntheme/header.php on line 59” and
   I need help ASAP! I can’t find where this problem is coming from. Please see 
   code below:
 *     ```
       <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
       <html xmlns="http://www.w3.org/1999/xhtml" dir="<?php bloginfo('text_direction'); ?>" xml:lang="<?php bloginfo('language'); ?>">
           <head>
       <meta name="google-site-verification" content="vcfqtBPOxgamh4_9-LtEQegY-5DplMxggSRV20o1eSk" />
       <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
               <title><?php wp_title ( '|', true,'right' ); ?></title>
               <meta http-equiv="Content-language" content="<?php bloginfo('language'); ?>" />
       		<link rel="profile" href="http://gmpg.org/xfn/11" />
               <link rel="shortcut icon" href="http://www.lyjastadlenbrown.com/wp-content/uploads/2012/06/favicon.ico" type="image/x-icon" />
               <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>" />
               <!--[if IE]><link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('template_url'); ?>/ie.css" /><![endif]-->
               <?php
       			wp_enqueue_script('jquery');
       			wp_enqueue_script('cycle', get_template_directory_uri() . '/js/jquery.cycle.all.min.js', 'jquery', false);
       			wp_enqueue_script('cookie', get_template_directory_uri() . '/js/jquery.cookie.js', 'jquery', false);
                   if ( is_singular() ) wp_enqueue_script( 'comment-reply' );
                   wp_enqueue_script('script', get_template_directory_uri() . '/js/script.js', 'jquery', false);
       		?>
               <?php wp_head(); ?>
               <?php if ( is_home() && !get_option('ss_disable') ) : ?>
       <meta name="alexaVerifyID" content="5FgLblJnAwxmSLsAfaJsfHdvyZo" />
       <script type="text/javascript">
   
         var _gaq = _gaq || [];
         _gaq.push(['_setAccount', 'UA-29886050-1']);
         _gaq.push(['_trackPageview']);
   
         (function() {
           var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
           ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
           var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
         })();
   
       </script>
       	</head>
       	<body <?php echo (get_option('bg_color')) ? 'style="background-color: '.get_option('bg_color').';"' : '' ?>>
               <div class="wrapper">
   
                   <div class="header clear">
                       <div class="logo">
                            <a href="<?php bloginfo('home'); ?>"><img src="http://i1254.photobucket.com/albums/hh609/musicyouneed/myn_header.jpg" alt="<?php bloginfo('name'); ?>"/></a>
                       </div>
   
                       <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Site description') ) ?>
   
                       <?php get_search_form(); ?>
   
                       <?php wp_nav_menu(array('menu' => 'Top menu', 'theme_location' => 'Top menu', 'depth' => 1, 'container' => 'div', 'container_class' => 'menu', 'menu_id' => false, 'menu_class' => false)); ?>
   
                   </div>
   
                   <?php wp_nav_menu(array('menu' => 'Navigation', 'theme_location' => 'Navigation', 'depth' => 2, 'container' => 'div', 'container_class' => 'nav', 'menu_class' => 'dd', 'menu_id' => 'dd', 'walker' => new extended_walker())); ?>
   
                   <?php if ( is_home() && !get_option('ss_disable') ) get_template_part('slideshow'); ?>
   
                   <!-- Container -->
                   <div id="container" class="clear">
       		<!-- Content -->
                       <div id="content">
       ```
   
 * The error says line 59, and there are only 60 lines. I can’t seem to find the
   problem. Please let me know what you see as soon as you can as my site is currently
   down! Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [IMICreation](https://wordpress.org/support/users/nitin_8/)
 * (@nitin_8)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/coding-problem-2/#post-3068905)
 * close the if statement with <?php endif; >
 *  Thread Starter [Musicyouneed](https://wordpress.org/support/users/musicyouneed/)
 * (@musicyouneed)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/coding-problem-2/#post-3068983)
 * Got it! Thank you so much!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Coding Problem’ is closed to new replies.

## Tags

 * [Coding](https://wordpress.org/support/topic-tag/coding/)
 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)
 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Musicyouneed](https://wordpress.org/support/users/musicyouneed/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/coding-problem-2/#post-3068983)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
