Title: Parse error: syntax error, unexpected T_STRING in D:\virtualservers\beverley\the
Last modified: August 21, 2016

---

# Parse error: syntax error, unexpected T_STRING in D:\virtualservers\beverley\the

 *  [cottonfactory](https://wordpress.org/support/users/cottonfactory/)
 * (@cottonfactory)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-in-dvirtualserversbeverleythe/)
 * I have been left high and dry by “people per hour ” developer. The site was working
   and then after payment I got the above message. I have no idea about PHP, but
   error says line 27 and there only appears to be 25?
    This is the code:-
 *     ```
       <?php
       /**
        * The main template file.
        *
        * This is the most generic template file in a WordPress theme
        * and one of the two required files for a theme (the other being style.css).
        * It is used to display a page when nothing more specific matches a query.
        * E.g., it puts together the home page when no home.php file exists.
        * Learn more: http://codex.wordpress.org/Template_Hierarchy
        *
        * @package WordPress
        * @subpackage Twenty_Eleven
        */
   
       get_header(); ?>
   
       		<div id="primary">
       			<div id="content" role="main">
   
       			<?php //if ( have_posts() ) : ?>
   
       				<? php //twentyeleven_content_nav( 'nav-above' ); ?>
   
       				<? php /* Start the Loop */ ?>
       				<? php //while ( have_posts() ) : the_post(); ?>
   
       					<? php get_template_part ( 'content', get_post_format() ); ?>
       				<? php //endwhile; ?>
   
       				<? php //twentyeleven_content_nav( 'nav-below' ); ?>
   
       			<?php //else : ?>
   
       				<article id="post-0" class="post no-results not-found">
       					<header class="entry-header">
       						<h1 class="entry-title"><?php //_e( 'Nothing Found', 'twentyeleven' ); ?></h1>
       					</header><!-- .entry-header -->
       					<div class="entry-content">
       						<p><?php //_e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
       						<?php //get_search_form(); ?>
       					</div><!-- .entry-content -->
       				</article><!-- #post-0 -->
   
       			<?php //endif; ?>
   
       			</div><!-- #content -->
       		</div><!-- #primary -->
   
       <?php get_sidebar(); ?>
       <?php get_footer(); ?>
       ```
   
 * _[Please post code or markup between backticks or use the code button. Or better
   still – use a [pastebin](http://pastebin.com/). Your posted code may now have
   been permanently damaged/corrupted by the forum’s parser.]_
 * Any help greatly appreciated.
    The site is [http://www.thecottonfactory.co.uk](http://www.thecottonfactory.co.uk)

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-in-dvirtualserversbeverleythe/#post-3719151)
 * Do not edit the Twenty Eleven theme. First [create a child theme for your changes](http://codex.wordpress.org/Child_Themes).
   Or install a [custom CSS plugin](http://wordpress.org/extend/plugins/search.php?q=custom+css).
 *  Thread Starter [cottonfactory](https://wordpress.org/support/users/cottonfactory/)
 * (@cottonfactory)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-in-dvirtualserversbeverleythe/#post-3719164)
 * Thanks for your quick response but I have no idea how to go about this!The site
   was created by someone else. I will read the info in the link you provided, but
   if i manage to create the child theme do i then change this code to refer to 
   the child theme, or what?
 *  Thread Starter [cottonfactory](https://wordpress.org/support/users/cottonfactory/)
 * (@cottonfactory)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-in-dvirtualserversbeverleythe/#post-3719168)
 * what is the syntax error?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-in-dvirtualserversbeverleythe/#post-3719173)
 * I have no idea at this point. Perhaps if you pasted the error message here, I’d
   have a better idea.
 *  Thread Starter [cottonfactory](https://wordpress.org/support/users/cottonfactory/)
 * (@cottonfactory)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-in-dvirtualserversbeverleythe/#post-3719185)
 * ok
    Parse error: syntax error, unexpected T_STRING in D:\virtualservers\beverley\
   thecottonfactory.co.uk\wwwroot\wp-content\themes\Factory\index.php on line 27
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-in-dvirtualserversbeverleythe/#post-3719193)
 * There’s no problem on line 27 but I can see other issues in that custom theme’s
   index.php template file. I think your best option at the moment is to try switching
   to the default theme by renaming:
 * wp-content\themes\Factory
 * to:
 * wp-content\themes\Factory-old
 * using [FTP](http://codex.wordpress.org/FTP_Clients) or whatever file management
   application your host provides.
 *  Thread Starter [cottonfactory](https://wordpress.org/support/users/cottonfactory/)
 * (@cottonfactory)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-in-dvirtualserversbeverleythe/#post-3719205)
 * And what impact will that have? Will it default to another theme?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-in-dvirtualserversbeverleythe/#post-3719211)
 * Yes – your site will use the default theme for your version of WordPress.
 *  Thread Starter [cottonfactory](https://wordpress.org/support/users/cottonfactory/)
 * (@cottonfactory)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-in-dvirtualserversbeverleythe/#post-3719221)
 * ok, i will give it a go- thanks.
 *  Thread Starter [cottonfactory](https://wordpress.org/support/users/cottonfactory/)
 * (@cottonfactory)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-in-dvirtualserversbeverleythe/#post-3719234)
 * well that got rid of the error message but no site is displayed.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-in-dvirtualserversbeverleythe/#post-3719240)
 * What version of WordPress are you using?
 *  Thread Starter [cottonfactory](https://wordpress.org/support/users/cottonfactory/)
 * (@cottonfactory)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-in-dvirtualserversbeverleythe/#post-3719242)
 * To be honest I have no idea- how do I find out?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-in-dvirtualserversbeverleythe/#post-3719247)
 * Unless you’re comfortable looking into your database tables, this could be a 
   problem…
 * Try re-uploading a fresh, unpacked, copy of the Twenty Eleven folder to wp-content/
   themes using [FTP](http://codex.wordpress.org/FTP_Clients) or whatever file management
   application your host provides.
    [http://wordpress.org/extend/themes/twentyeleven](http://wordpress.org/extend/themes/twentyeleven)
 *  Thread Starter [cottonfactory](https://wordpress.org/support/users/cottonfactory/)
 * (@cottonfactory)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-in-dvirtualserversbeverleythe/#post-3719257)
 * thanks, I have done that but still no site shows. No worries i will see what 
   else can be done. thanks for your help late on a friday night!

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

The topic ‘Parse error: syntax error, unexpected T_STRING in D:\virtualservers\beverley\
the’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 14 replies
 * 2 participants
 * Last reply from: [cottonfactory](https://wordpress.org/support/users/cottonfactory/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-in-dvirtualserversbeverleythe/#post-3719257)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
