Web based family history software

This Help forum is for issues relates to the latest release (1.5.x). For issues related to beta or github version please use their own Help forum.
Before asking for help please read "How to request help" by clicking on that tab above here.

Question Class 'PDO' not found

More
9 years 6 months ago - 9 years 6 months ago #1 by AS
Class 'PDO' not found was created by AS
Today I got the following message when I tried to start webtrees:

Fatal error: Class 'PDO' not found in /home/famroot/public_html/webtrees/library/WT/DB.php on line 66

The last time I started the application everything was alright, and I didn't make any changes in my family trees since then. So what has happened? Any idea? Thank you for your help.

Andreas

Andreas

PHP 8.1.12, MySQL 5.6.49, Firefox 108.0
Last edit: 9 years 6 months ago by AS.

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

  • fisharebest
  • Away
  • Administrator
  • Administrator
More
9 years 6 months ago #2 by fisharebest
Replied by fisharebest on topic Class 'PDO' not found
I guess that someone has upgraded your server, and forgotten to install PHP/PDO and PHP/PDO-MySQL

To confirm, create a file called phpinfo.php on your server containing
Code:
<?php phpinfo(); ?>

Then visit the page www.familienbuch-eichsfeld.de/webtrees/phpinfo.php

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

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

More
9 years 6 months ago - 9 years 6 months ago #3 by AS
Replied by AS on topic Class 'PDO' not found
Hello Greg,

I have copied the file into the webtrees folder. Now I see that PHP was obviously updated to 5.4. What shall I do now?

Andreas

Andreas

PHP 8.1.12, MySQL 5.6.49, Firefox 108.0
Last edit: 9 years 6 months ago by AS.

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

  • fisharebest
  • Away
  • Administrator
  • Administrator
More
9 years 6 months ago #4 by fisharebest
Replied by fisharebest on topic Class 'PDO' not found
The attachment failed.

You need to look at the phpinfo page and confirm that you have sections for "PDO" and "PDO-MYSQL"

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

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

More
9 years 6 months ago - 9 years 6 months ago #5 by Jackie
Replied by Jackie on topic Class 'PDO' not found

fisharebest wrote: Then visit the page ...phpinfo.php


Hello Admin,

Is this secure to leave that link available to everybody?
Last edit: 9 years 6 months ago by Jackie.

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

  • ToyGuy
  • Offline
  • Moderator
  • Moderator
  • Live like it's Christmas every day - Santa Stephen
More
9 years 6 months ago - 9 years 6 months ago #6 by ToyGuy
Replied by ToyGuy on topic Class 'PDO' not found
Sure, because the admin has to manually create the phpinfo.php test file, use it and then remove it to maintain their site security.
Had he published here, I would have deleted the file to assist because that would be foolish to post such private information in a public forum. Leaving a phpinfo data page easily accessible by anyone is very poor security management and indicates that the admin may need significant training on server management.

Apparently, they no longer have standard PDO enabled with this configuration.

PDO

PDO support enabled
PDO drivers mysql, sqlite, dblib, pgsql

pdo_dblib

PDO Driver for FreeTDS/Sybase DB-lib enabled
Flavour freetds

pdo_mysql

PDO Driver for MySQL enabled
Client API version mysqlnd 5.0.10 - 20111026 - $Id: e707c415db32080b3752b232487a435ee0372157 $

Directive Local Value Master Value
pdo_mysql/..... /tmp/.........

Santa Stephen the Fabled Santa
Latest webtrees at MyArnolds.com
Hosted by webtreesonline.com , a division of GeneHosts LLC
MacOS 10.6.8, Apache 2.2+, PHP 5.4.16, MySQL 5.5.28
Last edit: 9 years 6 months ago by ToyGuy.

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

  • fisharebest
  • Away
  • Administrator
  • Administrator
More
9 years 6 months ago #7 by fisharebest
Replied by fisharebest on topic Class 'PDO' not found
Your server does not have the PDO and PDO/MySQL extensions enabled / installed.

You need to speak to your server's administrator.

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

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

Powered by Kunena Forum
}