1.5.9 installation fails with T_DOUBLE_ARROW ParseError


#1

I have been trying to install InvoicePlane 1.5.9 to a localhost with WAMP. I am getting a parse error after the initial language choice. Can’t seem to find the reason or a way to fix it. Any suggestions?

An uncaught Exception was encountered

Type: ParseError
Message: syntax error, unexpected ‘=>’ (T_DOUBLE_ARROW)
Filename: C:\wamp64\www\ip\application\config\database.php
Line Number: 99
Backtrace:
File: C:\wamp64\www\ip\application\modules\setup\controllers\Setup.php
Line: 217
Function: check_database
File: C:\wamp64\www\ip\index.php
Line: 325
Function: require_once

Line 99 content for database.php is “‘mysql’ => [”. The brackets are closed later in code
Line 217 content for setup.php is “$check_database = $this->check_database();”
Line 325 content for index.php is “require_once BASEPATH . ‘core/CodeIgniter.php’;”


#2

You need to post your details of the ipconfig.php (REMOVE PASSWORDS FIRST).

Please note the the ipconfig.php should not contain quotes, so

DB_HOSTNAME=localhost
DB_USERNAME=dbuser
DB_PASSWORD=dbpassword
DB_DATABASE=invoiceplane
DB_PORT=3306

not

DB_HOSTNAME="localhost"
DB_USERNAME="dbuser"
DB_PASSWORD="dbpassword"
DB_DATABASE="invoiceplane"
DB_PORT="3306"

#3

Here are the details. There is nothing in quotes. Everything else is as it was from the zip file. I appreciate any help with this.
IP_URL=http://localhost:81/ip
DB_HOSTNAME=localhost
DB_USERNAME=root
DB_PASSWORD=
DB_DATABASE=ip
DB_PORT=81


#4

Actually, something is wrong.

database.php has 97 lines,


#5

Thanks, that solved it. Now everything is working.