Extension talk:CrudeProtection

Another Problem with InstallEdit

MW version 1.11.0

I am very excited to get your crude system working on my book publisher site for simple project planning. I inserted the code, and your credits show on the Special:Version space. http://www.beachsidepress.com/ I placed the following code at the top of a certain page:

<protect>WikiSysop</protect>

Also tried that AND type="ALLOW" and sadly, when I log out from WikiSysop, it does nothing - does not lock out. Would you be so kind to look into it? --Sketch 19:57, 8 October 2007 (UTC)Reply[reply]

I will try and look into it soon, but no promises as I'm pretty busy at the moment :-( I have not tested it against the latest code, which is probably why you are experiencing problems. If you manage to find a fix please let me know, otherwise keep an eye on this page - I'll post an update when I've sorted it. --HappyDog 15:13, 9 October 2007 (UTC)Reply[reply]

Problem with Install/useEdit

MW version 1.9.3

I have cut/paste the code to extensions/crudeprotection.php. Then added include in local settings

include("extensions/CrudeProtection.php");

Created *user* 'Test Login', login TestLogin

in my user (Bureaucrat) i create a page with simply

 <protect>Dsig</protect>

Note I have tried that AND type="ALLOW" which does the same

Then save page but now in the 'creator' tab I get


Access denied From WikiSanMar Jump to: navigation, search You do not have permission to view this page. Return to Main Page.


If i try to come back into the page I get

Fatal error: Call to a member function isCurrent() on a non-object in C:\Program Files\Apache
 Software Foundation\Apache2.2\htdocs\wikiSanMar\includes\Skin.php on line 1240

Ideas?--Dtsig 17:02, 25 April 2007 (UTC)Reply[reply]


Hi - I will look into this. Currently untested on 1.9, but I will see what I can do. I'll post here when I've fixed it. --HappyDog 20:50, 29 April 2007 (UTC)Reply[reply]
Sorry, i had thought this one was tested against 1.9 .. my mistake. If you get a chance that would be great. Thanks--Dtsig 13:41, 30 April 2007 (UTC)Reply[reply]
OK - I've checked this and the problem is due to a bug in MediaWiki (as far as I can tell), which I've logged as bugzilla:9739. If you want to fix your local copy, then line 1240 of /includes/Skin.php should be changed from:
if( $this->mRevisionId && ! $wgArticle->isCurrent() ) {
to
 if( $this->mRevisionId && $wgArticle && ! $wgArticle->isCurrent() ) {
The other behaviour you describe (the 'Access denied' error) is expected. If you protect the page so only Dsig can view it then only Dsig can view it. If you do this whilst logged in as another user then that user will now be unable to view the page they just edited. There are no sysop overrides for this behaviour.
--HappyDog 14:54, 30 April 2007 (UTC)Reply[reply]
Return to "CrudeProtection" page.