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, Ed, biapar, Willr, Ingo, swaiba

Getting "Google Map Selection Field" module to work

Go to End

4 Posts   1825 Views

Samba Sam

Community Member, 85 Posts

2 September 2009 at 1:09pm

Edited: 02/09/2009 1:16pm

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

Community Member, 85 Posts

2 September 2009 at 1:25pm

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


Community Member, 34 Posts

16 September 2009 at 2:21am

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";


Forum Moderator, 5523 Posts

16 September 2009 at 2:34pm

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.