Support » Plugin: LSD Google Maps Embedder » Activation

  • Resolved kmjw


    Hi Bas,

    Your plugin seems to be exactly what I was looking for. The plugin can’t be activated on my site though. Any ideas how to fix it?

    Nice blog you have btw 🙂

    Plugin could not be activated because it triggered a fatal error.

    process_update(); $updated = true; } $config = get_option(“lsd_gme_config”); if (is_null($config) || $config == ”) { $config = array(); } if ($updated) { $html .= ‘

    ‘.__(‘Settings saved.’,’lsd-gme’).’
    ‘; } $html .= ‘
    ‘.__(‘LSD Google Maps Embedder Options’, ‘lsd-gme’).’

    To retrieve your API key:

    1. Visit the APIs Console at and log in with your Google Account.
    2. Click the Services link from the left-hand menu.
    3. Activate the Google Maps Embed API service.
    4. Click the API Access link from the left-hand menu. Your API key is available from the API Access page, in the Simple API Access section. Maps API applications use the Key for browser apps.
    ‘; $html .= ‘ ‘; $html .= ‘
    Google Maps API

    Your API key looks something like this: AIzaSyCwI3k7JC29_KzlX1S_bC8fARpocLX5bRY

    ‘; echo $html; } private function process_update() { update_option(‘lsd_gme_config’,$_POST[‘config’]); } }
    Fatal error: Class ‘lsd_gme_options’ not found in /var/www/html/wp-content/plugins/lsd-google-maps-embedder/lsd-google-maps.embedder.php on line 20

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Bas Matthee


    Hi kmjw,

    First of all, thank you for the complimant. 🙂

    It is a bad habbit of me to use PHP shorttags for opening scripts. I guess (and hope) that the problem lies there. I just made an update to the code. Could you please check if everything is working as it should?

    If not, can you tell me something about the version of your WordPress installation? So I can install that version and see for myself. The blogs I run all activate the plugin without any problems or errors.

    Thank you for your time and feedback!

    That did the trick, thank you very much! (the version i’m running btw is 3.9.1)

    Is it possible to not display the button view on google maps on the left, the login on the right and the data in the button?

    Can the map be zoomed out one time for the search mode?

    Thank you any ways a lot for this plugin, it looks nice and clean! Very easy to setup 🙂


    The map in search mode used my location at first to display a zoomed in map with the search query. It might have done so because I made the same search on the actual website?

    Now however it looks like this when loading the page

    Thank you for your time,

    Plugin Author Bas Matthee


    Hey Kenny,

    Those are a lot of questions! 😉

    Overlayed buttons
    For as far I can see right now, it is not possible to remove the login/profile data on the top right corner. Same for the other buttons (view in Google Maps). I have tried to include all functionality that is provided for the Google Maps Embed API. (See: For a more complex way of integrating Google’s Maps I can point you to the Google Maps Javascript API. Way more posibilities, but a lot harder to implement as a WordPress plugin with the same easy configuration as this plugin has right now.

    Zoom functionality
    I have just added an optional zoom-parameter. If you don’t fill it up, Google will zoom that all found objects are in the visible area of the map automatically.

    Dropbox image
    That looks strange.. Is there a page online where I can see what is going on there? Besides that, maybe it helps if you play a bit with a different width or height? It default to a width of 100% and a height of 300. You can just add the width and height attributes to the generated shortcode.

    For example: [lsd_gme type="search" q="Hans Struijk fietsen" width="400" height="400"]

    I hope this helps you out of the problems you experience!

    Hi Bas,

    Sorry for troubling you 🙂

    I have found out why the map shows zoomed out and out of center. Normally it automatically detects the area you are browsing from and displays the map to your local point. I have placed the map within an accordion. The problem with this is that when the accordion is loaded being closed, it doesn’t display well.

    You can see the differences here:
    Open accordion:
    Closed accordion: (two different zoom levels in the first and second tab)

    I have read quite a few other cases of people encountering similar issues with maps and accordions. (i.e.

    Furthermore, changing size works great! Best to use percentages I think. Changing the zoom is not functioning with the tweak yet, but when adding it manually within the shortcode it works perfectly.

    Thank you!

    Plugin Author Bas Matthee


    You are welcome! (Graag gedaan 😉 )

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Activation’ is closed to new replies.