Jump to content

[Solved] PHP/MySQL/PDO error with Phpgedview installation


anonymiser

Recommended Posts

Hi all,

 

I am trying to install the genealogy software Phpgedview

http://www.phpgedview.net/

 

I followed the installation guide:

http://wiki.phpgedview.net/en/index.php?ti...on_Guide_v4.2.x

It appears HelioHost should support Phpgedview.

 

However, when I reach the final configuration, running the PHP script, I get:

Fatal error: Undefined class constant 'ATTR_DEFAULT_FETCH_MODE' in /home/***/public_html/phpgedview/includes/classes/class_pgv_db.php on line 118

 

This appears to be part of the MySQL PDO:

e.g. some of the PHP code is: PDO::ATTR_DEFAULT_FETCH_MODE=>PDO::FETCH_OBJ,

 

Does anyone know why this problem exists?

 

Thanks!

Link to comment
Share on other sites

  • 5 months later...

Did you get an answer to this? I'm having exactly the same problem. The error is caused by this bit of code, but I don't know anything about coding to know how to fix it.

 

PDO::ATTR_DEFAULT_FETCH_MODE=>PDO::FETCH_OBJ,

 

With the error message being:

Fatal error: Undefined class constant 'ATTR_DEFAULT_FETCH_MODE'

Link to comment
Share on other sites

I'll take your word for it. I have managed to find an older version of the program that does not use PDO, just to get me going. I don't like the idea of having a site and not being able to use it.

 

I will continue to search for a solution to this problem, but until you hear from me again, don't worry on my account. This site is so much faster than my old site and so much easier to use, I am over the moon!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...