Login   Register  
PHP Classes
elePHPant
Icontem

Error

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Phoogle Maps  >  All threads  >  Error  >  (Un) Subscribe thread alerts  
Subject:Error
Summary:Error
Messages:3
Author:toni
Date:2008-11-11 02:26:55
Update:2008-11-12 19:27:58
 

  1. Error   Reply  
Picture of toni
toni
2008-11-11 02:26:55
Hi, I use phoogle in my sites and it works well, but today appear an error:

Code:
Fatal error: Cannot use string offset as an array in /home/public_html/phoogle.php on line 132

In the line 132:
php Code:
if (empty($results['kml'][Response]['Placemark']['Point']['coordinates'])){


What's happen? Google changed something in the google maps api?

Thankyou

  2. Re: Error   Reply  
Picture of Michael Clark
Michael Clark
2008-11-11 19:26:17 - In reply to message 1 from toni
Add this line <?php if(!trim($data)) return; // strips all whitespace strings ?> before the first line of function characterData(...). Just spent a couple hours debugging it.

  3. Re: Error   Reply  
Picture of Ivan Melgrati
Ivan Melgrati
2008-11-12 19:27:58 - In reply to message 2 from Michael Clark
Micael:
It works like a charm!!! Thanks a million!

Iván