Title: Parse error: syntax error
Last modified: September 13, 2024

---

# Parse error: syntax error

 *  Resolved [sylvain](https://wordpress.org/support/users/sylvaingord/)
 * (@sylvaingord)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-190/)
 *     ```wp-block-code
       Parse error: syntax error, unexpected ':', expecting ';' or '{' in .../wp-content/plugins/wp-google-maps/includes/class.dom-element.php on line 714
       ```
   
 * I have an issue when I insltal the plugin.
   Some help please.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fparse-error-syntax-error-190%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [DylanAuty](https://wordpress.org/support/users/dylanauty/)
 * (@dylanauty)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-190/#post-18016529)
 * Hi [@sylvaingord](https://wordpress.org/support/users/sylvaingord/),
 * Thank you for getting in touch, we do appreciate your time. I am sorry for the
   trouble you are experiencing. Could I ask you to confirm what version of PHP 
   you are using on your site? This can usually be found within your hosting control
   panel.
 * It appears your server is loading one of our files which includes a return declaration,
   but this is not expected within your PHP version, causing the error seen. Once
   I know more about your environment, I should be able to assist further.
 *  Thread Starter [sylvain](https://wordpress.org/support/users/sylvaingord/)
 * (@sylvaingord)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-190/#post-18017685)
 * Hi [@dylanauty](https://wordpress.org/support/users/dylanauty/),
 * The version of PHP is 5.6…
   Thank you,Sylvain
 *  Plugin Author [DylanAuty](https://wordpress.org/support/users/dylanauty/)
 * (@dylanauty)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-190/#post-18019268)
 * Hi [@sylvaingord](https://wordpress.org/support/users/sylvaingord/),
 * Thank you for confirming, I do appreciate it. Unfortunately, that is the issue
   as the plugin requires PHP 7 or above, as it uses return types. This also aligns
   with later WordPress versions requiring PHP 7 or above to function as expected.
 * We would highly recommend upgrading your PHP version as 5.6 reached end of life
   in 2019, and version 7 has also, more recently, reached end of life as well. 
   For the latest PHP versions you can take a look at the official versioning page
   here: [https://www.php.net/supported-versions.php](https://www.php.net/supported-versions.php)
 * We do try our best to support older versions of PHP for an extended time, with
   PHP 5 still being supported earlier this year, but we did have to upgrade our
   code base to the latest standards and as a result had to drop support for PHP
   5.

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

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

 * ![](https://ps.w.org/wp-google-maps/assets/icon-256x256.png?rev=3058363)
 * [WP Go Maps - Google Maps, OpenStreetMap, Leaflet Map](https://wordpress.org/plugins/wp-google-maps/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-google-maps/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-google-maps/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-google-maps/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-google-maps/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-google-maps/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [DylanAuty](https://wordpress.org/support/users/dylanauty/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-190/#post-18019268)
 * Status: resolved