Database Error:
PDOException: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction in /home/1cloudfile/web/1cloudfile.com/public_html/app/core/Database.class.php:151 Stack trace: #0 /home/1cloudfile/web/1cloudfile.com/public_html/app/core/Database.class.php(151): PDOStatement->execute() #1 /home/1cloudfile/web/1cloudfile.com/public_html/app/helpers/DownloadTrackerHelper.class.php(75): App\Core\Database->query() #2 /home/1cloudfile/web/1cloudfile.com/public_html/app/controllers/FileController.class.php(159): App\Helpers\DownloadTrackerHelper::clearTimedOutDownloads() #3 [internal function]: App\Controllers\FileController->downloadHandler() #4 /home/1cloudfile/web/1cloudfile.com/public_html/app/helpers/RouteHelper.class.php(391): call_user_func_array() #5 /home/1cloudfile/web/1cloudfile.com/public_html/app/core/Framework.class.php(247): App\Helpers\RouteHelper::processRoutes() #6 /home/1cloudfile/web/1cloudfile.com/public_html/app/core/Framework.class.php(24): App\Core\Framework::dispatch() #7 /home/1cloudfile/web/1cloudfile.com/public_html/index.php(20): App\Core\Framework::run() #8 {main}

Last Rendered Query:
UPDATE download_tracker SET date_finished=NOW(), status='cancelled' WHERE status='downloading' AND date_updated < DATE_SUB(NOW(), INTERVAL 15 second)

#0  App\Core\Database->notify(PDOException Object ([*message] => SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction,[Exceptionstring] => PDOException: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction in /home/1cloudfile/web/1cloudfile.com/public_html/app/core/Database.class.php:151
Stack trace:
#0 /home/1cloudfile/web/1cloudfile.com/public_html/app/core/Database.class.php(151): PDOStatement->execute()
#1 /home/1cloudfile/web/1cloudfile.com/public_html/app/helpers/DownloadTrackerHelper.class.php(75): App\Core\Database->query()
#2 /home/1cloudfile/web/1cloudfile.com/public_html/app/controllers/FileController.class.php(159): App\Helpers\DownloadTrackerHelper::clearTimedOutDownloads()
#3 [internal function]: App\Controllers\FileController->downloadHandler()
#4 /home/1cloudfile/web/1cloudfile.com/public_html/app/helpers/RouteHelper.class.php(391): call_user_func_array()
#5 /home/1cloudfile/web/1cloudfile.com/public_html/app/core/Framework.class.php(247): App\Helpers\RouteHelper::processRoutes()
#6 /home/1cloudfile/web/1cloudfile.com/public_html/app/core/Framework.class.php(24): App\Core\Framework::dispatch()
#7 /home/1cloudfile/web/1cloudfile.com/public_html/index.php(20): App\Core\Framework::run()
#8 {main},[*code] => 40001,[*file] => /home/1cloudfile/web/1cloudfile.com/public_html/app/core/Database.class.php,[*line] => 151,[Exceptiontrace] => Array ([0] => Array ([file] => /home/1cloudfile/web/1cloudfile.com/public_html/app/core/Database.class.php,[line] => 151,[function] => execute,[class] => PDOStatement,[type] => ->),[1] => Array ([file] => /home/1cloudfile/web/1cloudfile.com/public_html/app/helpers/DownloadTrackerHelper.class.php,[line] => 75,[function] => query,[class] => App\Core\Database,[type] => ->),[2] => Array ([file] => /home/1cloudfile/web/1cloudfile.com/public_html/app/controllers/FileController.class.php,[line] => 159,[function] => clearTimedOutDownloads,[class] => App\Helpers\DownloadTrackerHelper,[type] => ::),[3] => Array ([function] => downloadHandler,[class] => App\Controllers\FileController,[type] => ->),[4] => Array ([file] => /home/1cloudfile/web/1cloudfile.com/public_html/app/helpers/RouteHelper.class.php,[line] => 391,[function] => call_user_func_array),[5] => Array ([file] => /home/1cloudfile/web/1cloudfile.com/public_html/app/core/Framework.class.php,[line] => 247,[function] => processRoutes,[class] => App\Helpers\RouteHelper,[type] => ::),[6] => Array ([file] => /home/1cloudfile/web/1cloudfile.com/public_html/app/core/Framework.class.php,[line] => 24,[function] => dispatch,[class] => App\Core\Framework,[type] => ::),[7] => Array ([file] => /home/1cloudfile/web/1cloudfile.com/public_html/index.php,[line] => 20,[function] => run,[class] => App\Core\Framework,[type] => ::)),[Exceptionprevious] => ,[errorInfo] => Array ([0] => 40001,[1] => 1213,[2] => Deadlock found when trying to get lock; try restarting transaction))) called at [/home/1cloudfile/web/1cloudfile.com/public_html/app/core/Database.class.php:155]
#1  App\Core\Database->query(UPDATE download_tracker SET date_finished=NOW(), status='cancelled' WHERE status='downloading' AND date_updated < DATE_SUB(NOW(), INTERVAL 15 second)) called at [/home/1cloudfile/web/1cloudfile.com/public_html/app/helpers/DownloadTrackerHelper.class.php:75]
#2  App\Helpers\DownloadTrackerHelper::clearTimedOutDownloads() called at [/home/1cloudfile/web/1cloudfile.com/public_html/app/controllers/FileController.class.php:159]
#3  App\Controllers\FileController->downloadHandler(34QC)
#4  call_user_func_array(Array ([0] => Themes\Spirit\Controllers\FileController Object (),[1] => downloadHandler), Array ([path] => 34QC)) called at [/home/1cloudfile/web/1cloudfile.com/public_html/app/helpers/RouteHelper.class.php:391]
#5  App\Helpers\RouteHelper::processRoutes() called at [/home/1cloudfile/web/1cloudfile.com/public_html/app/core/Framework.class.php:247]
#6  App\Core\Framework::dispatch() called at [/home/1cloudfile/web/1cloudfile.com/public_html/app/core/Framework.class.php:24]
#7  App\Core\Framework::run() called at [/home/1cloudfile/web/1cloudfile.com/public_html/index.php:20]