These are chat archives for ushahidi/Community

5th
Sep 2015
Ushbot
@ushbot
Sep 05 2015 02:35
[camm_ (guest), irc.freenode.net] laravel is quite impressive
Ushbot
@ushbot
Sep 05 2015 03:07
[camm_ (guest), irc.freenode.net] hmmm, I get the page up, but it admin:admin doesn't login
Cam Macdonell
@cmacdonell
Sep 05 2015 03:17

Reading through the install docs, I think username and ushahidi are reversed here:

DB_HOST=localhost
DB_NAME=username
DB_PASS=password
DB_TYPE=MySQLi
DB_USER=ushahidi

Ushbot
@ushbot
Sep 05 2015 06:43
[Flock] <img src="[https://s3.amazonaws.com/files.heyflock.com/avatar/60x60/330800457586835905-1441434647905.png](https://s3.amazonaws.com/files.heyflock.com/avatar/60x60/330800457586835905-1441434647905.png)" height="24" width="24" /> <strong>Jason</strong><br /><b>What did you accomplish yesterday?</b><br /><ul><li>Exposed Contacts through the API for notification subscriptions</li><li>Fixed a permissions bug on the notifications API</li></ul><b>What are you planning to do today?</b><br /><ul><li>Put the notification subscription UI together</li></ul><b>What challenges stand in your way?</b><br /><ul><li>Limited hours because it's the weekend :-)</li></ul><a href="[https://heyflock.com/app/teams/329986239606292677?date=2015-09-04#](https://heyflock.com/app/teams/329986239606292677?date=2015-09-04#)330808238540849183">View this status on Flock</a>
Ushbot
@ushbot
Sep 05 2015 15:37
[Shan Rizvi] I've just installed v3 but can't get it to work. Anyone around who could help me out?
[Shan Rizvi] Installed following the instructions provided, but when I visit the website, it says "Sorry, something went wrong. Try reloading the page.".
[Shan Rizvi] Strangely enough, when I point the .env config to an older Ushahidi database rather than the new and empty one, the website at least opens but I can't log in because I don't remember the old login details.
[Shan Rizvi] The API site shows this:
[Shan Rizvi] {
"errors": [
{
"message": "Table 'ushahidi.users' doesn't exist [ SELECT `users`.* FROM `users` WHERE `users`.`id` IS NULL LIMIT 1 ]",
"code": 1146,
"class": "Database_Exception",
"file": "/var/www/haalaat.com/public_html/platform/application/classes/Database/MySQLi.php",
"line": 155,
Ushbot
@ushbot
Sep 05 2015 15:43
[Will, Ushahidi] hi @ShanRizviGuest, I can try to help you out
[Will, Ushahidi] it looks like the database has not been correctly created
[Will, Ushahidi] which set of instructions are you following? Is it for the vagrant setup?
[Shan Rizvi] Thanks a lot. It is the Linux setup.
[Will, Ushahidi] groovy
[Will, Ushahidi] gimme two secs
[Will, Ushahidi] you've run "bin/update" and it exited without errors?
[Will, Ushahidi] could you try running
bin/phinx migrate -c application/phinx.php
[Shan Rizvi] Ah. I had misunderstood the "bin/update" instruction. Works like a charm now! :-)
Ushbot
@ushbot
Sep 05 2015 15:48
[Shan Rizvi] Thanks a lot. Cheers!
[Will, Ushahidi] no problem :)
[Will, Ushahidi] let me know if there is anything else, I'll be about for a few hours
Cam Macdonell
@cmacdonell
Sep 05 2015 17:24
Shan, are you able to log in?
Ushbot
@ushbot
Sep 05 2015 17:25
[Shan Rizvi] Yes
Cam Macdonell
@cmacdonell
Sep 05 2015 17:25
How did you get the API error to show up?
I can see my DB is populated with the admin user, but the login still fails
Ushbot
@ushbot
Sep 05 2015 17:30
[Shan Rizvi] I went to the back-end URL for the API, which is configured in platform-client/.env and as a vhost pointing towards platform/httpdocs
Cam Macdonell
@cmacdonell
Sep 05 2015 17:32
Ok, via devtools I see a 400 error "The request is missing an access token in either the Authorization header or the access_token request parameter". Is that something that should be in DB somewhere?

when I try running the phinx command

I get "warning no environment specified, defaulting to: ushahidi", but I have a .env sitting in platform/

Ushbot
@ushbot
Sep 05 2015 19:39
[Shan Rizvi] Hm. That's strange.
Cam Macdonell
@cmacdonell
Sep 05 2015 20:16
I'm not sure it's related to the missing access_token since the DB does seem to be populated properly