WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Fatal Error when activating Basic Google Maps Placemarks

[Resolved] Fatal Error when activating Basic Google Maps Placemarks

  • Hi Ian. Thanks for making your BGMP available for WordPress
    available for free. I’ve just gone to install the latest version on my
    own WordPress site (running 3.1.3) but get the following fatal error
    when I press to activate it:
    Parse error: syntax error, unexpected T_STRING, expecting
    T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in
    <blogURL>/wp-content/plugins/basic-google-maps-placemarks/basic-google-maps-placemarks.php on line 47.

    As you’re offering it for free, I’ll understand if you
    don’t want to provide technical support, but if you have any ideas and
    can spare the time, I’d be grateful. All the best, Marc

    http://wordpress.org/extend/plugins/basic-google-maps-placemarks/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Marc, I’m pretty sure this is because your server is running PHP 4, and the plugin requires PHP 5. The next version of WordPress (which comes out in a couple weeks) will also require PHP 5. You can check if that’s the problem by installing one of these plugins:

    If that’s the case, then you’ll need to ask your hosting company to put you on a newer server. PHP 4 has been obsolete since 2008 and the newer versions have a lot of security fixes, new features, etc.

    I’ll make sure the next release handles that issue more gracefully, though, instead of just throwing the fatal error.

    Marc e-mailed me saying that PHP 4 was the problem. If anyone else runs into this error, make sure you’re running PHP 5.

    Thank you Ian. I’m pleased to say you were correct. Even better, I have been able to upgrade to PHP 5 simply by logging into my 1&1 hosting control panel and changing the ‘Global PHP Version’ from 4 to 5. My PHP info page had previously displayed 4.4.9; now it displays 5.2.17 and your plugin has installed successfully. Thank you for the tip!

    I just released version 1.1.3, which fixes the fatal error. If someone tries to activate the plugin on a PHP4 server they’ll get a warning and explanation instead.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Fatal Error when activating Basic Google Maps Placemarks’ is closed to new replies.