Before asking for help please read "Requesting Help and Suggestions" by clicking on that tab above here.
  • Page:
  • 1

TOPIC:

Upgrade of php 7.4 1 month 3 weeks ago #1

  • hiBratt
  • hiBratt's Avatar Topic Author
  • Away
  • New Member
  • New Member
  • Posts: 38
I got this message when I upgraded to 2.1.13

Din webbserver använder PHP versionen 7.4.33, som inte längre tar emot säkerhetsuppdateringar. Du bör uppgradera till en senare version så snart som möjligt. www.php.net/supported-versions.php

"Your web server uses PHP version 7.4.33, which no longer receives security updates. You should upgrade to a later version as soon as possible. www.php.net/supported-versions.php"

Therefore, I updated php from 7.4 to 8.0 but then received a series of error messages, about 20. The first lines are
RuntimeException: could not find driver in /home/humanist/public_html/webtrees/app/Http/Middleware/UseDatabase.php:115 Stack trace: #0 /home/humanist/public_html/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseDatabase->process() #1 /home/humanist/public_html/webtrees/app/Http/Middleware/BadBotBlocker.php(277): Middleland\Dispatcher->handle() #2

I hace now changed back to 7.4 and it is working again.

What schould I do to change php to a later version?

Thanks in advance
/Hans Iwan

Please Log in or Create an account to join the conversation.

Upgrade of php 7.4 1 month 3 weeks ago #2

HiBratt,
Make sure that you install the additionally required modules of php like, gd, MySQL, etc.
And as a start disable additional webtrees modules (modules_v4).
Than it should work. It did for me.
Ansgar
webtrees 2.1.15, PHP8.2.1

Please Log in or Create an account to join the conversation.

Upgrade of php 7.4 1 month 3 weeks ago #3

  • hermann
  • hermann's Avatar
  • Away
  • Premium Member
  • Premium Member
  • Posts: 766
If you are using webtrees 2.0 then: use PHP 7.1 to 7.4, but not 8.
If you like to use PHP 8 you have to upgrade to webtrees 2.1.
Hermann
Designer of the custom module "Extended Family"

webtrees 2.1.16 (all custom modules installed, PHP 8.2, MySQL 5.7) @ ahnen.hartenthaler.eu

Please Log in or Create an account to join the conversation.

Upgrade of php 7.4 1 month 3 weeks ago #4

  • fisharebest
  • fisharebest's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 16897
> I updated php from 7.4 to 8.0

Each version of PHP needs its own copy of the various extensions, such as the MySQL database driver, etc.

In effect, you have replaced "PHP 7.4 plus all the extensions" with "PHP 8.0 and not all of the extensions".

Is this your own server? If not, you should raise a ticket with your web-host asking them to install the "php-pdo" and "php-pdo-mysql" extensions for PHP8.0
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Upgrade of php 7.4 1 month 3 weeks ago #5

  • hiBratt
  • hiBratt's Avatar Topic Author
  • Away
  • New Member
  • New Member
  • Posts: 38
Thanks for all the good advice. Now I have a list of actions. I will report back on what they led to.

Please Log in or Create an account to join the conversation.

Upgrade of php 7.4 2 weeks 2 hours ago #6

  • hiBratt
  • hiBratt's Avatar Topic Author
  • Away
  • New Member
  • New Member
  • Posts: 38
Support responds

"Your sites do not support php 8 or 8.1 which is the latest php version.
I just tested and made sure "pdo" and "pdo_mysql" were enabled - but then Your sites stopped working.

So 7.4 is now selected again and then they work.

You can use 7.4 without problems in the future as we use CloudLinux which upgrades and fixes security holes and more in all php versions incl. 7.4.

If, however, you want to use 8 or 8.1, I ask you to upgrade your sites - or use the latest version of Webtrees?"


I see two options

1) Upgrade php to 8. Upgrade webtrees. If it cracks inst backup of webtree. Return to php 7.4. and to current webtrees 2.1.13

2) Export the database using phpmyadmin. Upgrade php to version 8. Newly install webtrees 2.1.16. Import the database using phpmyadmin.

Do these solutions work? Which one is best?

Please Log in or Create an account to join the conversation.

Upgrade of php 7.4 2 weeks 1 hour ago #7

  • fisharebest
  • fisharebest's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 16897
You are currently using webtrees 2.1.13

In terms of dependencies (PHP, libraries, etc.), there is no difference between 2.1.0 and 2.1.16.

So, just look upgrading PHP.

I guess you can upgrade from PHP using a control panel on your account?

Switch to the highest version that is available. Hopefully, PHP 8.2

If there are any errors, it is likely caused by missing PHP libraries.

Once you have switched to this new version tell us what errors you get, and we can tell you which libraries are missing.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Upgrade of php 7.4 1 week 5 days ago #8

  • hiBratt
  • hiBratt's Avatar Topic Author
  • Away
  • New Member
  • New Member
  • Posts: 38
Yes, I can update to php 8 with the control panel. Thanks for the promised support in case of problems after the change.

My problem now is to adapt the programs I developed to php 8. e.g. www.klimatfakta.info/news.php. I intend to use www.atatus.com/blog/tools-to-check-php8-compatibility/ and similar webs. Do you have suggestions for other websites with support for the migration?

Please Log in or Create an account to join the conversation.

Do you need a web hosting solution for your webtrees site?
If you prefer a host that specialises in webtrees, the following page lists some suppliers able to provide one for you: 
  • Page:
  • 1
Powered by Kunena Forum