Topic on Extension talk:Lockdown

Upgrade MW 1.34 - LockDown stops working

1
IMTS-TB (talkcontribs)

Hi there,


My first post here, so please be gentle!


Been working with, and administering, our private MediaWiki for close to a year now.

Set it up, including LockDown, starting with version 1.31.x (if I remember correctly).

LockDown of our custom NameSpaces has worked fine, no issues. I set it up so that a usergroup has edit/create rights within their own NameSpace, and only Read rights in all other custom NameSpaces.

Now, after upgrading MediaWiki to 1.34.0, when browsing to a page within another NameSpace, I receive an error on that page (translated from Dutch):


This page does not function

wiki.domain,name can not process this request.

HTTP ERROR 500


If I disable the extionsion LockDown in the LocalSettings.php, all pages are viewable (and editable).

Does anybody else have this problem, or a way to resolve this issue?


One of the sections from our LocalSettings.php:

wfLoadExtension( 'Lockdown' );

# Start with assigning the default permissions from group "autoconfirmed"

$wgGroupPermissions['IMTSSB_Users'] = $wgGroupPermissions['autoconfirmed'];

# Add the permissions from group "bot"

$wgGroupPermissions['IMTSSB_Users'] = array_merge($wgGroupPermissions['IMTSSB_Users'], $wgGroupPermissions['bot']);

# Now modify these rights:

$wgGroupPermissions['IMTSSB_Users']['delete'] = true;

$wgGroupPermissions['IMTSSB_Users']['protect'] = true;

$wgGroupPermissions['IMTSSB_Users']['patrol'] = true;


## Custom Namespaces

# Create Custom Namespaces

define('NS_IMTSSB', 500);

define('NS_IMTSSB_TALK', 501);

define('NS_IMTSNB', 502);

define('NS_IMTSNB_TALK', 503);

define('NS_IMTSAB', 504);


# Define Custom Namespaces

# Custom Namespace "IMTSSB" Serverbeheer

$wgExtraNamespaces[NS_IMTSSB] = 'IMTSSB';

$wgExtraNamespaces[NS_IMTSSB_TALK] = 'IMTSSB_talk';

# restrict "read" permission to anyone

$wgNamespacePermissionLockdown[NS_IMTSSB]['read'] = [ '*' ];

$wgNamespacePermissionLockdown[NS_IMTSSB_TALK]['read'] = [ '*' ];

# give all permissions to members of IMTSSB_Users group

$wgNamespacePermissionLockdown[NS_IMTSSB]['*'] = [ 'IMTSSB_Users' ];

$wgNamespacePermissionLockdown[NS_IMTSSB_TALK]['*'] = [ 'IMTSSB_Users' ];

# prevent inclusion of pages from that namespace

$wgNonincludableNamespaces[] = NS_IMTSSB;

$wgNonincludableNamespaces[] = NS_IMTSSB_TALK;

Reply to "Upgrade MW 1.34 - LockDown stops working"