Title: Parse error: syntax error, unexpected $end, expecting
Last modified: August 20, 2016

---

# Parse error: syntax error, unexpected $end, expecting

 *  [Ricardo Durand](https://wordpress.org/support/users/ricardo-durand/)
 * (@ricardo-durand)
 * [14 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-expecting/)
 * Hello, all!
 * A few weeks ago, I deactivated Jetpack to troubleshoot some problems in my website
   i-tech.com.pt. Now, each time I try to activate it, I get the same error, over
   and over again:
 * **Parse error: syntax error, unexpected $end, expecting ‘)’ in /home/itechcompt/
   i-tech.com.pt/wp-content/plugins/jetpack/jetpack.php on line 265**
 * I guess that going to the source code of it, in the Edit option of the plugin,
   and correct something i can go throughout this one. By the error, i guess there
   is something wrong in line 265. So, I copy-pasted the the code of jetpack.php
   to Dreamweaver that showed me the lines. Line 256 (the last one) displays this:
 * **‘old_version’, // (string) Used to determine which modules are the most recently
   added. previous_ver **
 * Can anyone help me identifying the error??
    Thanks a lot!

Viewing 1 replies (of 1 total)

 *  [Tim Moore](https://wordpress.org/support/users/tmoorewp/)
 * (@tmoorewp)
 * [14 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-expecting/#post-2743312)
 * Try downloading a new copy of Jetpack from [http://wordpress.org/extend/plugins/jetpack](http://wordpress.org/extend/plugins/jetpack).
   Then delete the copy you have, upload the new copy by FTP, and activate it. Things
   should work ok.

Viewing 1 replies (of 1 total)

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

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Tim Moore](https://wordpress.org/support/users/tmoorewp/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-expecting/#post-2743312)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
