Title: Got error &#8216;PHP message: PHP Parse error: syntax error, unexpected &#8216;)&#8217;
Last modified: June 30, 2022

---

# Got error ‘PHP message: PHP Parse error: syntax error, unexpected ‘)’

 *  Resolved [signelazer](https://wordpress.org/support/users/signelazer/)
 * (@signelazer)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/got-error-php-message-php-parse-error-syntax-error-unexpected/)
 * Hello, maybe it’s linked to the update?
 * php version 7.0
 * [Thu Jun 30 16:21:15.358158 2022] [proxy_fcgi:error] [pid 28666:tid 140399586764544][
   client 85.201.178.207:41506] AH01071: Got error ‘PHP message: PHP Parse error:
   syntax error, unexpected ‘)’ in /home/www/mcbourges/www/wp-content/plugins/post-
   smtp/Postman/PostmanViewController.php on line 678\n’, referer: [https://www.mcbourges.com/wp-admin/plugins.php?plugin_status=all&paged=1&s](https://www.mcbourges.com/wp-admin/plugins.php?plugin_status=all&paged=1&s)
   [
   Thu Jun 30 16:21:16.357236 2022] [proxy_fcgi:error] [pid 28666:tid 140399823136512][
   client 85.201.178.207:41522] AH01071: Got error ‘PHP message: PHP Parse error:
   syntax error, unexpected ‘)’ in /home/www/mcbourges/www/wp-content/plugins/post-
   smtp/Postman/PostmanViewController.php on line 678\n’, referer: [https://www.mcbourges.com/wp-admin/plugins.php?activate=true&plugin_status=all&paged=1&s=](https://www.mcbourges.com/wp-admin/plugins.php?activate=true&plugin_status=all&paged=1&s=)[
   Thu Jun 30 16:21:44.945100 2022] [proxy_fcgi:error] [pid 28666:tid 140399645513472][
   client 123.183.224.102:41806] AH01071: Got error ‘PHP message: PHP Parse error:
   syntax error, unexpected ‘)’ in /home/www/mcbourges/www/wp-content/plugins/post-
   smtp/Postman/PostmanViewController.php on line 678\n’

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

 *  [AUMW-Jay](https://wordpress.org/support/users/aumw-jay/)
 * (@aumw-jay)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/got-error-php-message-php-parse-error-syntax-error-unexpected/#post-15786001)
 * I’m getting the same error message. Had to revert to the last version to restore
   some sites.
 *  [frankdors](https://wordpress.org/support/users/frankdors/)
 * (@frankdors)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/got-error-php-message-php-parse-error-syntax-error-unexpected/#post-15786413)
 * Same problem PHP 7
 * I’ve solved removing comma (,) at line 467
 * From:
    `esc_html__( 'to help spread the word! :D' ),`
 * To:
    `esc_html__( 'to help spread the word! :D' )`
 *  [James W](https://wordpress.org/support/users/uxjw/)
 * (@uxjw)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/got-error-php-message-php-parse-error-syntax-error-unexpected/#post-15786609)
 * I updated to php 7.4 from 7.2 and the error disappeared. Seems odd because it
   should be a syntax error in both versions, but maybe they use different libraries.
 *  [kingfisher64](https://wordpress.org/support/users/kingfisher64/)
 * (@kingfisher64)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/got-error-php-message-php-parse-error-syntax-error-unexpected/#post-15786680)
 * I’m getting the following critical WSOD too:
 *     ```
       Parse error: syntax error, unexpected ')' in /wp-content/plugins/post-smtp/Postman/PostmanViewController.php on line 678
   
       Notice: Function is_embed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /wp-includes/functions.php on line 5831
   
       Notice: Function is_search was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /public_html/wp-includes/functions.php on line 5831
   
       Notice: Function is_page was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /public_html/wp-includes/functions.php on line 5831
   
       Notice: Function is_page was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /public_html/wp-includes/functions.php on line 5831
   
       Notice: Function is_page was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /public_html/wp-includes/functions.php on line 5831
   
       Notice: Function is_search was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /public_html/wp-includes/functions.php on line 5831
       There has been a critical error on this website.
       ```
   
 * Learn more about troubleshooting WordPress.
 *  Plugin Support [M Haseeb](https://wordpress.org/support/users/haseeb0001/)
 * (@haseeb0001)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/got-error-php-message-php-parse-error-syntax-error-unexpected/#post-15787370)
 * [@kingfisher64](https://wordpress.org/support/users/kingfisher64/) [@uxjw](https://wordpress.org/support/users/uxjw/)
   [@frankdors](https://wordpress.org/support/users/frankdors/) [@aumw-jay](https://wordpress.org/support/users/aumw-jay/)
   [@signelazer](https://wordpress.org/support/users/signelazer/)
 * Hi,
 * Hope you all are doing good.
 * Sorry for the inconvenience, our team is looking into this issue and will release
   the latest version as soon as possible.
 * Thanks
 *  Plugin Support [M Haseeb](https://wordpress.org/support/users/haseeb0001/)
 * (@haseeb0001)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/got-error-php-message-php-parse-error-syntax-error-unexpected/#post-15787408)
 * [@kingfisher64](https://wordpress.org/support/users/kingfisher64/) [@uxjw](https://wordpress.org/support/users/uxjw/)
   [@frankdors](https://wordpress.org/support/users/frankdors/) [@aumw-jay](https://wordpress.org/support/users/aumw-jay/)
   [@signelazer](https://wordpress.org/support/users/signelazer/)
 * Please update the plugin to 2.1.3, the issue is fixed.
 * Let me know if the issue still exists.
 * Thanks`
 *  [bpmusic](https://wordpress.org/support/users/bpmusic/)
 * (@bpmusic)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/got-error-php-message-php-parse-error-syntax-error-unexpected/#post-15788081)
 * Hey,
 * i still get an error in wp-content\plugins\post-smtp\Postman\PostmanViewController.
   php line 677, please remove this comma too.
 * esc_html__( ‘I understand and would like to discard this notice’, ‘post-smtp’),
 *  Plugin Support [M Haseeb](https://wordpress.org/support/users/haseeb0001/)
 * (@haseeb0001)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/got-error-php-message-php-parse-error-syntax-error-unexpected/#post-15788262)
 * [@bpmusic](https://wordpress.org/support/users/bpmusic/) are you using latest
   version 2.1.3 ?
 *  Plugin Support [M Haseeb](https://wordpress.org/support/users/haseeb0001/)
 * (@haseeb0001)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/got-error-php-message-php-parse-error-syntax-error-unexpected/#post-15788275)
 * I checked again this issue is already fixed in new version 6.1.3.
 *  [bpmusic](https://wordpress.org/support/users/bpmusic/)
 * (@bpmusic)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/got-error-php-message-php-parse-error-syntax-error-unexpected/#post-15788310)
 * [@haseeb0001](https://wordpress.org/support/users/haseeb0001/) after i removed
   the extra comma i did. the error had blocked the cron job for the autoupdate.
   thanks for the fast response 🙂
 *  [Spinrag](https://wordpress.org/support/users/spinrag/)
 * (@spinrag)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/got-error-php-message-php-parse-error-syntax-error-unexpected/#post-15788582)
 * Updated to 2.1.3 and still have the error!
 *  Plugin Support [M Haseeb](https://wordpress.org/support/users/haseeb0001/)
 * (@haseeb0001)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/got-error-php-message-php-parse-error-syntax-error-unexpected/#post-15794355)
 * [@spinrag](https://wordpress.org/support/users/spinrag/) can you share the screenshot
   of the error and also share the diagnostic test report.
 * Thanks
 *  Plugin Support [M Haseeb](https://wordpress.org/support/users/haseeb0001/)
 * (@haseeb0001)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/got-error-php-message-php-parse-error-syntax-error-unexpected/#post-15842276)
 * [@spinrag](https://wordpress.org/support/users/spinrag/) [@all](https://wordpress.org/support/users/all/)
 * issues fixed, please update the plugins and test.

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

The topic ‘Got error ‘PHP message: PHP Parse error: syntax error, unexpected ‘)’’
is closed to new replies.

 * ![](https://ps.w.org/post-smtp/assets/icon-128x128.gif?rev=3209655)
 * [Post SMTP – Complete Email Deliverability and SMTP Solution with Email Logs, Alerts, Backup SMTP & Mobile App](https://wordpress.org/plugins/post-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/post-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-smtp/reviews/)

 * 13 replies
 * 8 participants
 * Last reply from: [M Haseeb](https://wordpress.org/support/users/haseeb0001/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/got-error-php-message-php-parse-error-syntax-error-unexpected/#post-15842276)
 * Status: resolved