anonymiser Posted August 26, 2009 Posted August 26, 2009 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!
SWilms Posted February 6, 2010 Posted February 6, 2010 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'
Wizard Posted February 6, 2010 Posted February 6, 2010 Moved so that the root admin will look at this. Please provide your username and domain name.
SWilms Posted February 7, 2010 Posted February 7, 2010 djbob said: Is it any better now? I'm sorry to say it is not. Domain: http://kitsonwilms.heliohost.org/ Username: wilmss
Ashoat Posted February 8, 2010 Posted February 8, 2010 Unfortunately, it's looking like this is a problem on PDO's side. I suggest contacting them. If they have any steps that I need to complete, please let me know.
SWilms Posted February 10, 2010 Posted February 10, 2010 I'm having dificulties finding support with PDO/PHP that I can understand. I am new to programming languages etc. I have found this, but I do not know if it will help. http://e-mats.org/2009/09/fatal-error-unde...ult_fetch_mode/ I will keep looking and trying to find the appropriate place to find support. I will let you know if I find something else.
Ashoat Posted February 10, 2010 Posted February 10, 2010 That guide suggests that I reinstall PHP. And it's suggesting I do it from preexisting binaries, which isn't a good idea.
SWilms Posted February 11, 2010 Posted February 11, 2010 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!
Recommended Posts