Coder Social home page Coder Social logo

ushahidi / ushahidi_web Goto Github PK

View Code? Open in Web Editor NEW
897.0 110.0 626.0 15.75 MB

Ushahidi v2. A platform that allows information collection, visualization and interactive mapping, allowing anyone to submit information through text messaging using a mobile phone, email or web form.

Home Page: http://www.ushahidi.com

License: Other

PHP 72.69% CSS 4.51% JavaScript 16.95% HTML 4.25% Hack 0.03% TSQL 1.58%

ushahidi_web's Introduction

Deprecated

You are probably looking for https://github.com/ushahidi/platform and https://github.com/ushahidi/platform-client. You can find all the latest documentation, how to contribute, and how to install the new version at https://docs.ushahidi.com/index/

Ushahidi Platform

The Ushahidi Platform is an open source web application for information collection, visualization and interactive mapping. It allows people to collect and share their own stories using various mediums such as SMS, Web Forms, Email or Twitter. For more information about the platform and use cases (case studies) visit: http://www.ushahidi.com

System Requirements

To install the platform on your computer/server, the target system must meet the following requirements:

  • PHP version 5.2.3 or greater (5.3 or greater is recommended)
  • MySQL version 5.0 or greater
  • An HTTP Server. Kohana, which Ushahidi is built on, is known to work with the following web servers:
    • Apache 1.3+
    • Apache 2.0+
    • lighttpd
    • nginx
    • Microsoft Internet Information Server (MS IIS)
  • Unicode support in the operating system

Required Extensions

The following is a list of PHP extensions that must be installed on your server in order for Ushahidi to run properly:

NOTE: Need to figure out what extensions you already have installed on your server? Here are instructions to do just that: http://jontangerine.com/silo/php/phpinfo/

Optional Server Requirements

To use Ushahidi's "Clean URLS" feature on an Apache Web Server, you will need the mod_rewrite module and the ability to use local .htaccess files.

###Installing mod_rewrite

#####Debian/Ubuntu flavours of Linux

sudo a2enmod rewrite

#####CentOS, OS X and Windows

Make sure the following line is NOT commented in your httpd.conf

LoadModule rewrite_module

###Additional Configuration To check if local .htaccess files are allowed, verify that the "AllowOverride" directive in your Apache config (for the web server directory in which you have installed Ushahidi) has been set to "All" i.e.:

<Directory [your-document-root-directory]>
    ...
    AllowOverride All
    ...
</Directory>

NOTE:

  • Clean URLs means that the URLs of your deployment will not have the 'index.php' prefix
  • You MUST restart your Apache web server after making the changes outlined above

