Title: PHP Parse error: syntax error
Last modified: December 16, 2021

---

# PHP Parse error: syntax error

 *  Resolved [Mahfuzul Hasan](https://wordpress.org/support/users/mahfuzul/)
 * (@mahfuzul)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-8/)
 * PHP Parse error: syntax error, unexpected ‘}’, expecting ‘)’ in wp-content/plugins/
   optinmonster/views/inline-campaign-shortcode-modal.php on line 14
 * Plugin version: 2.6.9
    WordPress version: 5.8.2

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

 *  [PC](https://wordpress.org/support/users/pranayachaudhary/)
 * (@pranayachaudhary)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-8/#post-15171453)
 * Hi [@mahfuzul](https://wordpress.org/support/users/mahfuzul/)
 * Thanks for reaching out.
 * We’d need to troubleshoot it in order to find the root cause. Its possible there
   is a conflict.
 * Could you please take a moment and send an email to [support@optinmonster.com](https://wordpress.org/support/topic/php-parse-error-syntax-error-8/support@optinmonster.com?output_format=md)
   so that we can find out what is causing it?
 * Looking forward to hearing from you.
 * Regards
 *  Thread Starter [Mahfuzul Hasan](https://wordpress.org/support/users/mahfuzul/)
 * (@mahfuzul)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-8/#post-15276828)
 * The issue is mentioned clearly.
    PHP Parse error: syntax error, unexpected ‘}’,
   expecting ‘)’ in wp-content/plugins/optinmonster/views/inline-campaign-shortcode-
   modal.php **on line 14**
 *  [PC](https://wordpress.org/support/users/pranayachaudhary/)
 * (@pranayachaudhary)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-8/#post-15302614)
 * Hi [@mahfuzul](https://wordpress.org/support/users/mahfuzul/)
 * Thanks for your patience. This is a challenging issue and I wanted to be sure
   I’ve thoroughly investigated it for you before we wrote back 🙂
 * To further investigate the issue at our end, I have enabled the error_log using
   wp-config.php with the OptinMonster plugin version 2.6.9 and WordPress version
   5.9 plus tried adding the OptinMonster inline campaign shortcode but the error
   log shows zero error for me: [https://a.supportally.com/E6y14s](https://a.supportally.com/E6y14s)
 * As you mentioned, I also looked at the inline-campaign-shortcode-modal.php and
   there is no syntax error on line number 14.
 * Could it be possible for you to reinstall the OptinMonster plugin and check for
   the error?
 * If the error still persists, To further troubleshoot the issue, Could it be possible
   for you to run the compatibility test? Try disabling all the plugins keep the
   OptinMonster active and activate plugins one by one to see the error.
 * Also, what is the PHP version you are running?
 * We really want to get to the core of the issue you are facing 🙂
 * Looking forward to hearing from you!
 * Regards
 *  Plugin Author [Angie Meeker](https://wordpress.org/support/users/ameeker/)
 * (@ameeker)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-8/#post-15308346)
 * Hi Mahfuzul,
 * It’s been a little while since we’ve heard from you, so I’m going to let you 
   get back to doing what you do best.
 * That being said, I’m here if you still need any help. Just let me know, and we
   can pick up where we left off. In the meantime, I hope you have a great day and
   take care!

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

The topic ‘PHP Parse error: syntax error’ is closed to new replies.

 * ![](https://ps.w.org/optinmonster/assets/icon-256x256.png?rev=1145864)
 * [Popup Builder & Popup Maker for WordPress – OptinMonster Email Marketing and Lead Generation](https://wordpress.org/plugins/optinmonster/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/optinmonster/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/optinmonster/)
 * [Active Topics](https://wordpress.org/support/plugin/optinmonster/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/optinmonster/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/optinmonster/reviews/)

## Tags

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

 * 4 replies
 * 3 participants
 * Last reply from: [Angie Meeker](https://wordpress.org/support/users/ameeker/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-8/#post-15308346)
 * Status: resolved