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

Jmnote bot (토론 | 기여)님의 2017년 7월 14일 (금) 03:56 판 (봇: 자동으로 텍스트 교체 (-==참고 자료== +==참고==))

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 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}