Skip to content

Installation Troubleshooting

Vladimir Jimenez edited this page Sep 30, 2017 · 4 revisions

Help us help you! In this article, you'll find common installation issues and

How to find your php.ini file

php -i | grep php.ini

Execute this command and it'll show you the location of the php.ini file.

Ubuntu 14.04

MySQLi not found

You may see an error stating that 'mysqli' cannot be found for a class.

PHP Fatal error:  Class 'mysqli' not found in /var/www/html/bzion/src/Database.php on line 45

If you are using Ubuntu 14.04, then the MySQLi extension isn't enabled by default so it cannot be accessed by our Database class, which uses MySQLi to connect to the database. In order to enable PHP to use MySQLi you have to uncomment (remove the ;) the following line in the php.ini file.

mysqli.allow_local_infile = On

Database Migrations

Invalid default value

[PDOException]                                                                                
SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'end_time'

If you're getting this error, that means something's wrong with your migration_log table. To fix this, change the default value for the end_time column to NULL and ensure that the column is nullable.

Integrity Constraint for Player Elo Calculations

Integrity constraint violation: 1062 Duplicate entry '19-42738' for key 'PRIMARY'

If you're getting this error while running the PlayerEloCalculations migration and the player_elos is empty, try clearing the cache with composer clear.