Skip to content

Driver error #423

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

Closed
Thibault34 opened this issue Jan 6, 2017 · 5 comments
Closed

Driver error #423

Thibault34 opened this issue Jan 6, 2017 · 5 comments

Comments

@Thibault34
Copy link

Hello,

When I go in http://localhost:8000/fr/blog/ I have error :
An exception has been thrown during the rendering of a template ("An exception occured in driver: could not find driver").

Can you help me please ?

@voronkovich
Copy link
Contributor

@Thibault34, see symfony/symfony#21120

@stof
Copy link
Member

stof commented Jan 6, 2017

you need to enable the sqlite extension, as the demo uses sqlite by default

@Thibault34
Copy link
Author

Tanks you @stof

@javiereguiluz
Copy link
Member

@Thibault34 let me reopen this issue because maybe we can apply an idea similar to #422 and show a better error message in the browser when you don't have SQLite enabled.

@javiereguiluz javiereguiluz reopened this Jan 6, 2017
javiereguiluz added a commit that referenced this issue Feb 7, 2017
This PR was squashed before being merged into the master branch (closes #431).

Discussion
----------

Show better message when SQLite is not enabled

As mentioned in #423
I added to show better error message in the browser, if SQLite is not enabled. (I think that message should contain about sqllite3 and pdo_sqlite to enable)
But i have have doubts, how to show it? As a exception or simple text response?

![error image](http://i.imgur.com/pHW8QQH.png)

Commits
-------

ee8099c Show better message when SQLite is not enabled
@javiereguiluz
Copy link
Member

Closing it as fixed by #452.

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

4 participants