[Pkg-mediawiki-devel] Bug#626492: mediawiki fails to install with memcached

fred concklin fred at fredri.cc
Thu May 12 11:21:07 UTC 2011

Package: mediawiki
Version: 1:1.15.5-2squeeze1
Severity: normal
Tags: squeeze

I get the following when trying to install mediawiki with default procedure through web based installer:

Checking environment...

Please include all of the lines below when reporting installation problems.

    * PHP 5.3.3-7+squeeze1 installed
    * Found database drivers for: MySQL PostgreSQL
    * PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title)
    * Have XML / Latin1-UTF-8 conversion support.
    * Session save path (/var/lib/php5) appears to be valid.
    * PHP's memory_limit is 128M.
    * APC installed
    * Found GNU diff3: /usr/bin/diff3.
    * Found ImageMagick: /usr/bin/convert; image thumbnailing will be enabled if you enable uploads.
    * Installation directory: /var/lib/mediawiki
    * Script URI path: /mediawiki
    * Installing MediaWiki with php file extensions
    * Environment checked. You can install MediaWiki.
    * Connected to memcached on localhost:11211 successfully

      Generating configuration file...
    * Database type: MySQL
      Warning: Memcached::__construct() expects parameter 1 to be string, array given in /usr/share/mediawiki/includes/ObjectCache.php on line 63 Fatal error: Call to a member function set_servers() on a non-object in /usr/share/mediawiki/includes/ObjectCache.php on line 64 

>From ObjectCache.php

        if ( $type == CACHE_MEMCACHED ) {
                if ( !array_key_exists( CACHE_MEMCACHED, $wgCaches ) ) {
                        if ( !class_exists( 'MemcachedClientforWiki' ) ) {
                                class MemCachedClientforWiki extends memcached {
                                        function _debugprint( $text ) {
                                                wfDebug( "memcached: $text" );
                        $wgCaches[CACHE_MEMCACHED] = new MemCachedClientforWiki( array('persistant' => $wgMemCachedPersistent, 'compress_threshold' => 1500 ) );

### line 63 below ###          

              $wgCaches[CACHE_MEMCACHED]->set_servers( $wgMemCachedServers );
                        $wgCaches[CACHE_MEMCACHED]->set_debug( $wgMemCachedDebug );
                $cache =& $wgCaches[CACHE_MEMCACHED];

-- System Information:
Debian Release: 6.0.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-xen-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages mediawiki depends on:
ii  apache2                2.2.16-6+squeeze1 Apache HTTP Server metapackage
ii  apache2-mpm-prefork [h 2.2.16-6+squeeze1 Apache HTTP Server - traditional n
ii  debconf [debconf-2.0]          Debian configuration management sy
ii  mime-support           3.48-1            MIME files 'mime.types' & 'mailcap
ii  php5                   5.3.3-7+squeeze1  server-side, HTML-embedded scripti
ii  php5-mysql             5.3.3-7+squeeze1  MySQL module for php5
ii  php5-pgsql             5.3.3-7+squeeze1  PostgreSQL module for php5

Versions of packages mediawiki recommends:
ii  mysql-server            5.1.49-3         MySQL database server (metapackage
ii  mysql-server-5.1 [mysql 5.1.49-3         MySQL database server binaries and
ii  php5-cli                5.3.3-7+squeeze1 command-line interpreter for the p

Versions of packages mediawiki suggests:
pn  clamav                <none>             (no description available)
ii  imagemagick           8:        image manipulation programs
ii  mediawiki-math        1:1.15.5-2squeeze1 math rendering plugin for MediaWik
ii  memcached             1.4.5-1            A high-performance memory object c

-- Configuration Files:
/etc/mediawiki/apache.conf changed [not included]

-- debconf information:
  mediawiki/webserver: apache2

More information about the Pkg-mediawiki-devel mailing list