Forum

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

New Discussion

Error 1.13.18 to 2.0.3

Nick Aron   ( User )

Commented 4 years ago

Hello All, tried upgrading via the 2.0.3 button in our Akounting.

It's not working. We continue to get the following error:

```Parse error: syntax error, unexpected 'const' (T_CONST), expecting variable
(T_VARIABLE)```

We have also tried php version 7.0 to 7.4 none of them work. We've also tried installing from the CLI but it also fails with the same error in red.

Please advise.

Akut Wibowo   ( User )

Commented 4 years ago

I have same issue about this.

Denis Dulici   ( Admin )

Commented 4 years ago

Hello guys,

Can you please try to run the following command:


php /path/to/akaunting/artisan update:db


Don't forget to change the path/to/akaunting part!

Regards

Nick Aron   ( User )

Commented 4 years ago

I ran than from within the akounting directory as php artisan update:db. I get the same error.

Parse error: syntax error, unexpected 'const' (T_CONST), expecting variable
(T_VARIABLE)

Nick Aron   ( User )

Commented 4 years ago

Following up. Is there anything else you'd like me to try?

Denis Dulici   ( Admin )

Commented 4 years ago

You should upgrade your PHP version to 7.2 or higher.

Nick Aron   ( User )

Commented 4 years ago

I have tried php 7.0, 7.1, 7.2, 7.3 and 7.4... same error on ALL versions!

Nick Aron   ( User )

Commented 4 years ago

I was never able to upgrade the system from within the system. I uploaded all new files and then the databases were different and had to export everything. It was quite a lot of work, for a silly error :(

Zeeshan Javed   ( User )

Commented 4 years ago

Hello, I can help with upgrade, migration and backup of your akaunting software and database to any new server or cloud instance, for details email me at : [email protected]

Please login or register to leave a response.

Showing 1 to 9 of 9 discussions