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 3.8.0
*
* @param array $email {
* Array of email arguments that will be passed to wp_mail().
*
* @type string $to The email recipient. An array of emails can be returned,
* as handled by wp_mail().
* @type string $subject Email subject.
* @type string $body Email message body.
* @type string $headers Any email headers. Default empty.
* }
* @param int $failures The number of failures encountered while upgrading.
* @param mixed $results The results of all attempted updates.
*/
$email = apply_filters( ‘automatic_updates_debug_email’Thanks a lot for your help!
Cheers
- The topic ‘Syntax error message when uploading a plugin’ is closed to new replies.