Upgrade from 0.31.6 to 21.05.3 #2337

Closed
opened 2026-02-05 03:42:49 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @chrisnewmanuk on GitHub (Jul 29, 2021).

Failing to migrate:

php artisan migrate


  • Application In Production!     *
    

Do you really wish to run this command? (yes/no) [no]:

yes

PHP Fatal error: Declaration of Doctrine\DBAL\Driver\PDOConnection::query() must be compatible with PDO::query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs) in /var/www/bookstack/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 81

Symfony\Component\Debug\Exception\FatalErrorException : Declaration of Doctrine\DBAL\Driver\PDOConnection::query() must be compatible with PDO::query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs)

at /var/www/bookstack/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:81
77| * {@inheritdoc}
78| *
79| * @return \PDOStatement
80| */

81| public function query()
82| {
83| $args = func_get_args();
84|
85| try {

Whoops\Exception\ErrorException : Declaration of Doctrine\DBAL\Driver\PDOConnection::query() must be compatible with PDO::query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs)

at /var/www/bookstack/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:81
77| * {@inheritdoc}
78| *
79| * @return \PDOStatement
80| */

81| public function query()
82| {
83| $args = func_get_args();
84|
85| try {

Exception trace:

1 Whoops\Run::handleError()
/var/www/bookstack/vendor/filp/whoops/src/Whoops/Run.php:454

2 Whoops\Run::handleShutdown()
[internal]:0

Additional context
PHP 7.4
Ubunut 18LTS

Originally created by @chrisnewmanuk on GitHub (Jul 29, 2021). Failing to migrate: php artisan migrate ************************************** * Application In Production! * ************************************** Do you really wish to run this command? (yes/no) [no]: > yes PHP Fatal error: Declaration of Doctrine\DBAL\Driver\PDOConnection::query() must be compatible with PDO::query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs) in /var/www/bookstack/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 81 Symfony\Component\Debug\Exception\FatalErrorException : Declaration of Doctrine\DBAL\Driver\PDOConnection::query() must be compatible with PDO::query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs) at /var/www/bookstack/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:81 77| * {@inheritdoc} 78| * 79| * @return \PDOStatement 80| */ > 81| public function query() 82| { 83| $args = func_get_args(); 84| 85| try { Whoops\Exception\ErrorException : Declaration of Doctrine\DBAL\Driver\PDOConnection::query() must be compatible with PDO::query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs) at /var/www/bookstack/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:81 77| * {@inheritdoc} 78| * 79| * @return \PDOStatement 80| */ > 81| public function query() 82| { 83| $args = func_get_args(); 84| 85| try { Exception trace: 1 Whoops\Run::handleError() /var/www/bookstack/vendor/filp/whoops/src/Whoops/Run.php:454 2 Whoops\Run::handleShutdown() [internal]:0 **Additional context** PHP 7.4 Ubunut 18LTS
Author
Owner

@ssddanbrown commented on GitHub (Jul 29, 2021):

Hi @chrisnewmanuk,
Did you receive any errors when running the composer install step or does that all work without error?

Otherwise, Could you provide the complete output of both php -v and composer -V?

@ssddanbrown commented on GitHub (Jul 29, 2021): Hi @chrisnewmanuk, Did you receive any errors when running the `composer install` step or does that all work without error? Otherwise, Could you provide the complete output of both `php -v` and `composer -V`?
Author
Owner

@ssddanbrown commented on GitHub (Aug 14, 2021):

Since there's been no follow-up I'm going to close this. If the issue remains and is something you still require to be fixed please open a new issue, referencing this one.

@ssddanbrown commented on GitHub (Aug 14, 2021): Since there's been no follow-up I'm going to close this. If the issue remains and is something you still require to be fixed please open a new issue, referencing this one.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2337