TEMPORARY POST: I couldn’t post this on the forum and it is late. So here it is for people working in the next few hours.
FIRST, please note that I am no expert. Just stubborn and two days of searching found me this post. I thought I had tried this before but evidently something has changed and this time it has worked.
PREVIOUS ISSUES
1. The map on my main page was not showing incidents.
2. I was getting cache errors when I used tabs to approve/verify incidents.
FIX
1. The problem is in the .htaccess file as usual
2. I found this [url= http://webdevnetwork.co.uk/category/kohana/] link[/url] . It links through to other sites. Coders might like to check this out for us.
3. Precipitating Condition: Kohana running on some versions of Apache servers
4. Quoting now from the above link.
No input file specified’ – Kohana/htaccess Error
November 1st, 2009
When using .htaccess to remove index.php from urls in Kohana sometimes you may find yourself getting a “No Input File Specified” error. This had my head in a pickle for quite some time until I found this post.
If PHP is running on Apache as a CGI module then Apache won’t support “PATH_INFO” which is used inside Kohana (CodeIgniter too).
There’s a simple fix, edit the .htaccess file and replace the last line like so:
#RewriteRule .* index.php/$0 [PT,L]
RewriteRule ^(.+)$ index.php?kohana_uri=$1 [L]
STEPS
1. For other noobes lik me, first make a copy of your existing .htaccess file with a different name such as original.htaccess. (Just in case you want to go back to it.)
2 Open the .htaccess file in Wordpad (not Notepad which lays out in a continuous thread.) Be careful. Detail matters.
3. Read down the file and note that our .htaccess has some stuff after this Rewrite rule. We are not working on our last line. Look For the Rewrite rule similar to the first line of the couplet above.
4. Now edit. Add a # to the existing Rewrite Rule to turn it into a comment.
5. Then cut and paste the second line of from the couplet above. It should look like the couplet above.
6. Save and run.
IMPROVEMENT?
I hope so. A lot of my bugs a gone. I can see a few left but I can see my incidents on the front page (yay) and I am basically functional.
GOOGLE MAPS
I don’t know if this will work without changing the API. I had already replaced mine.
I am running on ‘localhost’ so when I went to get a Google API, I typed in http://localhost/mysitename.
Again for noobes, on my own computer mysitename is at c://wamp/www/mysitename and all the Ushahidi files are in that folder. e.g., c://wamp/www/mysitename/application.
COPY OF MY .HTACCESS
# Turn on URL rewriting
RewriteEngine On
# Installation directory
RewriteBase /mysitename/
# Protect application and system files from being viewed
RewriteRule ^(application|modules|system) – [F,L]
# Prevent schedulers from being accessed remotely
RewriteCond %{REMOTE_ADDR} !^127.0.0.1$
RewriteRule ^.*/scheduler/.*$ – [F,L]
# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
`# Rewrite all other URLs to index.php/URL`
# RewriteRule ^(.*)$ index.php/$0 [PT,L]
RewriteRule ^(.+)$ index.php?kohana_uri=$1 [L]
# Protect the htaccess from being viewed
<Files .htaccess>
order allow,deny
deny from all`
</Files>
# Don’t show directory listings for URLs which map to a directory.
Options -Indexes
[/code]
SUMMARY: THINGS TO CHECK
The problem is caused by Kohana running on some Apache servers and is fixed by modifying a Rewrite rule in your .htaccess file.
Check Lines 2, 4 from top are correct (carefully) and edit lines 8&9 from the bottom (not counting blank lines).
MORE HELP & SOLIDARITY
It’s close to midnight here. I’ll check in first thing in the morning to see if I can help anyone who is still stuck.
THANKS
Thanks eyedol for your quick response to our tweet today and to Charlie for working together this evening! Hope to see your on Dreamhost soon!
Hey,
Just applied this changes to .htaccess that you posted above and the issue is fixed. So glad that the Ushahidi install is finally working. Was stuck with this prob for months!! Thanks.
Hoping I don’t come across another bug now, lets see 🙂
And ya, I shouldn’t have deleted those lines from the .htaccess file, but being the noob that I am … and desperate to make the Ushahidi install work.. I tried by deleting the lines.. Stupid me! 😛
Yes, I’m installing it on dreamhost.
If I may ask, what are you working on with Ushahidi?
Hi Jo
a million thanks for help with getting my location map to be the default location when Ushahidi launched. I added that 2nd # Rewrite etc + kahuna line and I am now getting the locations showing up.
Cheers to you
Ronan
It was a pleasure Ronan. Good luck with your site.