These are chat archives for ushahidi/Community

15th
Sep 2017
Hapee
@hapee
Sep 15 2017 09:20
Hi Guys, doing another attempt to run V3 and I am stuck with this clear remark in the install document can you elaborate on this should do and why it is not working:
./bin/phinx migrate -c application/phinx.php
Ushbot
@ushbot
Sep 15 2017 09:28
[David Losada, Ushahidi] what’s the error you are getting hapee?
Hapee
@hapee
Sep 15 2017 09:34
in the repository there is no ./bin/phinx in the repository and after the npm install also not, so I installed phinx from source and than I have phinx but the document assumes apparently that ./bin/phinx is there or should be created, so what am I missing here?
with the other phinx installed I can run most migrations but 10 migrations do error out of which one is the creation of the admin user which makes the api uncontrollable so is that my phinx or what am I doing wrong?
David Losada
@tuxpiper
Sep 15 2017 10:33
mm bin/phinx should be there after running composer install
which versions are you using for distribution, php, mysql, composer, etc?
Hapee
@hapee
Sep 15 2017 10:41
ubuntu 16.04, php7, composer 1.0.0-beta2 and mysql latest
but in the meantime bin/phinx is created the composer install should be up in the install document but phinx give again the same error:
Call to undefined method Phinx\Db\Adapter\TimedOutputAdapter::getConnection
while doing == 20140829142629 DefaultAdminUser: migrating
David Losada
@tuxpiper
Sep 15 2017 10:48
mm I don't really know how well we are doing with php7 , I'd suggest trying the latest 5.6
Igor Golov
@TechnoDexx
Sep 15 2017 10:50
@hapee What about memory on your server?
Hapee
@hapee
Sep 15 2017 10:51
ok will revert to php5.6 and mem is 2GB
Igor Golov
@TechnoDexx
Sep 15 2017 10:54
@tuxpiper Hello, David! I'm running Ushahidi on php7 and all good: it working.
David Losada
@tuxpiper
Sep 15 2017 11:02
oh ok, thanks Igor!
Hapee
@hapee
Sep 15 2017 11:09
Indeed, I downgraded to php5.6 and phinx generates the same error:
PHP Fatal error: Call to undefined method Phinx\Db\Adapter\TimedOutputAdapter::getConnection() in /var/www/html/platform/migrations/20140829142629_default_admin_user.php on line 12
maybe less cryptic as php7
so where is method getConnection as in
$query = $this->getAdapter()->getConnection()->prepare(
Hapee
@hapee
Sep 15 2017 15:35
Well thanks so far, got it more or less working but I wonder if I can suggestion to rewrite some of the installation manual because it would have worked in 30 minutes if it was a little clearer
Igor Golov
@TechnoDexx
Sep 15 2017 17:00
Hello everybody! How to take map tiles from https: //api.openstreetsmaps.org. Is it possible, @tuxpiper ?