Skip to content
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

Impossible to display --help from daemon.php #658

Closed
Ppjet6 opened this issue Jun 1, 2018 · 0 comments
Closed

Impossible to display --help from daemon.php #658

Ppjet6 opened this issue Jun 1, 2018 · 0 comments

Comments

@Ppjet6
Copy link
Contributor

Ppjet6 commented Jun 1, 2018

Steps to reproduce

Fresh install of movim 8fba1ad (master), php 7.2.6, on Arch.

  • config/dc.inc.php configured
  • database configured, and empty
  • php daemon.php --help

What is expected

The script shows a help message

What happens

# php daemon.php --help

Oops... something went wrong.
Uncaught PDOException: SQLSTATE[42P01]: Undefined table: 7 ERROR:  relation "configuration" does not exist
LINE 1: select * from "configuration" where "configuration"."id" = $...
                      ^ in /usr/share/webapps/movim/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:105
Stack trace:
#0 /usr/share/webapps/movim/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(105): PDOStatement->execute(NULL)                                                                                                                  
#1 /usr/share/webapps/movim/vendor/illuminate/database/Connection.php(330): Doctrine\DBAL\Driver\PDOStatement->execute()                                                                                                                      
#2 /usr/share/webapps/movim/vendor/illuminate/database/Connection.php(657): Illuminate\Database\Connection->Illuminate\Database\{closure}('select * from "...', Array)                                                                        
#3 /usr/share/webapps/movim/vendor/illuminate/database/Connection.php(624): Illuminate\Database\Connection->runQueryCallback('select * from "...', Array, Object(Closure))                                                                    
#4 /usr/share/webapps/movim/vendor/illuminate/database/Connection.php(333): Illuminate\Database\Connection->run('select * from ".                                                                                                             
in /usr/share/webapps/movim/vendor/illuminate/database/Connection.php (line 664)

Possible resolution

Don't try to lookup the db when doing --help.

@edhelas edhelas closed this as completed in 3b1926c Jun 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant