Post Installation Map Display Errors!


Hi all

I have completed a seamless installation recently, and now testing the site.

I am just having a few problems with displaying the map points on my installation of Ushahidi.

As I am not very good at programming, I need help with sorting this out.

They are mostly to do with displaying the incidents on the Google map.

Error description:

1. When I click on the 'REPORTS' link from the home page, I get a pop up window with this error: "Error in loading GML file http://mysite/index.php/json/?i=11" >>>> When I click OK, it takes me to this page: (http://mysite/index.php/reports/view/9)

2. The main page - mysite/index.php never displays the reported incidents on the underlying google country map.

I have re-installed the Ushahidi application over and over again without any luck. Any insights will be highly appreciated. Cheers


Make sure URL rewrite works. Check if you can go to the site so http://mysite/reports/view/9


Hi Eyedol, thanks for your reply.

how can I tell if URL rewrite works. In my site's .htaccess file the URL rewrite is enabled. Where else can I check?


These are the settings in my .htaccess file -->

# Turn on URL rewriting

RewriteEngine On

# Installation directory

RewriteBase /


In config.php I have this setting --> $config = '/index.php/';


When I try to access, I get a "page not found" error

But I just inserted 'index.php/' in the URL ( and the page loads, albeit with the following error message:

Error in loading GML file

When I click OK on the pop-up error dialog box,the map still doesnt show the Incidents plotted.

your help is very much appreciated. Cheers


Hi again Eyedol,

At the backend, the incident reports are plotted ok on the map.

I can view this URL OK - "http://mysite/index.php/admin/reports/edit/9"

So the problem seems to be at the front end only.



Same problem, are you running on IIS or *nix? I'm running on IIS 7.5 / Windows Server 2008 R2. Other than maps it seems fine, just a test instance to play with..


I seem to be getting the same error. I have tried everything I can think of (and every solution I can find on here). I am not winning.

In addition, the approve buttons through up an error about file headers, cache.php. file_put_contents.

Has anyone any idea?


Could you check this thread

How about clearing up the cache folder.


Hi eyedol, the other post was me. I've since changed my login to take my email address off line.

I suspect some of these problems are a clash between Kohana and Apache (not sure yet), so I am documenting how to load Ushahidi on local host and I will post here when I know I've got it right.

I think we need instructions 'one level lower' . You say happily clear up the cache folder. Cache appears several times. Which one? And do you really mean this? I've only just installed. It's the install that is frustrating people.


Hi jobucks,

It seems your problem has to do with mod_rewrite. check this post



I had the "Error in loading GML file ..." problem, too. Using XAMPP on Windows XP, the following post by hfastt fixed the problem for me:


I have the whole application working fine except for the Map API I put in. (If that is the problem?) I set about telling the application where I was located and save settings so that location is what should pop up in the first map window when you load Ushahidi but I am still getting the default Nairobi landmark.

Any suggestions?



try this /application/views/main_js.php:

var default_json_url = "<?php echo 'index.php/'.$json_url ?>"


Great choice for a quick setup server