Djive,
I wish i could use standard SAEF but it’s not an option.
I understand it may not be an option, but my question is whether the extension works with a standard SAEF? If it does, the problem is either with FoxEE itself, or with the compatibility between this addon and FoxEE.
That would at least give me some idea where to start looking.
Stephen
Hey Stephen. I remember a while ago some talk about MSM support. Now I’m running into the issue of one API key for multiple domains. I think earlier versions had separate API keys for each MSM site, and you asked about moving to one API key.
Now it’s biting me. Any ways you know of enabling multiple keys? Can I put a new key in the path.php file?
Hi Stephen,
I seem to be having trouble with the maps on a website I’m working on for a client. I’ve inserted an extra custom field into the SAEF they currently use to post new entries. If I’m posting a new entry it and I input the location I want the map to show it works fine; however because my client already has 100+ entries that were made before I installed the maps module, when you visit these pages it displays this at the top of the page:
Notice: Uninitialized string offset: 0 in /home/username/domain/admin/extensions/fieldtypes/sl_google_map/ft.sl_google_map.php on line 579
Notice: Undefined index: pin_lng in /home/username/domain/admin/extensions/fieldtypes/sl_google_map/ft.sl_google_map.php on line 580
Notice: Undefined index: map_zoom in /home/username/domain/admin/extensions/fieldtypes/sl_google_map/ft.sl_google_map.php on line 596
Notice: Undefined index: pin_lat in /home/username/domain/admin/extensions/fieldtypes/sl_google_map/ft.sl_google_map.php on line 597
Notice: Undefined index: pin_lng in /home/username/domain/admin/extensions/fieldtypes/sl_google_map/ft.sl_google_map.php on line 598
Now I tried editing the ‘ft.sl_google_map.php’ file and removing the section where it enters a default location but I’m still getting this error at the top of the page on the front end of my website.
I also tried setting up an if function to say if the location is empty then display nothing. Again, the if function works as it takes away the map and replaces it with nothing however I’m still getting these errors at the top of my page.
Danny
Hi Danny,
Have you had time to take a look at the issue yet? I don’t mean to rush you or anything just wanted to know if anything had been done.
Sorry about the delay in responding. New Year, and too much work have got in the way, and I’m yet to look at this.
I’ll have a quick look at the code, and if it’s obvious where the problem lies I’ll release an update (and let you know). If the solution requires a bit more work, it’ll be at least a week I’m afraid, as I’ve got a couple of launches coming up.
Once again, sorry for the delay; I’m very pushed for time at the moment, and unfortunately paid work needs to take priority.
Cheers, Stephen
I also tried setting up an if function to say if the location is empty then display nothing. Again, the if function works as it takes away the map and replaces it with nothing however I’m still getting these errors at the top of my page.
Just a ‘me too’. I’m getting the same errors if an entry has no data yet. I added the google map field after we’d already had 30+ entries without any data.
I added a check in display_tag() to check the array is passed in and if not reset it to blanks
if ( ! is_array($field_data) OR count($field_data) !== 5)
{
$field_data = array(
'map_lat' => '',
'map_lng' => '',
'map_zoom' => '',
'pin_lat' => '',
'pin_lng' => ''
);
}
Stick that near the top, say after where $fallback is set.
That’s a bit of a hack as I suspect display_tag() shouldn’t be called at all if the data is empty.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.