Title: Plugin Fatal Error
Last modified: December 23, 2016

---

# Plugin Fatal Error

 *  Resolved [robscott](https://wordpress.org/support/users/robscott/)
 * (@robscott)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/plugin-fatal-error-10/)
 * Hi,
 * Have the Mailgun plugin installed on a site, and upgrade causes a fatal error:
 * `Parse error: syntax error, unexpected '[' in /var/www/vhosts/[CLIENTSITE]/httpdocs/
   wp-content/plugins/mailgun/mailgun.php on line 139`
 * Just going to troubleshoot this in that site and report back any findings.
 * Note that line 139 of the relevant file is this:
 * `public function api_call($uri, $params = [], $method = 'POST')`
 * Everything worked fine before upgrade, but note this broke site on v 1.5.1, 1.5.2
   and 1.5.3.
 * Will comment back if / when I find solution!
    -  This topic was modified 9 years, 5 months ago by [robscott](https://wordpress.org/support/users/robscott/).

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

 *  Thread Starter [robscott](https://wordpress.org/support/users/robscott/)
 * (@robscott)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/plugin-fatal-error-10/#post-8584971)
 * Okay I can see what this error is – PHP version on this site needed to be updated
   > 5.6. That works.
 *  [beauhase](https://wordpress.org/support/users/beauhase/)
 * (@beauhase)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/plugin-fatal-error-10/#post-8602060)
 * Hi [@robscott](https://wordpress.org/support/users/robscott/),
 * I was running into that same problem, except I was getting a blank page in WP
   dashboard when I would try to activate the newly updated Mailgun plugin. I upgraded
   PHP from 5.3 to 5.6 and it fixed the issue!
 * Thanks

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

The topic ‘Plugin Fatal Error’ is closed to new replies.

 * ![](https://ps.w.org/mailgun/assets/icon-256x256.png?rev=2434524)
 * [Mailgun for WordPress](https://wordpress.org/plugins/mailgun/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailgun/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailgun/)
 * [Active Topics](https://wordpress.org/support/plugin/mailgun/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailgun/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailgun/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [beauhase](https://wordpress.org/support/users/beauhase/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/plugin-fatal-error-10/#post-8602060)
 * Status: resolved