These are chat archives for ushahidi/Community

14th
Nov 2016
tameen
@tameen
Nov 14 2016 06:08
this is my init.php file.
Nesp
@Nesp
Nov 14 2016 08:56

@ushbot I am installing the zipped release bundle in xampp with Ubuntu 14. Though, when I run to the database migrations I get this error:

vic@vic-VirtualBox:/opt/lampp/htdocs/Ushahidi/html/platform$ ./bin/phinx migrate -c application/phinx.php
Phinx by Rob Morgan - https://phinx.org. version 0.4.3

using config file ./application/phinx.php
using config parser php
using migration path /opt/lampp/htdocs/Ushahidi/html/platform/migrations
warning no environment specified, defaulting to: ushahidi
using adapter mysql
using database 

  [InvalidArgumentException]                                                   
  There was a problem creating the schema table: SQLSTATE[3D000]: Invalid cat  
  alog name: 1046 No database selected                                         

migrate [-c|--configuration="..."] [-p|--parser="..."] [-e|--environment="..."] [-t|--target="..."]

Could you help me please?

tameen
@tameen
Nov 14 2016 08:58
do you have created .env file @Nesp
Nesp
@Nesp
Nov 14 2016 08:58
@tameen yes I did, it's called environment.env. Could this be the problem?
tameen
@tameen
Nov 14 2016 08:59
it shoudl be .env
*should
Nesp
@Nesp
Nov 14 2016 09:00
thanks, I will try!
create a .env config file in the base of repository.
Nesp
@Nesp
Nov 14 2016 09:01
yeah I am following the instructions, though I thought the .env was an extension and the name did not matter
yes! Great :)
tameen
@tameen
Nov 14 2016 09:04
:+1:
@ushbot
platform-api.png
platform.png
platform-httpdocs.png
client-server-www.png
Ushbot
@ushbot
Nov 14 2016 09:51
[tameenm, Ushahidi] hi
Nesp
@Nesp
Nov 14 2016 10:13
now having problems with accessing the client :(
from the console this is the error I get
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
tameen
@tameen
Nov 14 2016 10:14
is api working?
Nesp
@Nesp
Nov 14 2016 10:27
nope I am trying to get an access token
but it says:
{
  "errors": [
    {
      "status": 0,
      "title": "Directory APPPATH/cache must be writable",
      "message": "Directory APPPATH/cache must be writable",
      "class": "Kohana_Exception",
      "file": "/opt/lampp/htdocs/platform/vendor/kohana/core/classes/Kohana/Core.php",
      "line": 278,
      "trace": [
        {
          "file": "/opt/lampp/htdocs/platform/application/bootstrap.php",
          "line": 103,
          "function": "init",
          "class": "Kohana_Core",
          "type": "::",
          "args": [
            {
              "base_url": "/",
              "index_file": false,
              "charset": "utf-8",
              "errors": true,
              "profile": false,
              "caching": false
            }
          ]
        },
        {
          "file": "/opt/lampp/htdocs/platform/application/kohana.php",
          "line": 108,
          "args": [
            "/opt/lampp/htdocs/platform/application/bootstrap.php"
          ],
          "function": "require"
        },
        {
          "file": "/opt/lampp/htdocs/platform/httpdocs/index.php",
          "line": 7,
          "args": [
            "/opt/lampp/htdocs/platform/application/kohana.php"
          ],
          "function": "require"
        }
      ]
    }
  ]
}
even though I did run the command
sudo chown -R www-data:vic application/{logs,cache,media/uploads}
tameen
@tameen
Nov 14 2016 10:30
do you have executed chmod command?
Nesp
@Nesp
Nov 14 2016 10:30
nope it is not in the "install the xipped release bundle" part of the instructions
tameen
@tameen
Nov 14 2016 10:31
also add base url in init.php file
Nesp
@Nesp
Nov 14 2016 10:34
perfect works
thanks a lot
I am here almost jumping :D
tameen
@tameen
Nov 14 2016 10:35
great :smile:
and i am waiting for @ushbot response !
Nesp
@Nesp
Nov 14 2016 10:37

@ushbot could you add this command

% chmod 0777 application/logs application/cache application/media/uploads

in the instructions here?

Nesp
@Nesp
Nov 14 2016 11:14
I set the deployment logo, but it did not load it. Does it have to deal with the ftp? I am using xampp and I did activate the ftp
@tameen good luck! :)
tameen
@tameen
Nov 14 2016 11:19
use inspect element to see if it shows any error
@Nesp
thanks!
& same to you
Nesp
@Nesp
Nov 14 2016 11:29
:+1:
thanks :) (I will check it)
tameen
@tameen
Nov 14 2016 11:36
:+1:
tameen
@tameen
Nov 14 2016 12:21
@ushbot :worried:
Ushbot
@ushbot
Nov 14 2016 14:11
[David Losada, Ushahidi] Sorry I'm traveling today and my ability to assist is limited. Hopefully a team mate will join later!
tameen
@tameen
Nov 14 2016 15:04
ok i am waiting :worried: