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

---

# Parse Error: syntax error, unexpected T_STRING

 *  [valiumobsequy](https://wordpress.org/support/users/valiumobsequy/)
 * (@valiumobsequy)
 * [14 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-25/)
 * Hi! I’m literally brand new to WordPress & I’m pretty sure I’ve already managed
   to mess things up. I attempted to edit the theme “LightWorld.2.0.0.6” under custom_header
   to change the values for the height & width of the header. However, I’m sure 
   I did it wrong because I got this: Parse error: syntax error, unexpected T_STRING
   in /home/whisperw/public_html/valiumobsequy/wp-content/themes/lightword/custom_header.
   php on line 16
 * & with that, I don’t have access to the Dashboard or anything else. Could someone
   help me please? I really don’t know what to do. :/

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

 *  [J Andrew Scott](https://wordpress.org/support/users/jascott/)
 * (@jascott)
 * [14 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-25/#post-2648480)
 * Something got screwed up in your PHP. Do you have FTP access to the offending
   file and can you post the contents of line 16 and preceding?
 *  Thread Starter [valiumobsequy](https://wordpress.org/support/users/valiumobsequy/)
 * (@valiumobsequy)
 * [14 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-25/#post-2648484)
 * define( ‘HEADER_IMAGE_WIDTH’, apply_filters( ‘basic_header_image_width’, $lw_top_header_image_width));
   
   define( ‘HEADER_IMAGE_HEIGHT’, apply_filters( ‘basic_header_image_height’, $lw_top_header_image_height));
 * // Don’t support text inside the header image.
    define( ‘NO_HEADER_TEXT’, true);
 * // Add a way for the custom header to be styled in the admin panel that controls
   //
   custom headers. See yourtheme_admin_header_style(), below. add_custom_image_header(”,‘
   basic_admin_header_style’ );
 * // … and thus ends the changeable header business.
 * if ( ! function_exists( ‘basic_admin_header_style’ ) ) :
    /** * Styles the header
   image displayed on the Appearance > Header admin panel. * * Referenced via add_custom_image_header()
   in yourtheme_setup(). * * [@since](https://wordpress.org/support/users/since/)
   3.0.0 */ function basic_admin_header_style() { ?> <style type=”text/css”> #headimg{
   height: <?php echo HEADER_IMAGE_HEIGHT; ?>px; width: <?php echo HEADER_IMAGE_WIDTH;?
   >px; } #headimg h1, #headimg #desc { display: none; } </style> <?php } endif;?
   >
 * — That’s what’s in the theme that I downloaded. However, I’m having trouble accessing
   my site through FTP so I can just tell you what I put in that I believe messed
   it up.
 * define( ‘HEADER_IMAGE_WIDTH’, apply_filters( ‘basic_header_image_width’, 1802px_top_header_image_width));
 * I had added the 1802px in place of $lw because I thought that was how I could
   change the allowed width
 *  [J Andrew Scott](https://wordpress.org/support/users/jascott/)
 * (@jascott)
 * [14 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-25/#post-2648488)
 * $lw_top_header_image_width is a variable name. If you change that, it’s going
   to blow up on you. If you want to set the width manually, replace:
 * > `
   >  define( ‘HEADER_IMAGE_WIDTH’, apply_filters( ‘basic_header_image_width’,
   > $lw_top_header_image_width ) );`
 * with
 * > `define( 'HEADER_IMAGE_WIDTH', 1802 );`
 *  Thread Starter [valiumobsequy](https://wordpress.org/support/users/valiumobsequy/)
 * (@valiumobsequy)
 * [14 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-25/#post-2648493)
 * Thanks! But, how do I do it? I get the error on every part of the Dashboard
 *  [J Andrew Scott](https://wordpress.org/support/users/jascott/)
 * (@jascott)
 * [14 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-25/#post-2648647)
 * If you don’t have FTP access, your hosting service may offer web-based tools 
   for managing files, a la cPanel or Plesk. If you don’t have access to anything,
   it’s time to call tech support.
 *  [bigjwalk](https://wordpress.org/support/users/bigjwalk/)
 * (@bigjwalk)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-25/#post-2648818)
 * I now ge t error below:
 * Parse error: syntax error, unexpected T_STRING in /hermes/bosweb/web224/b2240/
   ipg.secretrestaurantreci/wp-config.php on line 90
 * Below is the end of my wp-config.php file. Line 90 is the one in bold type. What
   do I do to correct it?
 * define(‘WP_DEBUG’, false);
 * /* That’s all, stop editing! Happy blogging. */
 * /** Absolute path to the WordPress directory. */
    if ( !defined(‘ABSPATH’) ) **
   define(‘ABSPATH’, dirname(__FILE__) . ‘/’);**
 * /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . ‘wp-
   settings.php’d);
 *  [bigjwalk](https://wordpress.org/support/users/bigjwalk/)
 * (@bigjwalk)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-25/#post-2648819)
 * I now ge t error below:
 * Parse error: syntax error, unexpected T_STRING in /hermes/bosweb/web224/b2240/
   ipg.secretrestaurantreci/wp-config.php on line 90
 * Below is the end of my wp-config.php file. Line 90 is the one in bold type. What
   do I do to correct it?
 * define(‘WP_DEBUG’, false);
 * /* That’s all, stop editing! Happy blogging. */
 * /** Absolute path to the WordPress directory. */
    if ( !defined(‘ABSPATH’) ) **
   define(‘ABSPATH’, dirname(__FILE__) . ‘/’);  /\*\* Sets up WordPress vars and
   included files. \*/ require_once(ABSPATH . ‘wp-settings.php’d);
 *  [Tikvinki](https://wordpress.org/support/users/tikvinki/)
 * (@tikvinki)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-25/#post-2648820)
 * Hi,
 * I have tried to add a post but does not appear. I have viewed the site and this
   is what I get: Parse error: syntax error, unexpected T_STRING in /home/content/
   39/8861539/html/wp-content/themes/simple-catch/single.php on line 44
 * I have contacted my host and they said its the default.
 * any help.
 *  [bigjwalk](https://wordpress.org/support/users/bigjwalk/)
 * (@bigjwalk)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-25/#post-2648821)
 * Once I uninstall and then reinstall wordpress, I can access my admin login. But
   once I go to Settings, General, and edit the sub domain on the WordPress Address(
   URL) and Site Address (URL) and save, I get errors when I click on anything in
   my Dashboard and it is impossible to do anything but uninstall again. How do 
   I get control of my site again? My other site [http://www.secretrestaurantrecipessite.com](http://www.secretrestaurantrecipessite.com)
   woks perfectly fine, but [http://www.specialtomeyouare.com/hello](http://www.specialtomeyouare.com/hello)
   is broken. Please help!
 * I uninstalled wordpress because I kept getting the error below after trying to
   edit the sub domain on the WordPress Address (URL) and Site Address (URL).
 * Parse error: syntax error, unexpected T_STRING in /hermes/bosweb/web224/b2240/
   ipg.secretrestaurantreci/wp-config.php on line 90

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

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

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 4 participants
 * Last reply from: [bigjwalk](https://wordpress.org/support/users/bigjwalk/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-25/#post-2648821)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
