Bug#679555: [Pkg-mediawiki-devel] Bug#679555: mediawiki: Update to 1.19 needs php-apc

2012-06-30 Thread Uwe Steinmann
On Sat, Jun 30, 2012 at 12:23:44AM +0200, Platonides wrote:
 On 29/06/12 20:36, steinm wrote:
  Package: mediawiki
  Version: 1:1.19.1-1
  Severity: important
  
  Dear Maintainer,
  
  i could not update to 1.19 unless I installed php-apc. After installing
  it the update.php script run without errors. The application didn't run
  either but after restarting apache (and loading php-apc) it worked.
  
   Uwe
 
 MediaWiki doesn't require APC. Did the configuration of the wiki being
 updated have a parameter set to use APC? (usually with CACHE_ACCEL)
Now that you mentioned it, I checked the configuration and it
contains a line
$wgMainCacheType = CACHE_ACCEL;

I didn't add it and mediawiki definitely run when it was still at 1.15.
So either it didn't matter before or the update to 1.19 has added
that line. 

  Uwe

-- 
  MMK GmbH, Fleyer Str. 196, 58097 Hagen
  uwe.steinm...@mmk-hagen.de
  Tel: 02331 840446Fax: 02331 843920


signature.asc
Description: Digital signature


Bug#679555: [Pkg-mediawiki-devel] Bug#679555: mediawiki: Update to 1.19 needs php-apc

2012-06-30 Thread Platonides
On 30/06/12 14:45, Uwe Steinmann wrote:
 On Sat, Jun 30, 2012 at 12:23:44AM +0200, Platonides wrote:
 MediaWiki doesn't require APC. Did the configuration of the wiki
 being updated have a parameter set to use APC? (usually with
 CACHE_ACCEL)
 Now that you mentioned it, I checked the configuration and it 
 contains a line $wgMainCacheType = CACHE_ACCEL;
 
 I didn't add it and mediawiki definitely run when it was still at
 1.15. So either it didn't matter before or the update to 1.19 has
 added that line.
 
 Uwe

The update doesn't modify your LocalSettings.php (much less to a
config that will break the update!).
Looking at the code, in 1.15 a setting of CACHE_ACCEL was silently
ignored if there was no accelerator cache available.
Since the r83140 rewrite (available on mediawiki 1.18), it throws an
exception on such case (it is, after all, a conflictive configuration).



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#679555: [Pkg-mediawiki-devel] Bug#679555: mediawiki: Update to 1.19 needs php-apc

2012-06-30 Thread Uwe Steinmann
On Sat, Jun 30, 2012 at 03:40:44PM +0200, Platonides wrote:
 On 30/06/12 14:45, Uwe Steinmann wrote:
  On Sat, Jun 30, 2012 at 12:23:44AM +0200, Platonides wrote:
  MediaWiki doesn't require APC. Did the configuration of the wiki
  being updated have a parameter set to use APC? (usually with
  CACHE_ACCEL)
  Now that you mentioned it, I checked the configuration and it 
  contains a line $wgMainCacheType = CACHE_ACCEL;
  
  I didn't add it and mediawiki definitely run when it was still at
  1.15. So either it didn't matter before or the update to 1.19 has
  added that line.
  
  Uwe
 
 The update doesn't modify your LocalSettings.php (much less to a
 config that will break the update!).
 Looking at the code, in 1.15 a setting of CACHE_ACCEL was silently
 ignored if there was no accelerator cache available.
 Since the r83140 rewrite (available on mediawiki 1.18), it throws an
 exception on such case (it is, after all, a conflictive configuration).
That explains it at least. The question remains if the previous
version 1.15 in Debian did have $wgMainCacheType set by default.
If not, I must have set that some time, though I'm not aware of it.
If it was set in 1.15 already, it should be handled by the update
to 1.19.

  Uwe

-- 
  MMK GmbH, Fleyer Str. 196, 58097 Hagen
  uwe.steinm...@mmk-hagen.de
  Tel: 02331 840446Fax: 02331 843920


signature.asc
Description: Digital signature


Bug#679555: [Pkg-mediawiki-devel] Bug#679555: mediawiki: Update to 1.19 needs php-apc

2012-06-30 Thread Platonides
On 30/06/12 21:14, Uwe Steinmann wrote:
 The update doesn't modify your LocalSettings.php (much less to a 
 config that will break the update!). Looking at the code, in 1.15
 a setting of CACHE_ACCEL was silently ignored if there was no
 accelerator cache available. Since the r83140 rewrite (available
 on mediawiki 1.18), it throws an exception on such case (it is,
 after all, a conflictive configuration).
 That explains it at least. The question remains if the previous 
 version 1.15 in Debian did have $wgMainCacheType set by default. If
 not, I must have set that some time, though I'm not aware of it. If
 it was set in 1.15 already, it should be handled by the update to
 1.19.
 
 Uwe

Maybe you had APC installed when you installed MediaWiki for the first
time? Then it may have suggested you that config.
After that you may have uninstalled APC and merrily continued without
noticing.
I don't think update.php should ignore that setting (and the wiki
would also die anyway). It would be preferable to have a nicer failure
message, though.





-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#679555: [Pkg-mediawiki-devel] Bug#679555: mediawiki: Update to 1.19 needs php-apc

2012-06-29 Thread Platonides
On 29/06/12 20:36, steinm wrote:
 Package: mediawiki
 Version: 1:1.19.1-1
 Severity: important
 
 Dear Maintainer,
 
 i could not update to 1.19 unless I installed php-apc. After installing
 it the update.php script run without errors. The application didn't run
 either but after restarting apache (and loading php-apc) it worked.
 
  Uwe

MediaWiki doesn't require APC. Did the configuration of the wiki being
updated have a parameter set to use APC? (usually with CACHE_ACCEL)



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org