미디어위키 DB transaction writes or callbacks still pending

1 개요[편집]

미디어위키 DB 트랜잭션 Notice 해결
PHP Notice: Uncommitted DB writes (transaction from Database::query (LCStoreDB::get))
PHP Notice: DB transaction writes or callbacks still pending

2 문제상황[편집]

  • 아파치 로그에 다음과 같은 Notice 발생
[Wed May 17 00:59:42.792319 2017] [:error] [pid 2000] [client 127.0.0.1:47854] PHP Notice:  Uncommitted DB writes (transaction from Database::query (LCStoreDB::get)). in /var/www/html/w/includes/libs/rdbms/database/Database.php on line 3474
[Wed May 17 00:59:42.792387 2017] [:error] [pid 2000] [client 127.0.0.1:47854] PHP Notice:  DB transaction writes or callbacks still pending (LCStoreDB::finishWrite, LCStoreDB::finishWrite, LCStoreDB::finishWrite, LCStoreDB::finishWrite, LCStoreDB::finishWrite, LCStoreDB::finishWrite, LCStoreDB::finishWrite, LCStoreDB::finishWrite, LCStoreDB::finishWrite, LCStoreDB::finishWrite, LCStoreDB::finishWrite, LCStoreDB::finishWrite, LCStoreDB::finishWrite, LCStoreDB::finishWrite, LCStoreDB::finishWrite). in /var/www/html/w/includes/libs/rdbms/database/Database.php on line 3480

3 해결방법[편집]

  • LocalSettings.php에서 주석처리되어 있던 $wgCacheDirectory 설정을 복구함
$wgCacheDirectory = "$IP/cache";

4 같이 보기[편집]

5 참고[편집]