Title: Syntax error message when uploading a plugin
Last modified: August 21, 2016

---

# Syntax error message when uploading a plugin

 *  [koulikoun](https://wordpress.org/support/users/koulikoun/)
 * (@koulikoun)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/syntax-error-message-when-uploading-a-plugin/)
 * Hi all,
 * I am trying to upload a plugin but get a error message during the installation
   process. I am new at all this. Can anyone help me resolve this by telling me 
   exactly what to write and where ? Thanks ! 🙂
 * The error message is :
 * Parse error: syntax error, unexpected $end in bla bla bla html/wp-admin/includes/
   class-wp-upgrader.php on line 2475
 * The code is (line 2475 is the last line):
 * $email = array(
    ‘to’ => get_site_option( ‘admin_email’ ), ‘subject’ => $subject,‘
   body’ => implode( “\n”, $body ), ‘headers’ => ” );
 * /**
    * Filter the debug email that can be sent following an automatic background
   core update. * * [@since](https://wordpress.org/support/users/since/) 3.8.0 **
   [@param](https://wordpress.org/support/users/param/) array $email { * Array of
   email arguments that will be passed to wp_mail(). * * [@type](https://wordpress.org/support/users/type/)
   string $to The email recipient. An array of emails can be returned, * as handled
   by wp_mail(). * [@type](https://wordpress.org/support/users/type/) string $subject
   Email subject. * [@type](https://wordpress.org/support/users/type/) string $body
   Email message body. * [@type](https://wordpress.org/support/users/type/) string
   $headers Any email headers. Default empty. * } * [@param](https://wordpress.org/support/users/param/)
   int $failures The number of failures encountered while upgrading. * [@param](https://wordpress.org/support/users/param/)
   mixed $results The results of all attempted updates. */ $email = apply_filters(‘
   automatic_updates_debug_email’
 * Thanks a lot for your help!
 * Cheers

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/syntax-error-message-when-uploading-a-plugin/#post-4884531)
 * what version of WordPress are you running?
 *  Thread Starter [koulikoun](https://wordpress.org/support/users/koulikoun/)
 * (@koulikoun)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/syntax-error-message-when-uploading-a-plugin/#post-4884542)
 * WordPress 3.8.3

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

The topic ‘Syntax error message when uploading a plugin’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [koulikoun](https://wordpress.org/support/users/koulikoun/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/syntax-error-message-when-uploading-a-plugin/#post-4884542)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
