Title: Parse error: syntax error, unexpected &#039;
Last modified: August 21, 2016

---

# Parse error: syntax error, unexpected '

 *  [TarikBaad](https://wordpress.org/support/users/tarikbaad/)
 * (@tarikbaad)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-113/)
 * Hi guys,
 * I’m not sure how to fix a parse error in my site. When opening the site it says
   this: Parse error: syntax error, unexpected ‘<‘ in /home3/tarik/public_html/wp-
   content/themes/SolidStart/sidebar.php on line 102
 * This is the php file:
 * _[please make sure to mark any posted code or better use the [pastebin ](http://pastebin.com/)
   which also would show line numbers – [http://codex.wordpress.org/Forum\_Welcome#Posting\_Code](http://codex.wordpress.org/Forum_Welcome#Posting_Code)–
   the code below is partially broken]
 * —
 *     ```
       <div class="span-8 last">
   
       	<div class="sidebar">
   
            <?php if(get_theme_option('socialnetworks') != '') {
           		?>
           			<div class="addthis_toolbox">
           			    <div class="custom_images">
           			            <a><img src="<?php bloginfo('template_directory'); ?>/images/socialicons/twitter.png" width="32" height="32" alt="Twitter" /></a>
           			            <a><img src="<?php bloginfo('template_directory'); ?>/images/socialicons/delicious.png" width="32" height="32" alt="Delicious" /></a>
           			            <a><img src="<?php bloginfo('template_directory'); ?>/images/socialicons/facebook.png" width="32" height="32" alt="Facebook" /></a>
           			            <a><img src="<?php bloginfo('template_directory'); ?>/images/socialicons/digg.png" width="32" height="32" alt="Digg" /></a>
           			            <a><img src="<?php bloginfo('template_directory'); ?>/images/socialicons/stumbleupon.png" width="32" height="32" alt="Stumbleupon" /></a>
           			            <a><img src="<?php bloginfo('template_directory'); ?>/images/socialicons/favorites.png" width="32" height="32" alt="Favorites" /></a>
           			            <a><img src="<?php bloginfo('template_directory'); ?>/images/socialicons/more.png" width="32" height="32" alt="More" /></a>
           			    </div>
           			    <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js?pub=xa-4a65e1d93cd75e94"></script>
           			</div>
           			<?php
           	}
           ?>
   
           <?php if(get_theme_option('ads_125') != '') {
       		?>
       		<div class="sidebaradbox">
       			<?php sidebar_ads_125(); ?>
       		</div>
       	<?php } ?>
   
       <ul>
       			<?php
       					if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
   
       <li><h2><?php _e('Recent Posts'); ?></h2>
       <ul>
       					<?php wp_get_archives('type=postbypost&limit=5'); ?>
       			               </ul>
       </li>
       <li><h2>Archives</h2>
       <ul>
       					<?php wp_get_archives('type=monthly'); ?>
       					</ul>
       </li>
       <li>
       					<h2>Calendar</h2>
       					<?php get_calendar(); ?>
       				</li>
       				<?php wp_list_categories('hide_empty=0&show_count=1&depth=1&title_li=<h2>Categories</h2>'); ?>
   
       				<li id="tag_cloud"><h2>Tags</h2>
       					<?php wp_tag_cloud('largest=16&format=flat&number=20'); ?>
   
       				<?php wp_list_bookmarks(); ?>
   
       				<?php include (TEMPLATEPATH . '/recent-comments.php'); ?>
       				<?php if (function_exists('get_recent_comments')) { get_recent_comments(); } ?>
   
       <li><h2>Meta</h2>
       <ul>
       						<?php wp_register(); ?>
   
       <li><?php wp_loginout(); ?></li>
       <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
       <li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
       						<?php wp_meta(); ?>
       					</ul>
       </li>
       			<?php endif; ?>
       		</ul>
               <?php if(get_theme_option('video') != '') {
           		?>
           		<div class="sidebarvideo">
   
       <ul>
       <li><h2 style="margin-bottom: 10px;">Featured Video</h2>
           			<object width="290" height="220"><param name="movie" value="http://www.youtube.com/v/<?php echo get_theme_option('video'); ?>&hl=en&fs=1&rel=0&border=1"></param>
           				<param name="allowFullScreen" value="true"></param>
           				<param name="allowscriptaccess" value="always"></param>
           				<embed src="http://www.youtube.com/v/<?php echo get_theme_option('video'); ?>&hl=en&fs=1&rel=0&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="290" height="220"></embed>
           			</object>
           			</li>
       </ul>
           		</div>
           	<?php
           	}
           	?>
   
       		<?php if(get_theme_option('ad_sidebar1_bottom') != '') {
       		?>
       		<div class="sidebaradbox">
       			<?php echo get_theme_option('ad_sidebar1_bottom'); ?>
       		</div>
       		<?php
       		}
       	</div>
       </div>
       ---
       ```
   
 * Can someone help please?
 * Thanks a lot in advance.

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

 *  [Ryan Kanner](https://wordpress.org/support/users/ryankanner/)
 * (@ryankanner)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-113/#post-4719371)
 * You need to close the PHP tag in the 3rd to last line. Before the second to last
   </div> just add a ?>
 *  Thread Starter [TarikBaad](https://wordpress.org/support/users/tarikbaad/)
 * (@tarikbaad)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-113/#post-4719373)
 * Ryan! You’re the man, it worked.
    Thanks bro.
 *  [ysharma87](https://wordpress.org/support/users/ysharma87/)
 * (@ysharma87)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-113/#post-4719740)
 * Getting this message
 * Parse error: syntax error, unexpected ‘<‘ in /home/adminalyssum/public_html/wp-
   content/themes/aldehyde/inc/custom-header.php on line 102
 * Please help.
 * Thanks.
 *  [ysharma87](https://wordpress.org/support/users/ysharma87/)
 * (@ysharma87)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-113/#post-4719741)
 * [http://www.alyssumflowers.com](http://www.alyssumflowers.com)

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

The topic ‘Parse error: syntax error, unexpected '’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [ysharma87](https://wordpress.org/support/users/ysharma87/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-113/#post-4719741)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