Installation

  • ####Download and extract Ushahidi You can obtain the official release of the software from the download site. Alternatively, you can find downloads for the current and previous releases on the Wiki

    To unzip/extract the archive on a typical Unix/Linux command line:

      tar -zxvf Ushahidi_Web-xxxx.tar.gz
    

    or in the case of a zip file:

      unzip Ushahidi_Web-xxxx.zip
    

    This will create a new directory Ushahidi_Web-xxxx containing all the Ushahidi platform files and directories - Move the contents of this directory into a directory within your webserver's document root or your public HTML directory.

    #####Getting the latest develop code (CAUTION: only do this if you know what you're doing)

    clone the latest code from github

      git clone --recursive git://github.com/ushahidi/Ushahidi_Web.git
    

    We add the recursive flag so that git will clone the submodules too

  • ####Ensure the following directories are writable (i.e. have their permission values set to 777)

    • application/config
    • application/cache
    • application/logs
    • media/uploads
    • .htaccess

    On Unix/Linux, you can change the permissions as follows:

      cd path-to-webserver-document-root-directory
      chmod -R 777 application/config
      chmod -R 777 application/cache
      chmod -R 777 application/logs
      chmod -R 777 media/uploads
      chmod 777 .htaccess
    

    NOTE: The process of configuring file permissions is different for various operating systems. Here are some helpful links about permissions for the Windows (http://support.microsoft.com/kb/308419) and Unix (http://www.washington.edu/computing/unix/permissions.html) operating systems.

  • ####Create the Ushahidi database Ushahidi stores all its information in a database. You must therefore create this database in order to install Ushahidi. This is done as follows:

      mysqladmin -u 'username' -p create 'databasename'
    

    MySQL will prompt for the password for the database password and then create the initial database files. Next, you must log in and set the database access rights:

      mysql -u 'username' -p
    

    Again, you will be prompted for the 'username' database password. At the MySQL prompt, enter the following command:

      GRANT SELECT, INSERT, DELETE, UPDATE, CREATE, DROP, ALTER, INDEX, LOCK TABLES on database.* 
      TO 'username'@'localhost' IDENTIFIED BY 'password';
    

    Where:

    • 'databasename' is the name of your database
    • 'username@localhost' is the name of your MySQL account
    • 'password' is the password required for that username

    NOTE: Your account must have all the privileges listed above in order to run Ushahidi on your webserver.

  • ####Ensure PHP error_reporting level is compatable As of PHP-5.4 Ushahidi doesn't work with the error_reporting level E_STRICT. Ensure this level is excluded from the error_reporting configuration.

  • ####Run the install script To run the install script, point your browser to the base url of your website: (e.g. http://www.example.com).

    You will be guided through a series of screens to set up the database and site settings depending on the installation method you choose (Basic or Advanced)

  • ####Clean up

    Delete the installer

    Leaving the installer files in your installation is a security risk. Now you've installed successfully, Delete the entire installer directory

    Remove write permissions from config files
      cd path-to-webserver-document-root-directory
      chmod -R 755 application/config
      chmod 644 application/config/*
      chmod 644 .htaccess
    

Additional Information

For further references and documentation, head over to our wiki (http://wiki.ushahidi.com). Also, we encourage you to drop by our forums (https://wiki.ushahidi.com/display/forums/Ushahidi+Forums) if you have any additional questions or concerns.

ushahidi_web's People

Contributors

alexandro82 avatar antikathistemi avatar aoduor avatar brianherbert avatar ekala avatar evansims avatar eyedol avatar filbertkm avatar hz-labs avatar jasonmemory avatar jekhor avatar jetherton avatar jlewallen avatar jmwenda avatar kamaulynder avatar lmmrssa avatar milovanderlinden avatar myrne avatar nigelmcnie avatar notgeorge avatar ovruni avatar pdestefanis avatar prd-interarma avatar rjmackay avatar rowasc avatar shakhal avatar solarissmoke avatar soyapi avatar srutto avatar tevin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ushahidi_web's Issues

Lack of HTTP request-code

Description by selvam v.

When SMS messages are posted via HTTP there is no request-code (e.x 200) sent to the receiver to specify the status of the request. The messages are being processed properly, but lack of request-code would make it difficult to debug when issues arise between receiver and sender.

Settings > map page

Description by Bug R.

From: Erik Hersman

Created at http://bugs.ushahidi.com

* VERY slow loading.
* Is there a way to load the page with just the default map, or static maps, that only then load up when triggered? Otherwise, it feels like the page (or your internet connection) is broken.

Auto Date information

Description by Bug R.

From: Erik Hersman ([email protected])

Created at http://bugs.ushahidi.com

We know when a report is received and/or being created. We need to AUTOMATICALLY have that date and time selected within the system. It's a real pain in the ass to go through that every time, when we know when it came in.

Default = time created

Users will have to deselect and then enter in another date/time if they want to create a post-dated report. Just makes more sense.

This little bit of usability just irks me to know end...

Any questions, or concerns on this, please come beat me over the head. Thanks! :)

Email => Dashboard - RESOLVED

Description by Bug R.

From: Juliana

Created at http://bugs.ushahidi.com

for the hhi.ushahidi instance, when i call http://hhi.ushahidi.com/scheduler/email to update emails on the dashboard i get the following error

An error was detected which prevented the loading of this page. If this problem persists, please contact the website administrator.

application/libraries/Imap.php [60]:

Undefined property: stdClass::$subject
Resolution by Jason M.
Fixed:

Added checking for object properties retrieved from email headers

Problems with adding new admins

Description by selvam v.

After adding new admins, not able to login using the new username/password. The following error gets displayed on the login page.

"Please check that you entered the correct password."

creating report error

Description by Bug R.

From: Juliana

Created at http://bugs.ushahidi.com

Got the error below when i tried to create reports from twitter reports #KEVarsitydemo on kenya.ushahidi.com

An error was detected which prevented the loading of this page. If this problem persists, please contact the website administrator.

system/libraries/View.php [235]:

Only variable references should be returned by reference

Entering Phone numbers in for the receiving SMS

Description by Bug R.

From: Erik Hersman

Created at http://bugs.ushahidi.com

I get this message in when I try to put in a phone number with a "+" on the front of it:

"The phone 1 field should contain numbers only."

Seems we should allow for that, and have it show up like that on the homepage so that people enter in the right number.

Adding Organization error - RESOLVED

Description by Bug R.

From: Juliana

Created at http://bugs.ushahidi.com

on demo.ushahidi.com Adding an organization throws the following error

Please check the Kohana documentation for information about the following error.

system/libraries/ORM.php [406]:

The organization_email property does not exist in the Organization_Model class.
Resolution by David K.
Fixed:

Changeset [ushahidi:20a0c363efce53d37b72085881115e93ded65c6e]:

* Fixed dashboard message count
* Added email to scheduler table
* Resolved #90 with missing columns in table

Admin: "Approve" messages

Description by Bug R.

From: Erik Hersman

Created at http://bugs.ushahidi.com

Small change here. When someone has approved a message, it appears as a green colored "Approve", instead of the normal blue colored "approve". This is misleading, let's change it to "Approved" when done instead.

Incomplete Alerts link via e-mail - RESOLVED

Description by Bug R.

From: Selvam Velmurugan

Created at http://bugs.ushahidi.com

When signing-up for alerts, I get the following incomplete URL to verify the alert. It works fine if I manually append my domain before the URL.

"Please follow the link below to confirm your alert request: //alerts/verify/IMWXRK"
Resolution by Jason M.
Fixed:

The url should now display correctly as long as $config['site_domain'] is configured in application/config/config.php

Add Category Lags On Admin Report Page

Description by Bug R.

From: Brian Herbert

Created at http://bugs.ushahidi.com

Usability issue here. When you hit "new category", fill out the information and then hit "add", it sometimes doesn't get added right away. Since there is no indication that anything is happening, the user will quite possibly hit the add link multiple times, creating the same category the number of times clicked.

Adding Organization error - RESOLVED

Description by Bug R.

From: Juliana

Created at http://bugs.ushahidi.com

on demo.ushahidi.com Adding an organization throws the following error

Please check the Kohana documentation for information about the following error.

system/libraries/ORM.php [406]:

The organization_email property does not exist in the Organization_Model class.
Resolution by David K.
Fixed:

Changeset [ushahidi:20a0c363efce53d37b72085881115e93ded65c6e]:

* Fixed dashboard message count
* Added email to scheduler table
* Resolved #90 with missing columns in table

DRC Issues

From: Ory

Created at http://bugs.ushahidi.com

  • Location: Goma, Kenya (in admin panel, country reference is Kenya in test reports, not drc)

Also users should be notified that their reports will be moderated first like we did with Ushahidi original.

Email alerts not working - RESOLVED

Description by Ahmad M.

Once I try to sign up for alert, I receive a confirmation page stating that an email was sent for it to confirm my email address.

But nothing happens. Checked the backend code but didn't see anything about using email::send function.

Anybody know something about this?

p.s. tried running email::send and it works fine.
Resolution by Jason M.
Fixed:

A confirmation email should be sent when either SMTP or sendmail is configured correctly. Refer to application/controllers/alerts.php and application/config/email.php

Error while creating report from Twitter message

Description by selvam v.

An error was detected which prevented the loading of this page. If this problem persists, please contact the website administrator.

system/libraries/View.php [235]:

Only variable references should be returned by reference

unable to create new user - liberia - RESOLVED

Description by Bug R.

From: erik

Created at http://bugs.ushahidi.com

I'm trying to setup a new user in Liberia, have tried multiple username/password combos and still get the following error message:

An error was detected which prevented the loading of this page. If this problem persists, please contact the website administrator.

application/libraries/Validation.php [547]:

call_user_func(Users_Controller::username_exists_chk): First argument is expected to be a valid callback
Resolution by Henry A.
Fixed:

Fixed

Alerts error - RESOLVED

Description by Bug R.

From: Juliana

Created at http://bugs.ushahidi.com

I got the following error when I selected the option to receive an email alert whenever reports are entered regarding Nairobi.

Warning: Unterminated comment starting line 148 in /hsphere/local/home/ushahidi/kenya.ushahidi.com/system/vendor/swift/Swift/Message.php on line 148 Parse error: syntax error, unexpected $end, expecting T_FUNCTION in /hsphere/local/home/ushahidi/kenya.ushahidi.com/system/vendor/swift/Swift/Message.php on line 148
Resolution by Jason M.
Fixed

reports and report filtering

Description by Bug R.

From: erik hersman

Created at http://bugs.ushahidi.com

Al Jazeer is a good test for this. If I filter by "x" category and there are more reports than can be listed in any one incident bubble, it says "more". If I click on more, I get taken to the full reports page: http://labs.aljazeera.net/warongaza/reports/

I should be getting the full reports for just category "x"

We need smarter filtering of reports, and listing of reports.

Undefined index: custom_field

Description by Bug R.

From: Brian Muita

Created at http://bugs.ushahidi.com

When trying to create a new report I'm getting

application/controllers/admin/reports.php [472]: Undefined index: custom_field

I'm using the latest revision on the repo.

"Submit via SMS" button

Description by Bug R.

From: Erik Hersman

Created at http://bugs.ushahidi.com

When I've created a new number that receives SMS messages for Ushahidi, it shows up on the homepage. That's good.

However, there is also this button, "Submit via SMS" that has a selector, yet goes nowhere. Is this supposed to dynamically create another page with the SMS # on it, along with some other data?

If it's just creating another page with that same SMS number, then it should just disappear. If it's going to a page with more information, then how as the admin do I add that new info to the user?

Twitter Admin error - RESOLVED

Description by Bug R.

From: Selvam Velmurugan

Created at http://bugs.ushahidi.com

Get the following error when trying to setup Twitter via Admin interface. I've installed both curl and php5-curl libraries.

Fatal error: Call to undefined function curl_init() in /root/ushahidi/application/controllers/admin/messages.php on line 358
Resolution by Brian H.
Fixed:

Looks like Selvam already figured it out. I went ahead and added a check for curl so it would fail a little more gracefully.

Kiwanja, DRC not found

Description by Bug R.

From: Erik Hersman

Created at http://bugs.ushahidi.com

We have a report that someone has fled from Kiwanja, in the DRC. However, it's not showing up in the nameserver. Is there anything we can do about that?

Ushahidi DRC page errors

Description by Bug R.

From: Ory

Created at http://bugs.ushahidi.com

French and English both appearing on the home page rather than one or the other. Also, the news reports in French and English run together, so it is not clear where one starts and the other begins, this is because the "enter" button doesn't work in admin once you enter a report that's it...the format sticks, you can't change anything during an edit. If that could be fixed or a separate box for the manual translation be added that would be great.

Report field

Description by Bug R.

From: Ory Okolloh

Created at http://bugs.ushahidi.com

When editing it, e.g. after I get a translation I can't format at all e.g. can't use the return button to create space.

3 Forum bugs

Description by Bug R.

From: Chris Blow

Created at http://bugs.ushahidi.com

1.) The input fields on signin are white-on-white.

something like this needs to be added:

div.hlright form input { color: #333 }

  there is an unclosed meta tag in the top of the header, which might actually be causing the problem from the markup.
  There is an overlapping div on the profile page.

best! c

Reports error

Description by Bug R.

From: Juliana

Created at http://bugs.ushahidi.com

In the admin pane of Kenya.ushahidi.com when I click on Reports, I get the following error

Runtime Message An error was detected which prevented the loading of this page. If this problem persists, please contact the website administrator. application/views/admin/reports.php [150]:

Undefined variable: submit_by

Delete Disabled & 'Create report from twitter' not working

Description by Bug R.

From: Juliana

Created at http://bugs.ushahidi.com

On the Kenya.ushahidi.com instance,

http://kenya.ushahidi.com/admin/messages/twitter Messages cannot be deleted?

Error message when I try to create a report from twitter messages gathered from Hashtags...

An error was detected which prevented the loading of this page. If this problem persists, please contact the website administrator.

system/libraries/View.php [235]:

Only variable references should be returned by reference

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.