• Resolved sylvain

    (@sylvaingord)


    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 to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author DylanAuty

    (@dylanauty)

    Hi @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

    (@sylvaingord)

    Hi @dylanauty,

    The version of PHP is 5.6…

    Thank you,
    Sylvain

    Plugin Author DylanAuty

    (@dylanauty)

    Hi @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

    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)
  • You must be logged in to reply to this topic.