Title: Version 4.3.2 throws Parse error
Last modified: July 15, 2022

---

# Version 4.3.2 throws Parse error

 *  Resolved [allan1978](https://wordpress.org/support/users/allan1978/)
 * (@allan1978)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/version-4-3-2-throws-parse-error/)
 * Hi,
 * When updating to the latest version of WP Maps i’m getting the following error:
 * Parse error: syntax error, unexpected ‘)’ in /wp-content/plugins/wp-google-map-
   plugin/wp-google-map-plugin.php on line 311
 * Looking at line 311, it shows an array with a trailing comma, I know that is 
   correct syntax but can’t see why else it’d be throwing an error.
 * **Site is using PHP 7.2 and after some Googling it turns out that the trailing
   comma was only allowed from version 7.3**
 * [https://laravel-news.com/php-trailing-commas-functions](https://laravel-news.com/php-trailing-commas-functions)
 * Thanks,
    Allan
    -  This topic was modified 3 years, 10 months ago by [allan1978](https://wordpress.org/support/users/allan1978/).
    -  This topic was modified 3 years, 10 months ago by [allan1978](https://wordpress.org/support/users/allan1978/).

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

 *  Plugin Author [Flipper Code – WordPress Development Company](https://wordpress.org/support/users/flippercode/)
 * (@flippercode)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/version-4-3-2-throws-parse-error/#post-15827979)
 * Hello Allan,
 * We’re checking the code on PHP 7.2 and getting you back.
 * meanwhile, can you please try to remove comma and check it?
 * Thanks
 *  Plugin Author [Flipper Code – WordPress Development Company](https://wordpress.org/support/users/flippercode/)
 * (@flippercode)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/version-4-3-2-throws-parse-error/#post-15827988)
 * Hello,
 * Please let us know if you were able to fix the issue.
 * You can remove the comma character after below statement :
 * array( $this,’wpgmp_processor’ ){remove comma character from here}
 * Above statement is on line number 310.
 * Please let us know how it turned out for you. In case you are still viewing an
   issue we are here to check and fix the issue quickly for you.
 * Thank You
 *  Thread Starter [allan1978](https://wordpress.org/support/users/allan1978/)
 * (@allan1978)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/version-4-3-2-throws-parse-error/#post-15828343)
 * Hi,
 * I removed the comma from the sites that were affected and they now work as expected
   now.
 * Cheers,
    Allan
 *  Plugin Author [Flipper Code – WordPress Development Company](https://wordpress.org/support/users/flippercode/)
 * (@flippercode)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/version-4-3-2-throws-parse-error/#post-15828392)
 * Hello Allan,
 * Thanks for your input! I’m waiting for some more feedback as this is a new release
   and will update the plugin. Up to now, around 11000 sites updated but we got 
   only one error notification.
 * So it seems that most of the users are using PHP 7.3+ version.
 * Would you like to mark this ticket as resolved?
 * Thanks
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [3 years, 10 months ago](https://wordpress.org/support/topic/version-4-3-2-throws-parse-error/#post-15828417)
 * > Would you like to mark this ticket as resolved?
 * [@flippercode](https://wordpress.org/support/users/flippercode/) This is important.
   _Stop calling support topics “tickets”._
 * Wrongly calling support topics “tickets” sets a very wrong expectation of the
   opensource collaborators who seek support here. Tickets imply “customers” and
   you have no customers on this site. You never have and treating opensource collaborators
   as “customers” is wrong.
 * Please pay attention to that, it is an important detail.
 *  Plugin Author [Flipper Code – WordPress Development Company](https://wordpress.org/support/users/flippercode/)
 * (@flippercode)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/version-4-3-2-throws-parse-error/#post-15828423)
 * [@jdembowski](https://wordpress.org/support/users/jdembowski/) – I got it! and
   will take care in the future! I have worked a lot on technical support on WordPress
   Plugins so I have this habit.
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [3 years, 10 months ago](https://wordpress.org/support/topic/version-4-3-2-throws-parse-error/#post-15828486)
 * Thanks! I appreciate that reply!
 *  Thread Starter [allan1978](https://wordpress.org/support/users/allan1978/)
 * (@allan1978)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/version-4-3-2-throws-parse-error/#post-15828489)
 * [@flippercode](https://wordpress.org/support/users/flippercode/) I’ve a few clients
   sites with legacy hosting that can’t be upgraded past 7.2
 * and yes, you can mark this support topic as closed 🙂
 *  Plugin Author [Flipper Code – WordPress Development Company](https://wordpress.org/support/users/flippercode/)
 * (@flippercode)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/version-4-3-2-throws-parse-error/#post-15828560)
 * Surely, I’ll update the plugin! Thanks!

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

The topic ‘Version 4.3.2 throws Parse error’ is closed to new replies.

 * ![](https://ps.w.org/wp-google-map-plugin/assets/icon-256x256.gif?rev=3111000)
 * [WP Maps - Google Maps,OpenStreetMap,Mapbox,Store Locator,Listing,Directory & Filters](https://wordpress.org/plugins/wp-google-map-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-google-map-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-google-map-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-google-map-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-google-map-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-google-map-plugin/reviews/)

 * 9 replies
 * 3 participants
 * Last reply from: [Flipper Code – WordPress Development Company](https://wordpress.org/support/users/flippercode/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/version-4-3-2-throws-parse-error/#post-15828560)
 * Status: resolved