Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on Install: "Call to undefined method Doctrine\DBAL\Statement::fetchAll()" #2885

Closed
fmp-martins opened this issue Oct 29, 2021 · 0 comments
Labels

Comments

@fmp-martins
Copy link

I've followed the documentation to install Kimai2 on an Ubuntu 21.10 server using PHP 8.0 and MySQL 8.0.
I don't think I'm doing anything wrong, but when executing bin/console kimai:install -n -v I get:

Output


Kimai installation running ...
==============================

Database `kimai2` for connection named default already exists. Skipped.
[notice] Migrating up to DoctrineMigrations\Version20210802174320
[info] ++ migrating DoctrineMigrations\Version20200205115244 (Migrates the data from entity tables to user specific rate tables)
[error] Migration DoctrineMigrations\Version20200205115244 failed during Execution. Error: "Call to undefined method Doctrine\DBAL\Statement::fetchAll()"
16:03:25 CRITICAL  [console] Error thrown while running command "kimai:install -n -v". Message: "Call to undefined method Doctrine\DBAL\Statement::fetchAll()" ["exception" => Error { …},"command" => "kimai:install -n -v","message" => "Call to undefined method Doctrine\DBAL\Statement::fetchAll()"]

In Version20200205115244.php line 47:
                                                                                              
  [Symfony\Component\ErrorHandler\Error\UndefinedMethodError]                                 
  Attempted to call an undefined method named "fetchAll" of class "Doctrine\DBAL\Statement".  
                                                                                              

Exception trace:
  at /var/www/kimai2/src/Migrations/Version20200205115244.php:47
 DoctrineMigrations\Version20200205115244->up() at /var/www/kimai2/vendor/doctrine/migrations/lib/Doctrine/Migrations/Version/DbalExecutor.php:167
 Doctrine\Migrations\Version\DbalExecutor->executeMigration() at /var/www/kimai2/vendor/doctrine/migrations/lib/Doctrine/Migrations/Version/DbalExecutor.php:102
 Doctrine\Migrations\Version\DbalExecutor->execute() at /var/www/kimai2/vendor/doctrine/migrations/lib/Doctrine/Migrations/DbalMigrator.php:112
 Doctrine\Migrations\DbalMigrator->executePlan() at /var/www/kimai2/vendor/doctrine/migrations/lib/Doctrine/Migrations/DbalMigrator.php:76
 Doctrine\Migrations\DbalMigrator->executeMigrations() at /var/www/kimai2/vendor/doctrine/migrations/lib/Doctrine/Migrations/DbalMigrator.php:162
 Doctrine\Migrations\DbalMigrator->migrate() at /var/www/kimai2/vendor/doctrine/migrations/lib/Doctrine/Migrations/Tools/Console/Command/MigrateCommand.php:210
 Doctrine\Migrations\Tools\Console\Command\MigrateCommand->execute() at /var/www/kimai2/vendor/symfony/console/Command/Command.php:255
 Symfony\Component\Console\Command\Command->run() at /var/www/kimai2/src/Command/InstallCommand.php:144
 App\Command\InstallCommand->importMigrations() at /var/www/kimai2/src/Command/InstallCommand.php:95
 App\Command\InstallCommand->execute() at /var/www/kimai2/vendor/symfony/console/Command/Command.php:255
 Symfony\Component\Console\Command\Command->run() at /var/www/kimai2/vendor/symfony/console/Application.php:1027
 Symfony\Component\Console\Application->doRunCommand() at /var/www/kimai2/vendor/symfony/framework-bundle/Console/Application.php:97
 Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /var/www/kimai2/vendor/symfony/console/Application.php:273
 Symfony\Component\Console\Application->doRun() at /var/www/kimai2/vendor/symfony/framework-bundle/Console/Application.php:83
 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /var/www/kimai2/vendor/symfony/console/Application.php:149
 Symfony\Component\Console\Application->run() at /var/www/kimai2/bin/console:29

Additional context

  • Kimai version: 1.15.5
  • PHP version: 8.0.8
  • MySQL version: 8.0.27
  • OS version: Ubuntu server 21.10
@kimai kimai locked and limited conversation to collaborators Oct 29, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Projects
None yet
Development

No branches or pull requests

2 participants