Skip to content

Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] #52

New issue

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

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

Already on GitHub? # to your account

Closed
marwan2 opened this issue Apr 2, 2014 · 3 comments
Closed

Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] #52

marwan2 opened this issue Apr 2, 2014 · 3 comments

Comments

@marwan2
Copy link

marwan2 commented Apr 2, 2014

Dear Khoaofgod, suddenly in one of my projects, a fatal error displayed, and it cause some sections to be die.
This is the error message:

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 5 database is locked' in /home/estqlal/public_html/includes/phpfastcache/drivers/sqlite.php:272 Stack trace: #0 /home/estqlal/public_html/includes/phpfastcache/drivers/sqlite.php(272): PDOStatement->execute(Array) #1 /home/estqlal/public_html/includes/phpfastcache/drivers/sqlite.php(244): phpfastcache_sqlite->deleteRow(Array) #2 /home/estqlal/public_html/includes/phpfastcache/phpfastcache.php(98): phpfastcache_sqlite->driver_get('SidebarArticles', Array) #3 /home/estqlal/public_html/sidebar.php(20): phpFastCache->get('SidebarArticles') #4 /home/estqlal/public_html/index.php(161): require_once('/home/estqlal/p...') #5 {main} thrown in /home/estqlal/public_html/includes/phpfastcache/drivers/sqlite.php on line 272

@marwan2
Copy link
Author

marwan2 commented Apr 2, 2014

Actually, I have solve this issue by deleting all cache folders created by the phpfastcache class.
But its better to investigate this bug.

@khoaofgod
Copy link
Member

sure,

@alexboss
Copy link

Dear phpFastCache team,

I also encountered the same problem but I'm not able to provide steps to reproduce as the problems happens randomly.

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 5 database is locked' in /the/path/to/phpfastcache_2.1.0/drivers/sqlite.php on line 272
( ! ) PDOException: SQLSTATE[HY000]: General error: 5 database is locked in /the/path/to/phpfastcache_2.1.0/drivers/sqlite.php on line 272
Call Stack
# Time Memory Function Location
1 0.0001 266328 {main}( ) .../js.php:0
2 0.0067 901432 webtools\app\smartloader\execute_js( ) .../js.php:18
3 0.0077 1003256 phpFastCache->get( ) .../smartloader.php:263
4 0.0077 1003624 phpfastcache_sqlite->driver_get( ) .../phpfastcache.php:98
5 0.0084 1019192 phpfastcache_sqlite->deleteRow( ) .../sqlite.php:244
6 0.0086 1020480 execute ( ) .../sqlite.php:272

I will try to upgrade the library to see if it fixes the situation.

Best regards,

Alexandre 8)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants