Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Fatal error: Uncaught exception 'PDOException' #193

Closed
sciunto opened this issue Aug 28, 2013 · 2 comments
Closed

PHP Fatal error: Uncaught exception 'PDOException' #193

sciunto opened this issue Aug 28, 2013 · 2 comments

Comments

@sciunto
Copy link

sciunto commented Aug 28, 2013

Version: poche beta4 AND poche-master
debian: 7.1

Procedure:

aptitude install sqlite3
cp -r poche-1.0-beta4 /var/www/poche

cd /var/www/poche
curl -s http://getcomposer.org/installer | php
php composer.phar install

chown -R www-data: /var/www/poche

rm -rf /var/www/poche/install

Note: The last instruction is missing in the doc: http://inthepoche.com/doc/doku.php?id=users:begin:install

Note 2: poche_compatibility_test.php is OK.

Apache log:

[Wed Aug 28 10:13:23 2013] [error] [client XX.XX.XX.XX] PHP Fatal error:  Uncaught exception 'PDOException' with message     'could not find driver' in /var/www/poche/inc/poche/Database.class.php:19\nStack trace:\n#0 /var/www/poche/inc/poche/Database.class.php(19): PDO->__construct('sqlite:/var/www...')\n#1 /var/www/poche/inc/poche/P    oche.class.php(25): Database->__construct()\n#2 /var/www/poche/inc/poche/config.inc.php(52): Poche->__construct    ()\n#3 /var/www/poche/index.php(17): include('/var/www/poche....')\n#4 {main}\n  thrown in /var/www/poche/inc/poche/Database.class.php on line 19

In the browser, the page is blank.

@nicosomb
Copy link
Member

Hi @sciunto !

I added the line to delete /install in the doc.

You have also to install SQLite for PHP: aptitude install php5-sqlite

I change the doc.

@sciunto
Copy link
Author

sciunto commented Aug 28, 2013

my bad. Silly mistake. Thanks :)

@sciunto sciunto closed this as completed Aug 28, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants