Title: Parse error: syntax error, unexpected T_VARIABLE
Last modified: August 21, 2016

---

# Parse error: syntax error, unexpected T_VARIABLE

 *  [kathydtg](https://wordpress.org/support/users/kathydtg/)
 * (@kathydtg)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_variable-7/)
 * This is the website [http://visionarygardens.co.uk/](http://visionarygardens.co.uk/)
 * I tried to make a change on media.php file, messed up. I now have this error.
   I was trying to change the image border colour on line on 767
    border: 2px solid#
   cfcfcf;
 * getting this error now whole site down.
    Parse error: syntax error, unexpected
   T_VARIABLE in /home/kathydtg/public_html/visionarygardens.co.uk/wp-includes/media.
   php on line 732
 * This is the code below of the file, many thanks
 * _[ Moderator note: 1,560 unnecessary lines deleted. That’s part of the standard
   WordPress files; if you do need to share please use pastebin.com instead and 
   post that link. ]_

Viewing 6 replies - 1 through 6 (of 6 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_variable-7/#post-3667140)
 * Download a fresh copy of WordPress, extract the wp-includes/media.php file and
   upload it to your site using FTP. And never, EVER, edit core WordPress files.
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_variable-7/#post-3667142)
 * >  I tried to make a change on media.php file, messed up.
 * You really do not want to ever modify files that came with WordPress. As you’ve
   discovered it can go really badly.
 * Try downloading a fresh copy of WordPress 3.5.1 and re-upload all of the files
   in that zip file except for the `wp-content` directory. You can exclude that 
   directory.
 * Or just extract `wp-includes/media.php` and upload just that file.
 * [http://wordpress.org/latest.zip](http://wordpress.org/latest.zip)
 * Once that’s done and you ar back and running: what were you trying to accomplish
   by editing that file?
 * **Edit**: You were trying to change a color, I missed that.
 *  Thread Starter [kathydtg](https://wordpress.org/support/users/kathydtg/)
 * (@kathydtg)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_variable-7/#post-3667145)
 * Thank you so much for your help It has worked. You have made my day, I felt quite
   sick and have to go into hospital tomorrow so was dreaded not having it sorted
   out. I was trying to change the image border colour like on here. I do not like
   they grey around the image
    [http://visionarygardens.co.uk/oriental-themed-garden-design/](http://visionarygardens.co.uk/oriental-themed-garden-design/)
 * I will not be touching core file again
 * Thanks again
 * Kathy
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_variable-7/#post-3667148)
 * That border is controlled by your theme’s CSS – not by any core WordPress file.
   Where did you download the theme from?
 *  Thread Starter [kathydtg](https://wordpress.org/support/users/kathydtg/)
 * (@kathydtg)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_variable-7/#post-3667152)
 * flexithemes, I had a look in the css file but could not see it. Thanks
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_variable-7/#post-3667288)
 * I’m sorry but as you are using a commercial theme, you need to seek support from
   the theme’s developer/vendor. We do not support commercial themes here.
    Try 
   [http://flexithemes.com/support](http://flexithemes.com/support)

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

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

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_variable-7/#post-3667288)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
