These are chat archives for ushahidi/Community

25th
Nov 2016
Liwei
@willis50317
Nov 25 2016 03:11
hello I met a problem when I trying to install on Linux(Ubuntu 16.04). Here is the error message when I ran "bin/update".
Screenshot from 2016-11-25 11-07-49.png
hope someone could help me to fix this. thanks a lot!
Liwei
@willis50317
Nov 25 2016 07:50
ok I install some packages of php and those are solved.
then, here comes another error.
Screenshot from 2016-11-25 15-48-56.png
Ushbot
@ushbot
Nov 25 2016 10:46
[David Losada, Ushahidi] Unfortunately php 7 is not supported. Please try 5.5 or 5.6
Nesp
@Nesp
Nov 25 2016 11:06
Hello everybody! Could you help me please? I would need to stringify and parse some json with circular reference. I was wondering, is there already some library within the ushahidi deployment that I could use? @ushbot
TheNiqabiCoderMum
@nqcm
Nov 25 2016 14:06
@ushbot any news for me?
Liwei
@willis50317
Nov 25 2016 14:33
hello David thanks for helping me all the time!
I have installed php again to be version 5.6. It works!
however, here comes the new error...
blob
Nesp
@Nesp
Nov 25 2016 15:43
hello willis @willis50317
did you write the .env file?
I had the same problem
you need a .env file with the info as suggested in the instructions
the file is called literally .env
in the platform you can find example.env
with some sample data
Liwei
@willis50317
Nov 25 2016 17:31
well... I think I have build a .env file right under the platform file. Do I put it in a wrong place?
here is more information I could show you.
Screenshot from 2016-11-26 01-28-37.png
Liwei
@willis50317
Nov 25 2016 17:48
my .env file on the top.
and I also access the database "ushahidiplus" I built. It looks like I have already built it successfully.
Ushbot
@ushbot
Nov 25 2016 18:10
[David Losada, Ushahidi] @willis , mysql 5.7 uses a stricter mode of SQL that seems to cause the table creation to fail. Try adding a line sql-mode=”ALLOW_INVALID_DATES” in your /etc/my.cnf file (under the [mysqld]) section
[David Losada, Ushahidi] theniq, still wondering about your error, it seems to be something pretty generic going badly with the database queries on the posts table .. knowing fully specified versions of php, php extensions and mysql may help us understand
Ushbot
@ushbot
Nov 25 2016 18:17
[David Losada, Ushahidi] Nesp, I’m not aware of a library that handles circular references for you. What I would do is writing a function that processes the JSON structure, breaking the circular references where you know they may be happening. There are some generic approaches here, but can’t really tell how well suited they are for your specific case: http://stackoverflow.com/questions/14962018/detecting-and-fixing-circular-references-in-javascript