These are chat archives for ushahidi/Community

17th
Oct 2018
Ushbot
@ushbot
Oct 17 2018 01:32
[Njila Njongue Paul Junior]
Hi. When I execute the command to receive data on my deployment, I receive some emails at the first run, but for all other executions, I no longer receive emails. I looked in the log file and found that this error was displayed when running the command
ERROR: Incorrect string value: '\ xC7fb764 ...' for column 'content' at line 1 [INSERT INTO `posts` (` title`, `slug`,` content`, `created`,` post_date` ) VALUES ('email title', 'slug email', 'content', created, 'date')]. Errors: Invalid quoted-printable sequence: ==, Invalid quoted-printable sequence: == in C: \ Server \ data \ htdocs \ Astil49 \ platform \ application \ classes \ Ushahidi \ Console \ Dataprovider.php: 80. This SQL query runs very well in phpmyadmin. I work with an apache web server on windows. Please how can I solve this problem
Ushbot
@ushbot
Oct 17 2018 07:40
[rosfox_carter] Good morning everyone. I've got issues with konoha exception, i'm using php 7.1
[rosfox_carter] platform/vendor/kohana/core/classes/Kohana/Kohana/Exception.php:84 Stack trace: #0 [internal function]: Kohana_Kohana_Exception::handler(Object(Error)) #1 {main} thrown
Ushbot
@ushbot
Oct 17 2018 08:24
[David Losada, Ushahidi] hi @rosfox_carter could we see more of the exception? the first line doesn’t have enough information?
[David Losada, Ushahidi] @Nijla I’m not very sure what the cause for the problem is. It may be something with character sets.. what language is used in the posts of this deployment? Is it something other than English, written in a different alphabet?
[rosfox_carter] Ush Uncaught TypeError: Argument 1 passed to Kohana_Kohana_Exception::handler() must be an instance of Exception, instance of Error given in /home/hialabgw/public_html/astilV10/platform/vendor/kohana/core/classes/Kohana/Kohana/Exception.php:84 Stack trace: #0 [internal function]: Kohana_Kohana_Exception::handler(Object(Error)) #1 {main} thrown
Ushbot
@ushbot
Oct 17 2018 08:47
[David Losada, Ushahidi] I’m afraid that doesn’t say much , apart that there was an error when trying to handle an exception :( Is that all the information that is logged?
svranic
@svranic
Oct 17 2018 08:54
Hi all, I deployed ushahidi 4.0.0. and it is working fine. I can access it via web and connect it to mobile app. However, I tried to setup twitter data source and created new app on https://apps.twitter.com/. Entered domain name of ushahidi deployment and all required data. After that I entered to ushahidi consumer key, secret and search terms I would like to follow. However, tweets are not collected. Do you have idea why it isn't working? Or are tweets collected instantly or should I wait some time to see some tweets?
Ushbot
@ushbot
Oct 17 2018 09:00
[rosfox_carter] Ush there is nothing else
Ushbot
@ushbot
Oct 17 2018 09:09
[David Losada, Ushahidi] @svranic you’d need to make sure that the artisan datasource:incoming command is run frequently , i..e by setting a cron job
[David Losada, Ushahidi] @rosfox_carter do you know if there is a specific circumstance when the error happens? some concrete action from the UI or some console command?
svranic
@svranic
Oct 17 2018 09:22
Thank you David very much. I have helped me to solve my problem :)
Ushbot
@ushbot
Oct 17 2018 09:23
[rosfox_carter] Ush i've met this error when i tried to upload a logo
[rosfox_carter] It seems php 7.1 doesn't support Exception. What i want to know, there are versions of php which don't work with ushahidi because of konoha ?
Ushbot
@ushbot
Oct 17 2018 09:57
[David Losada, Ushahidi] mm if you are running something older than version 4.0 , I think you should rather try php 7.0 . I’ve heard php 7.1 works with platform version 4.0
[David Losada, Ushahidi] that’s great @svranic , glad we could help!
[rosfox_carter] Ok, i was running 3.12.3
svranic
@svranic
Oct 17 2018 10:08
One more question. I deployed ushahidi with docker. So I have it running on port IP_ADDRESS:20080. And I can access it by entering this ip address and port. I tried to create proxy on apache (which is on host machine) in following manner (ProxyPass /ushahidi http://IP_ADDRESS:20080/ and ProxyPassReverse / http://IP_ADDRESS:20080/) to be able access ushahidi by typing domain name of host, e.g. http://host_domain/ushahidi. However, I get errors because ushahidi is searching config.js and other resources on my host (and not within container). In console i get 404 error http://host_domain/config.js. While it should look config js on this address http://host_domain/ushahidi/config.js. Does anybody know how to solve this issue? Reason why I wanted to make a proxy is because I couldn't add twitter app which runs on some custom port. I guess twitter requires that app would be on some valid domain name
Ushbot
@ushbot
Oct 17 2018 10:38
[David Losada, Ushahidi] as far as I know, the twitter app only requires an accessible callback url if end-users would be using your app to log in with their twitter creds. In Ushahidi, the use of twitter is completely server side, so it’s enough to copy the tokens over
svranic
@svranic
Oct 17 2018 10:45
@ushbot thanks. What about broken paths? Do you know how to fix these paths when using proxies? If proxy can be set and to force ushahidi to look within container config files than I could have two ushahidi deployments on different ports, e.g. http://host:20081/ mapped to http://host/ushahidi1 and http://host:20082/ mapped to http://host/ushahidi2
Ushbot
@ushbot
Oct 17 2018 12:44
[David Losada, Ushahidi] mmm I think the /ushahidi prefix will be problematic. If i recall correctly, the webapp is configured with a <base> tag pointing at / . The backend also won’t like path prefixes. You would be better off using a virtualhost instead