Remove begin/commit calls in wrUpdateWrReportCacheTable to avoid an Wikimedia\Rdbms...
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Tue, 19 Nov 2019 22:30:33 +0000 (22:30 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Tue, 19 Nov 2019 22:30:33 +0000 (22:30 +0000)
The error message is 'Implicit transaction already active'.

git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/mediawiki_extensions/wrreport/trunk@2837 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrreport_body.php

index d991624fd5927cf40096fe0db61e73680127975a..88950b9aad333e9acdbee65a52265b4e5326fc9a 100644 (file)
@@ -221,7 +221,6 @@ function wrUpdateWrReportCacheTable($page_id) {
 
        // Delete the old content (if any)
        $dbw = wfGetDB(DB_MASTER);
-       $dbw->begin();
        $dbw->delete('wrreportcache', array('page_id' => $page_id));
 
        // Insert the updated row
@@ -237,7 +236,6 @@ function wrUpdateWrReportCacheTable($page_id) {
                        'author_name' => $row['author_name'],
                        'author_username' => (is_null($row['author_userid']) ? NULL : $row['author_username'])));
        }
-       $dbw->commit();
 }