Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Getting "Google Map Selection Field" module to work


4 Posts   1525 Views

Samba Sam

2 September 2009 at 1:09pm (Last edited: 2 September 2009 1:16pm), Community Member, 85 Posts

When I follow the directions for installing by inserting the following in MYSITE/_CONFIG.PHP:
EditableGoogleMapSelectableField::$api_key = ABQIAAAAVl6l2mFrWO_iYsdKj2q7zhQZsr62tCq9UT--lZNx8crCYi83XRSvxwfvahQWD86LeX6MhJUSRbSKXg;

I get the following error:
Parse error: syntax error, unexpected T_DEC in /home3/islandro/public_html/connienimmon/mysite/_config.php on line 31

Any ideas?

Samba Sam

2 September 2009 at 1:25pm Community Member, 85 Posts

Got it to work.
I just needed to add the quotes around the key:
As in
EditableGoogleMapSelectableField::$api_key ="ABQIAAAAVl6l2mFrWO_iYsdKj2q7zhQZsr62tCq9UT--lZNx8crCYi83XRSvxwfvahQWD86LeX6MhJUSRbSKXg";


16 September 2009 at 2:21am Community Member, 34 Posts

yes, the installing instruction was bad

Installation Instructions
- Enter your google map API key in your mysite/_config.php file like

EditableGoogleMapSelectableField::$api_key = YOUR API KEY HERE;

should be better

EditableGoogleMapSelectableField::$api_key = "YOUR API KEY HERE";


16 September 2009 at 2:34pm Forum Moderator, 5511 Posts

This has been fixed in the module to make it a bit more clearer. But FYI - you quote every string in PHP, only time you don't is when you're referencing a constant (pre defined) value.