Title: Parse error: syntax error
Last modified: August 30, 2016

---

# Parse error: syntax error

 *  Resolved [FinanzProfi](https://wordpress.org/support/users/finanzprofi/)
 * (@finanzprofi)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-121/)
 * Hi
    The plugin works on one of my sites, but not on another. I get the following
   error message when trying to activate the plugin:
 * Parse error: syntax error, unexpected ‘[‘ in xxx/public_html/wp-content/plugins/
   exit-popup-with-an-offer/wordpress-common/php/autience-plugin-class.php on line
   273
 * [https://wordpress.org/plugins/exit-popup-with-an-offer/](https://wordpress.org/plugins/exit-popup-with-an-offer/)

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

 *  Plugin Author [kranthitech](https://wordpress.org/support/users/kranthitech/)
 * (@kranthitech)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-121/#post-6824036)
 * Hi Finanz,
 * Thanks for reporting this issue.
 * Can you tell me which versions of wordpress are your two sites using? The one
   where the plugin is working, and the one where it is not working.
 *  Thread Starter [FinanzProfi](https://wordpress.org/support/users/finanzprofi/)
 * (@finanzprofi)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-121/#post-6824059)
 * Hi Kranthi
    Thank you for your very fast reply.
 * Both use 3.6.1 but the are hosted at several webhosters.
 * The problem could be the php version, which is 5.2.17 (not working) vs. 5.4.21(
   working).
    I have asked my webhost to update the php version of the site where
   it’s not working, I’ll report back here when this has happened.
 *  Plugin Author [kranthitech](https://wordpress.org/support/users/kranthitech/)
 * (@kranthitech)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-121/#post-6824062)
 * Thanks Finanz,
 * Looking forward for your response.
 *  Thread Starter [FinanzProfi](https://wordpress.org/support/users/finanzprofi/)
 * (@finanzprofi)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-121/#post-6824156)
 * After updating the php version to 5.4.45, it’s now working. The above error on
   activation didn’t reappear.
    So the problem was that I was using an old (5.2.17)
   php version. Thanks again.
 *  Plugin Author [kranthitech](https://wordpress.org/support/users/kranthitech/)
 * (@kranthitech)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-121/#post-6824159)
 * Thats great. We’ll update the plugin to work with previous php versions in the
   future.
 * If you found the the plugin useful, please take a few minutes to leave a positive
   review as it means a lot to us 🙂
 * Thanks.

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/exit-popup-with-an-offer_f3bb95.svg)
 * [Exit Popup with Offer by Autience](https://wordpress.org/plugins/exit-popup-with-an-offer/)
 * [Support Threads](https://wordpress.org/support/plugin/exit-popup-with-an-offer/)
 * [Active Topics](https://wordpress.org/support/plugin/exit-popup-with-an-offer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/exit-popup-with-an-offer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/exit-popup-with-an-offer/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [kranthitech](https://wordpress.org/support/users/kranthitech/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-121/#post-6824159)
 * Status: resolved