Parse error: syntax error, unexpected T_STRING
-
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/) on my website 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 1Now my knowledge of HTML and CSS is minimal, but PHP doesn’t even feature on my radar.
Can anybody help?
-
The messed up issue might get fixed with this code.
We’ll have to check the functions.php code to see if it’s trying to include functions that might already be sent.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.
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.
From where did you downloaded the one that works ?
Thank you by advance.ebertrand-photos,
From what I know there was no good source and boycakkedben had to modify the theme in order to make it work.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.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
Change this part of theme_options.php :
<?php /** * Admin styles & scripts */To this:
<?php /* Admin styles & scripts */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.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”>
<html xmlns=”http://www.w3.org/1999/xhtml” <?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″>
<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>
<script src=”http://html5shiv.googlecode.com/svn/trunk/html5.js”></script>
<![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” alt=”JAM Music” width=”960″ height=”238″/></div><?php premiumpress_submenu_after(); /* HOOK */ ?>
<?php } ?>
`
I dont know where is the error plz help meLook, 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 . . .
The topic ‘Parse error: syntax error, unexpected T_STRING’ is closed to new replies.