- Posts: 4
Question Probably an incompatibility between webtrees PHP and server PHP - what to do?
- Gotlib
- Topic Author
- Offline
- New Member
Less
More
8 months 3 days ago - 8 months 3 days ago #1
by Gotlib
subject was created by Gotlib
message
Last edit: 8 months 3 days ago by Gotlib.
Please Log in or Create an account to join the conversation.
- bertkoor
- Offline
- Platinum Member
- Greetings from Utrecht, Holland
8 months 3 days ago - 8 months 3 days ago #2
by bertkoor
stamboom.BertKoor.nl runs on webtrees v2.1.20
Replied by bertkoor on topic subject
You have directories 'app' and 'includes' which indicate it's the 1.7 branch of webtrees. That only runs on PHP 5.3 - 7.3.
It is possible your web hosting provider has switched PHP to another version (v8.x??)
It is possible your web hosting provider has switched PHP to another version (v8.x??)
stamboom.BertKoor.nl runs on webtrees v2.1.20
Last edit: 8 months 3 days ago by bertkoor.
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
8 months 3 days ago #3
by fisharebest
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Replied by fisharebest on topic subject
1) You are using webtrees 1.x
You can find the exact version by looking in the file /includes/session.php for a line like this:
define('WT_VERSION', '1.7.20');
2) Your webserver is running PHP 8.1 or higher.
My guess is that your host just upgraded.
Now is probably a good time to upgrade
See webtrees.net/upgrade/
Make a backup first, if you can.
You can find the exact version by looking in the file /includes/session.php for a line like this:
define('WT_VERSION', '1.7.20');
2) Your webserver is running PHP 8.1 or higher.
My guess is that your host just upgraded.
Now is probably a good time to upgrade
See webtrees.net/upgrade/
Make a backup first, if you can.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- Gotlib
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
8 months 3 days ago - 8 months 3 days ago #4
by Gotlib
Replied by Gotlib on topic subject
Thank you very much for your answers.
Yes, I have the 'app' and 'includes' directories.
Actually my web hosting provider has changed PHP to version 8.1.
It has now allowed me to change to 7.3 and the web site is up and running.
In /includes/session.php I have version 1.7.9.
Yes, I guess I will have to do an upgrade.
I need to remind myself how to back up.
On webtrees.net/upgrade/ it says that the upgrade has to be done manually.
On my site it says
"A new version of webtrees is available. Upgrade to webtrees 2.1.20 ."
I can click on the link Upgrade to webtrees 2.1.20 (myaccount.domain/admin_site_upgrade.php).
That is, there is an automatic upgrade.
Am I mistaken?
Yes, I have the 'app' and 'includes' directories.
Actually my web hosting provider has changed PHP to version 8.1.
It has now allowed me to change to 7.3 and the web site is up and running.
In /includes/session.php I have version 1.7.9.
Yes, I guess I will have to do an upgrade.
I need to remind myself how to back up.
On webtrees.net/upgrade/ it says that the upgrade has to be done manually.
On my site it says
"A new version of webtrees is available. Upgrade to webtrees 2.1.20 ."
I can click on the link Upgrade to webtrees 2.1.20 (myaccount.domain/admin_site_upgrade.php).
That is, there is an automatic upgrade.
Am I mistaken?
Last edit: 8 months 3 days ago by Gotlib.
Please Log in or Create an account to join the conversation.
- Franz Frese
- Offline
- Elite Member
8 months 2 days ago #5
by Franz Frese
Replied by Franz Frese on topic subject
yes, you are wrong. there is no auto way. The corresponding doc at
upgrade
shows you the way.
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
8 months 2 days ago #6
by fisharebest
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Replied by fisharebest on topic subject
> "A new version of webtrees is available. Upgrade to webtrees 2.1.20 ."
> I can click on the link Upgrade to webtrees 2.1.20 (myaccount.domain/admin_site_upgrade.php).
> That is, there is an automatic upgrade.
> Am I mistaken?
The upgrade server looks at your PHP version. If it saw PHP8.1, it would assume you are already running webtrees 2.x, and hence it told you that you could upgrade to 2.1.20
But you can't. There are some manual steps required. See the referenced documentation.
> I can click on the link Upgrade to webtrees 2.1.20 (myaccount.domain/admin_site_upgrade.php).
> That is, there is an automatic upgrade.
> Am I mistaken?
The upgrade server looks at your PHP version. If it saw PHP8.1, it would assume you are already running webtrees 2.x, and hence it told you that you could upgrade to 2.1.20
But you can't. There are some manual steps required. See the referenced documentation.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.