Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

Error with update to 2.1.2

I Kadek Ariawan   ( User )

Commented 3 years ago

I got the following error when update to 2.1.2

The command php artisan update:finish core 1 2.1.2 2.1.1 failed.

Exit Code: 255(Unknown error)

Working directory: /home/zi/public_html/akaunting

Output:
================
Finishing update...
Application cache cleared!

In PDOConnection.php line 91:

Declaration of Doctrine\DBAL\Driver\PDOConnection::query() must be compatib
le with PDO::query(string $query, ?int $fetchMode = null, mixed ...$fetchMo
deArgs)




Error Output:
================
PHP Fatal error: Declaration of Doctrine\DBAL\Driver\PDOConnection::query() must be compatible with PDO::query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs) in /home/zi/public_html/akaunting/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 91

I Kadek Ariawan   ( User )

Commented 3 years ago

Am I the only one with this issue? What is the reason? The update hasn't done successfully.

Marius Van der Walt   ( User )

Commented 3 years ago

Same problem...


The command php artisan update:finish core 1 2.1.2 2.1.1 failed.

Exit Code: 255(Unknown error)

Working directory: /home/akaunt/public_html

Output:
================
Finishing update...
Application cache cleared!

In PDOConnection.php line 91:

Declaration of Doctrine\DBAL\Driver\PDOConnection::query() must be compatib
le with PDO::query(string $query, ?int $fetchMode = null, mixed ...$fetchMo
deArgs)




Error Output:
================
PHP Fatal error: Declaration of Doctrine\DBAL\Driver\PDOConnection::query() must be compatible with PDO::query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs) in /home/akaunt/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 91

Karim Alaa   ( User )

Commented 3 years ago

please , share with us what you do to solve this issue.

I Kadek Ariawan   ( User )

Commented 3 years ago

I don't have a solution so I kept the old version.
The support quality of this product is terrible - 2 weeks and no answers from developers...
It looks like they live in their own magic unreal world where Akaunting has no bugs at all :-))

Nick   ( User )

Commented 3 years ago

Same issue here. NGINX/PHP7.4. Can't update from version 2.0.27 to 2.1.7.

The command php artisan update core 1 failed.

Exit Code: 255(Unknown error)

Working directory: /var/www/html

Output:
================

In PDOConnection.php line 70:

Declaration of Doctrine\DBAL\Driver\PDOConnection::query() must be compatib
le with PDO::query(string $query, ?int $fetchMode = null, mixed ...$fetchMo
deArgs)




Error Output:
================
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/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 70

Not able to update core!"

Nick   ( User )

Commented 3 years ago

Turned out to be a PHP 8 issue for me. Changed my command line version to 7.4 like this "sudo update-alternatives --set php /usr/bin/php7.4" then it worked from the command line.

Ismail Salah   ( User )

Commented 1 year ago

I had the same problem.
I downgraded the PHP version to 7.4 (in cPanel) and everything works great now.

Please login or register to leave a response.

Showing 1 to 8 of 8 discussions