I have been running Phpgedview for about 8 months, but every so and then (at least 3 times so far) it starts to display pages of errors - ERROR 2: get_class() expects parameter 1 to be object, integer given
0 Error occurred on in function get_class
1 called from line 589 of file DB.php in function isError
2 called from line 550 of file DB.php in function connect
3 called from line 100 of file functions.php in function check_db
4 called from line 353 of file session.php in function require_once
5 called from line 80 of file config.php in function require
6 called from line 28 of file index.php
The above is just one small bit.
The only solution seems to be to delete the installation and start again but that is a real pain as it doesn't always go smoothly, I think my record so far is 10 attempt to get it working!
Anyone got any ideas what may be happening?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You are clearly using an old version of PGV, but don't give any clues as to which one.
It is most like that your database refused to let you connect, and the error handling in that version of PGV fails to catch it correctly.
Advice is likely to be to upgrade.
BTW - problems such as "it doesn't go smoothly" are remarkable difficult to diagnose without some clues in the form of error messaages, actual/expected behaviour, etc.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Should have added the version etc..
PGV version 4.2.1 (have updated since starting to use PGV)
PhP ver 5.3.2
I understood that ver 4.2.1 was the latest that would run without PDO drivers. It looks like my server may have PDO-MySql clientAPI ver 5.0.89 enabled so may be able to upgrade to latest PGV version.
What I don't understand is that for over a month I have had no problems 48 hours ago all these errors appeared. Apart from adding data to individuals i haven't done anything that should have upset things.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When these errors occur, can you try to connect to your database using something like phpmyadmin.
If this can't connect either, it is a DB problem. If it can, we need to look elsewhere in PGV.
My guess, however, is that your database is refusing connections (maybe your host has imposed connection limits, such as max number of queries per hour, or maybe the database server has some problems).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
PhPGedView back up and running but with original version (4.2.1) as when 4.2.3 installed it told me that PDO wasn't enabled.
Still had problems as once PGV uploaded and tried to start installation routine got a screen full of errors. In frustration went off to do something else and on return 24 hours later it all worked without errors.
Tony
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Tony
Its called - clearing your cache. The errors didn't magically go away, but rather your previously served pages were represented to you when called. While caching certainly improves the 'web experience', when installing something in place of something else, its essential to clear you caches, or even use a different browser instance. (FF/Safari/IE).
-Stephen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have been running Phpgedview for about 8 months, but every so and then (at least 3 times so far) it starts to display pages of errors -
ERROR 2: get_class() expects parameter 1 to be object, integer given
0 Error occurred on in function get_class
1 called from line 589 of file DB.php in function isError
2 called from line 550 of file DB.php in function connect
3 called from line 100 of file functions.php in function check_db
4 called from line 353 of file session.php in function require_once
5 called from line 80 of file config.php in function require
6 called from line 28 of file index.php
The above is just one small bit.
The only solution seems to be to delete the installation and start again but that is a real pain as it doesn't always go smoothly, I think my record so far is 10 attempt to get it working!
Anyone got any ideas what may be happening?
You are clearly using an old version of PGV, but don't give any clues as to which one.
It is most like that your database refused to let you connect, and the error handling in that version of PGV fails to catch it correctly.
Advice is likely to be to upgrade.
BTW - problems such as "it doesn't go smoothly" are remarkable difficult to diagnose without some clues in the form of error messaages, actual/expected behaviour, etc.
Should have added the version etc..
PGV version 4.2.1 (have updated since starting to use PGV)
PhP ver 5.3.2
I understood that ver 4.2.1 was the latest that would run without PDO drivers. It looks like my server may have PDO-MySql clientAPI ver 5.0.89 enabled so may be able to upgrade to latest PGV version.
What I don't understand is that for over a month I have had no problems 48 hours ago all these errors appeared. Apart from adding data to individuals i haven't done anything that should have upset things.
When these errors occur, can you try to connect to your database using something like phpmyadmin.
If this can't connect either, it is a DB problem. If it can, we need to look elsewhere in PGV.
My guess, however, is that your database is refusing connections (maybe your host has imposed connection limits, such as max number of queries per hour, or maybe the database server has some problems).
IIRCC, PGV v4.2.1 doesn't always play nicely with PHP v5.3+ either. Only v4.2.3 and SVN were updated to be compatible.
Stephen
Thanks to fisharebest and okbigkid for the responses so far.
"When these errors occur, can you try to connect to your database using something like phpmyadmin." yes I can do this so not limited by host.
I'm going to try installing the latest PGV version and see how that does - not got a lot to lose as not able to correctly access data anyway.
I'll come back once I've had the chance to upgrade/install.
Tony
PhPGedView back up and running but with original version (4.2.1) as when 4.2.3 installed it told me that PDO wasn't enabled.
Still had problems as once PGV uploaded and tried to start installation routine got a screen full of errors. In frustration went off to do something else and on return 24 hours later it all worked without errors.
Tony
Tony
Its called - clearing your cache. The errors didn't magically go away, but rather your previously served pages were represented to you when called. While caching certainly improves the 'web experience', when installing something in place of something else, its essential to clear you caches, or even use a different browser instance. (FF/Safari/IE).
-Stephen