https://bugzilla.wikimedia.org/show_bug.cgi?id=32800

       Web browser: ---
             Bug #: 32800
           Summary: dumpBackup.php fails when $wgMainCacheType =
                    CACHE_APC; (and apc is disabled on commandline php)
           Product: MediaWiki
           Version: 1.18
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: Unprioritized
         Component: Maintenance scripts
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: b...@exotica.org.uk
                CC: innocentkil...@gmail.com
    Classification: Unclassified


Steps to reproduce

1) set $wgMainCacheType = CACHE_APC;
2) from commandline (without apc enabled), run dumpBackup.php

CACHE_ACCEL requested but no suitable object cache is present. You may want to
install APC.
Backtrace:
#0 [internal function]: ObjectCache::newAccelerator(Array)
#1 mediawiki/includes/objectcache/ObjectCache.php(62):
call_user_func('ObjectCache::ne...', Array)
#2 mediawiki/includes/objectcache/ObjectCache.php(50):
ObjectCache::newFromParams(Array)
#3 mediawiki/includes/objectcache/ObjectCache.php(23):
ObjectCache::newFromId(3)
#4 mediawiki/includes/GlobalFunctions.php(3600): ObjectCache::getInstance(3)
#5 mediawiki/includes/Setup.php(402): wfGetMainCache()
#6 mediawiki/maintenance/doMaintenance.php(98): require_once('...')
#7 mediawiki/maintenance/commandLine.inc(64): require('...')
#8 mediawiki/maintenance/dumpBackup.php(32): require_once('...')
#9 {main}

(note some paths have been stripped for security)

This worked on 1.17. It is quite common to want APC enabled for www, but not
have it running for commandline php.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to