Topic: Upgraded PHP version now can't login
I have updated my website from php7.3 to php8.3 and now I can't login into FrontAccount. I can't seem to find any steps when upgrading the database.
It's much more fun, when you can discuss your problems with others...
You are not logged in. Please login or register.
FrontAccounting forum → Installation → Upgraded PHP version now can't login
I have updated my website from php7.3 to php8.3 and now I can't login into FrontAccount. I can't seem to find any steps when upgrading the database.
I was able to login if I revert the php database back to 7.3. If I upgrade to 7.4 everything works, but once I go to 8.0+ the login in screen changes and I can no longer login. So there must be something that needs to be done. I am unable to find anything on this.
FA officially supports php 8.0. Don't go more than this.
Even when I only upgrade to PHP 8.0, the login page on the main screen disappears. When I downgrade back to 7.4 everything work.
When I install a new instance of FrontAccounting on a 8.0+ it works. But I can't seem to restore any data so that will not be the solution.
Use the bleeding edge from the GitHub Master as it has many PHP 8.x fixes.
Use the bleeding edge from the GitHub Master as it has many PHP 8.x fixes.
So I was able to get the login screen to work by replacing the session.inc with the one on GitHub Master.
But now I have this issue Topic: login repeats with every click (https://frontaccounting.com/punbb/viewtopic.php?id=9606)
I did this per your other post but still doesn't work.
effective workaround to use the newer commit only for https and not for http:
Replace hardcoded line 14 of includes/session.inc:
define('SECURE_ONLY', true);
to be
define('SECURE_ONLY', (parse_url($_SERVER['REQUEST_URI'], PHP_URL_SCHEME) == 'https'));
This way newer installs will not break when not using https. The last few times, the released versions seem to have some showstopper for existing users. This will only make existing users especially on legacy systems not to upgrade as that would warrant "consultant costs". FA should herd and retain it's flock as that is where the network wealth of the project lies - bulk satisfied standard users who can upgrade atleast in minor versions safely.
I uploaded my session.inc file maybe I did something wrong.
Also if I downgrade to php 7.4 this repeat login does not happen, only happens with 8.0, 8.1 and 8.2. I would stay at 7.4 but my hosting service is upgrading everyone to 8.2 in a few weeks.
Thanks.
Time to exit your hosting service and roll your own - a learning curve though.
I'm having this same issue and the solution to replace line 14 of includes/session.inc does not work. HELP!!!
FrontAccounting forum → Installation → Upgraded PHP version now can't login
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 4 official extensions. Copyright © 2003–2009 PunBB.