Title: Parse error: syntax error, unexpected T_STRING
Last modified: August 20, 2016

---

# Parse error: syntax error, unexpected T_STRING

 *  [boycalledben](https://wordpress.org/support/users/boycalledben/)
 * (@boycalledben)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-30/)
 * I am in the process of changing my web hosting from 000webhost to Vidahost, as
   I require more sql databases.
 * I’m using the free Expositio theme ([http://expositio.wpshower.com/](http://expositio.wpshower.com/))
   on my website [http:boycalledben.co.uk](http://boycalledben.co.uk)
 * The site works fine on 000webhost. However, I’ve now setup wordpress on Vidahost
   and have tried installing the exact same version of the theme, but when I activate
   the theme to use it, it comes up with the error:
 * `Parse error: syntax error, unexpected T_STRING in /home/boycalle/public_html/
   wp-content/themes/expositio/includes/theme_options.php on line 1`
 * Now my knowledge of HTML and CSS is minimal, but PHP doesn’t even feature on 
   my radar.
 * Can anybody help?

Viewing 9 replies - 16 through 24 (of 24 total)

[←](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-30/?output_format=md)
[1](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-30/?output_format=md)
2

 *  [jnhghy](https://wordpress.org/support/users/jnhghy/)
 * (@jnhghy)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-30/page/2/#post-2916146)
 * The messed up issue might get fixed with [this code](http://pastebin.com/1xDcRyQf).
   
   We’ll have to check the functions.php code to see if it’s trying to include functions
   that might already be sent.
 *  Thread Starter [boycalledben](https://wordpress.org/support/users/boycalledben/)
 * (@boycalledben)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-30/page/2/#post-2916147)
 * That seems to have done the trick, thank you so much for your help
 * It’s really strange, because whilst I have been speaking to you, I tried installing
   the same theme using a different domain of mine, but still hosted by the same
   company (000webhost), and even that was coming up with the errors.
 * I don’t understand how it can work for one site and not another.
 * Thanks again.
 *  [ebertrand-photos](https://wordpress.org/support/users/ebertrand-photos/)
 * (@ebertrand-photos)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-30/page/2/#post-2916283)
 * Hello everybody,
    I have actually the same problem than boycalledben, trying 
   to install the free “expositio” theme. I downloaded it from [http://wp-themes-pro.com/themes-gratuits/expositio/telechargement](http://wp-themes-pro.com/themes-gratuits/expositio/telechargement).
   From where did you downloaded the one that works ? Thank you by advance.
 *  [jnhghy](https://wordpress.org/support/users/jnhghy/)
 * (@jnhghy)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-30/page/2/#post-2916284)
 * ebertrand-photos,
    From what I know there was no good source and boycakkedben
   had to modify the theme in order to make it work.
 *  [ebertrand-photos](https://wordpress.org/support/users/ebertrand-photos/)
 * (@ebertrand-photos)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-30/page/2/#post-2916285)
 * Ah ok, that’s right, I did not read your last previous exchanges very well, sorry.
   
   I finally decided to buy the COLr template instead of trying to fix the Expositio
   one. Thank you for your answer.
 *  Thread Starter [boycalledben](https://wordpress.org/support/users/boycalledben/)
 * (@boycalledben)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-30/page/2/#post-2916286)
 * Hey dude,
 * jnhghy kindly helped me out in this forum, but there is a much simpler solution
   over on the Expositio forums.
 * [http://wpshower.com/forums/showthread.php?t=3232](http://wpshower.com/forums/showthread.php?t=3232)
 * Change this part of theme_options.php :
 *     ```
       <?php
       /**
       *	Admin styles & scripts
       */
       ```
   
 * To this:
 *     ```
       <?php
       /* Admin styles & scripts */
       ```
   
 *  [ebertrand-photos](https://wordpress.org/support/users/ebertrand-photos/)
 * (@ebertrand-photos)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-30/page/2/#post-2916287)
 * Hi Ben,
    I did that, saved the file and re-export it by FTP to my server, but
   the problem is exactly the same (“Parse error: syntax error, unexpected T_STRING
   in /homez.111/emmanuelu/www/wp-portfolio/wp-content/themes/expositio/includes/
   theme_options.php on line 1”). It does not matter, I paid for the COLr V5 theme.
   I should be able to publish it by the next week-end. Thank you for all.
 *  [SobiaD](https://wordpress.org/support/users/sobiad/)
 * (@sobiad)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-30/page/2/#post-2916362)
 * Hi everyone !!!! I m new to wordpress and wanted some changes in the website.
   As to change the code for searchbox I go into header.php and made some changes
   and just hit update button…but the page does’nt appear and it show error on it
 * > Parse error: syntax error, unexpected T_STRING in /home/austinba/public_html/
   > wp-content/themes/directorypress/header.php on line 155
 * I am confused where did the error coming .I am giving you the code :`
    ?><!DOCTYPE
   html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “[http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt](http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt);
   <html xmlns=”[http://www.w3.org/1999/xhtml&#8221](http://www.w3.org/1999/xhtml&#8221);
   <?php language_attributes(); ?>> <!–[if lte IE 8 ]> <html lang=”en” class=”ie
   ie8″> <![endif]–> <!–[if IE 9 ]> <html lang=”en” class=”ie”> <![endif]–> <head
   profile=”[http://gmpg.org/xfn/11″&gt](http://gmpg.org/xfn/11″&gt); <meta http-
   equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php 
   bloginfo(‘charset’); ?>” />
 * <title><?php wp_title(‘«’, true, ‘right’); ?> <?php bloginfo(‘name’); ?></title
   >
 * <?php wp_head(); ?>
    <!–[if lt IE 9]> <script src=”[http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js”></script&gt](http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js”></script&gt);
   <script src=”[http://html5shiv.googlecode.com/svn/trunk/html5.js”></script&gt](http://html5shiv.googlecode.com/svn/trunk/html5.js”></script&gt);
   <![endif]–> </head>
 * <body <?php ppt_body_class(); ?>>
 * <?php premiumpress_top(); /* HOOK */ ?>
 *  <div class=”wrapper <?php $PPTDesign->CSS(“ppt_layout_width”); ?>”>
 *  <?php premiumpress_header_before(); /* HOOK */ ?>
 *  <div id=”header” class=”full”>
 *  <?php function _bit_header_inside(){ /* HEADER WITH LOGO + BANNER */
 *  global $wpdb,$PPT;
 *  return ‘<div class=”w_960″>
 *  <div class=”f_half left” id=”logo”>
 *  <a href=”‘.$GLOBALS[‘bloginfo_url’].’/” title=”‘.get_bloginfo(‘name’).'”>
 *  <img src=”‘.$PPT->Logo(true).'” alt=”‘.get_bloginfo(‘name’).'” />
 *  </a>
 *  </div>
 *  </div> <!– end header w_960 –>’;
 *  } ?>
 *  <?php echo premiumpress_header_inside(_bit_header_inside()); /* HOOK / FILTER*/?
   >
 *  <div class=”clearfix”></div>
 *  </div> <!– end header –>
 *  <?php premiumpress_header_after(); /* HOOK */ ?>
 *  <?php premiumpress_menu_before(); /* HOOK */ ?>
 *  <?php function _bit_menu_inside(){ /* MENU BAR */
 *  global $wpdb,$PPT; $string=”;
 *  $string .= ‘<div class=”menu” id=”menubar”> <div class=”w_960″>’;
 *  if(has_nav_menu(‘PPT-CUSTOM-MENU-PAGES’)){ $string .= wp_nav_menu( $GLOBALS[‘
   blog_custom_menu’] ); }else{
 *  $string .= ‘<ul>
 *  <li class=”first”><a href=”‘.$GLOBALS[‘bloginfo_url’].’/” title=”‘.get_bloginfo(‘
   name’).'”>’.$PPT->_e(array(‘head’,’1′)).'</a></li>
    ‘.premiumpress_pagelist().’
   </ul>’;
 *  }
 *  $string .= ‘</div><!– end menubar w_960 –> </div><!– end menubar –>’;
 *  return $string;
 *  }
    ?>
 *  <?php echo premiumpress_menu_inside(_bit_menu_inside()); /* HOOK / FILTER */?
   >
 *  <?php echo premiumpress_menu_after(); /* HOOK */ ?>
 *  <?php if(isset($GLOBALS[‘ppt_layout_styles’][‘submenubar’]) && isset($GLOBALS[‘
   ppt_layout_styles’][‘submenubar’][‘hide’]) && $GLOBALS[‘ppt_layout_styles’][‘
   submenubar’][‘hide’] == 1){ ?>
 *  <?php }else{ ?>
 *  <?php premiumpress_submenu_before(); /* HOOK */ ?>
 *  <div id=”submenubar”>
 *  <?php function _bit_submenu_inside(){ /*SUB MENU BAR */
 *  global $wpdb,$PPT, $userdata; get_currentuserinfo(); $string=”;
 *  $string .= ‘<div class=”w_960″>’;
 *  if(isset($GLOBALS[‘ppt_layout_styles’][‘submenubar’]) && isset($GLOBALS[‘ppt_layout_styles’][‘
   submenubar’][‘search’]) && $GLOBALS[‘ppt_layout_styles’][‘submenubar’][‘search’]
   == 1){
 *  $string .= ‘<div id=”hpages”><ul>’.premiumpress_pagelist().'</ul></div>’;
 *  }else{
 *  $string .= “<form method=’get’ action=<‘”.$GLOBALS[‘bloginfo_url’].”/ <name=’
   searchBox’ id=’searchBox’>
    <input type=’text’ value=”.$PPT->_e(array(‘head’,’
   2′)).” name=’s’ id=’s’ onfocus=”this.value=”;”‘/>;
 *  if(isset($GLOBALS[‘ppt_layout_styles’][‘submenubar’]) && isset($GLOBALS[‘ppt_layout_styles’][‘
   submenubar’][‘hidecat’]) && $GLOBALS[‘ppt_layout_styles’][‘submenubar’][‘hidecat’]
   == 1){ }else{
    // BUILD CATEGORY DROP DOWN LIST $catdata = premiumpress_categorylist(
   0,’toponly’); if(strlen($catdata) > 1){ $string .= ‘<select id=”catsearch” name
   =”cat”><option value=””> </option>’.$catdata.'</select>’; } }
 *  $string .= ‘<div class=”searchBtn left” onclick=”document.searchBox.submit();”
   >  </div>’;
 *  if(get_option(“display_advanced_search”) ==1){
    $string .= ‘<a href=”javascript:
   jQuery(‘; $string .= “‘#AdvancedSearchBox’).show();”; $string .= ‘javascript:
   void(0);”‘; $string .=”><small>”.$PPT->_e(array(‘head’,’3′)).”</small></a>”; }
   $string .= ‘</form>’;
 *  }
 *  $string .= ”;
 *  $string .= ‘</div> <!– end w_960 –>’;
 *  return $string;
 *  } ?>
 *  <?php echo premiumpress_submenu_inside(_bit_submenu_inside()); /* HOOK / FILTER*/?
   >
 *  </div><!– end submenubar –>
    <div class=”flashbanner”><img title=”JAM Music”
   src=”[http://www.austinbandsearch.com/wp-content/themes/directorypress/template_directorypress/images/flashbanner.jpg&#8221](http://www.austinbandsearch.com/wp-content/themes/directorypress/template_directorypress/images/flashbanner.jpg&#8221);
   alt=”JAM Music” width=”960″ height=”238″/></div>
 *  <?php premiumpress_submenu_after(); /* HOOK */ ?>
 *  <?php } ?>
    ` I dont know where is the error plz help me
 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-30/page/2/#post-2916363)
 * Look, read the forum welcome sticky. If you have a problem start your own post.
   If you have a theme you paid for contact them. There is no support here for themes
   you pay for . . .

Viewing 9 replies - 16 through 24 (of 24 total)

[←](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-30/?output_format=md)
[1](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-30/?output_format=md)
2

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

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 24 replies
 * 6 participants
 * Last reply from: [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-30/page/2/#post-2916363)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
