I'm running php5.3.0 and was trying to install phpgedview 4.2.2. Right on the install page, i recieved this error
ERROR 2: PDO::__construct() : Invalid argument (trying to connect via unix://)
0 Error occurred on in function __construct
1 called from line 122 of file class_pgv_db.php in function createInstance
2 called from line 337 of file session.php in function require_once
3 called from line 79 of file config.php in function require_once
4 called from line 41 of file install.php
Warning: PDO::__construct() : Invalid argument (trying to connect via unix://) in /opt/lampp/htdocs/phpgedview/includes/classes/class_pgv_db.php on line 122
Any help?
The installation wizard did show though!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2009-12-16
PGV 4.2.2 wasreleased before PHP 5.3 and they do not work well together. Ver 4.2.3 due for release soon will be compatible with PHP 5.3.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2009-12-16
I've re-installed 4.2.2 and researched the error I've received - it proved to be a PDO_socket error. I solved that error by changing the pod_socket url in php.ini. I will now delete 4.2.1 as I have a working 4.2.2.
I'm running php5.3.0 and was trying to install phpgedview 4.2.2. Right on the install page, i recieved this error
ERROR 2: PDO::__construct() : Invalid argument (trying to connect via unix://)
0 Error occurred on in function __construct
1 called from line 122 of file class_pgv_db.php in function createInstance
2 called from line 337 of file session.php in function require_once
3 called from line 79 of file config.php in function require_once
4 called from line 41 of file install.php
Warning: PDO::__construct() : Invalid argument (trying to connect via unix://) in /opt/lampp/htdocs/phpgedview/includes/classes/class_pgv_db.php on line 122
Any help?
The installation wizard did show though!
PGV 4.2.2 wasreleased before PHP 5.3 and they do not work well together. Ver 4.2.3 due for release soon will be compatible with PHP 5.3.
This link should help you though:
https://sourceforge.net/tracker/index.php?func=detail&aid=2818804&group_id=55456&atid=634867
I've re-installed 4.2.2 and researched the error I've received - it proved to be a PDO_socket error. I solved that error by changing the pod_socket url in php.ini. I will now delete 4.2.1 as I have a working 4.2.2.
This error was decribed here:
http://stackoverflow.com/questions/1435445/error-on-creating-connection-to-pdo-in-php/1916864#1916864
Thanks for the help!