Support » Plugin: WP Google Maps » unexpected T_STRING pGoogleMaps.php on line 2184

  • Resolved mgrzyb


    After the last Update to Version 7.0.00 I got the error when I want activate the plugin:

    Das Plugin kann nicht aktiviert werden, da es einen fatalen Fehler erzeugt.
    Parse error:

    syntax error, unexpected T_STRING in /var/www/vhosts/ on line 2184

    I have also installed the pro version and get the following information:
    WP Google Maps:

    Please ensure you have both the Basic and Pro versions of WP Google Maps installed and activated at the same time in order for the plugin to function correctly.

    But I cannot activate the basic version.
    It doesen’t matter if the pro version is installed or not. The problem seems to be in the basic version.
    So I cannot use the pro version.

    My Wp Version is WordPress 4.9.5 .

    Before the update it worked fine.

    It would be nice to get some help.
    Thank you.

Viewing 11 replies - 1 through 11 (of 11 total)
  • I’m having the same exact problem. The plugin caused my site to crash. Had to call the hosting company because I wasn’t even able to access the wp-admin. They found the plugin at fault was this Google Maps plugin. The site now functions minus the plugin activated. When I try to activate, it provides the following message:

    Parse error: syntax error, unexpected T_STRING in /home1/arcocapi/public_html/wp-content/plugins/wp-google-maps/wpGoogleMaps.php on line 2184

    The site was functioning fine before the recent automatic WordPress update. Currently the site is up and running, but minus the map plugin. Since I’m unable to even activate the plugin, I don’t even know how I can troubleshoot it. In place of the Map on the home page, it instead reads the following: [wpgmza id=”1″]

    A prompt response would be appreciated, so I can get this working again. My client won’t be happy to know their site has been down and now unable to show their map. I’d really like to avoid using a different plugin since this was the only one that fit their needs and aesthetic requirements. Thank you.

    Thread Starter mgrzyb


    Yes, exact the same. First my site crashed totally after the update. I had to delete the map plugin folder from the directory. Now my site work again, but without the map plugin. I installed it again etc. But found no way to get it work with the plugin.


    Hi there

    Thank you very much for bringing this to our attention, we’re very sorry for any inconvenience caused.

    This is being looked into as a matter of urgency and we will release a patch shortly, hopefully within a matter of hours.

    Please bear with us on this issue, if you have live sites which you need working immediately, I suggest downloading a previous version from here to get your site up and running whilst we’re looking in to this issue.

    We will update you as soon as we can!

    Kind regards
    – Perry

    Hi there

    Thank you for your patience in this matter.

    We have dropped support for PHP versions < 5.3 as it has reached “End of life” status, please see the official documentation here regarding version support.

    It’s not recommended to use PHP versions lower than 5.6 due to security reasons as the PHP group are no longer issuing updates, even security updates, for these versions.

    You will need to log in to your websites control panel and switch up.

    You can find more information on this in our documentation here.

    If you are unable to switch versions to PHP >= 5.3, you will need to roll back the plugin. You can do that by visiting this page, clicking “Advanced View” and scrolling down to the bottom to find previous versions of the plugin. Please delete the 7.* plugin via FTP, then upload the 6.* ZIP file through your plugins menu.

    Sorry we can’t be more forthcoming on this issue!

    If you need anything else, please don’t hesitate to ask. I hope this is helpful to you?

    Kind regards
    – Perry

    Thread Starter mgrzyb


    thank you for the support. I changed to php version to 5.6.35 and could activate the plugin again. So the problem was the minor php version.


    Plugin Author NickDuncan


    Thank you for letting us know Michael.

    Same issue. Why do I have to deal with this!!!

    I’ve never installed anything Google Maps so why do I have this error. My site is completely crashed.

    Hi there

    We’re very sorry to hear you are experiencing this issue.

    If you need an immediate fix, you can log in to your sites FTP and delete the plugin folders, then download a previous version by going to the plugin page on this site, clicking “Advanced view” then scrolling to the bottom to see previous versions.

    For a more long term solution, please change the PHP version your site runs through your cPanel or by contacting your host and asking them to switch you to at least version 5.3. According to the official PHP documentation versions below 5.5 are in the “End of life” phase, to quote them, this means “A release that is no longer supported. Users of this release should upgrade as soon as possible, as they may be exposed to unpatched security vulnerabilities.”.

    We strongly recommend that you switch to version 5.6, which will be getting security support until December 2018, or better still, version 7.2, which is actively supported until late 2019.

    Doing so will also solve the parse error you are seeing when trying to use our plugin.

    I hope that helps?

    Kind regards
    – Perry



    I commented a few weeks ago (see above) mentioning the map plugin crashing a website. You mention that updating PHP to something higher than 5.3 would fix the problem, and recommended 5.6 specifically. Well, I just checked and the PHP version is 5.6.32. Yet I’m still experiencing problems. I continue to receive the same following error: Plugin could not be activated because it triggered a fatal error.Parse error: syntax error, unexpected T_STRING in /home1/arcocapi/public_html/wp-content/plugins/wp-google-maps/wpGoogleMaps.php on line 539

    This sucks because the client requires the use of this particular maps plugin due to the way it functioned. Any other ideas? I find it very odd that plugins don’t have a way to let users know if/when they crash a website. Who knows how long the site was down before I became aware. If there are security concerns, then why not just auto disable the plugin, not crash the entire site.



    Hi there

    I’m genuinely sorry to hear you’re experiencing this issue,

    Can you please double check that you are definitely running PHP version 5.6 and that there hasn’t been any delay in applying that setting?

    Line 539 is very straightforward:

    $wpgmza_google_maps_api_loader = new WPGMZA\GoogleMapsAPILoader();

    The only possible source of this error is the parser being unable to interpret the namespace WPGMZA\. Namespaces were introduced in 5.3, we officially support PHP 5.6 and above.

    As per the PHP groups documentation here we strongly recommend that you switch to 5.6, or better still 7.0 and above, as support has been completely dropped for versions below this (including security updates).

    We take every possible measure to ensure updates to our plugin won’t entirely crash sites and that repair over FTP doesn’t become necessary, and we do try to support deprecated versions of PHP for as long as reasonably possible, however we do need to drop support for deprecated software and take advantage of newer technology as PHP moves forward.

    Can you please check your PHP version using a phpinfo plugin or similar?

    As a more short term solution, could you possibly roll back to the last compatible version?

    Kind regards
    – Perry

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘unexpected T_STRING pGoogleMaps.php on line 2184’ is closed to new replies.