Thread:Project:Support desk/Restrict wiki pages/reply

> Patching my mediawiki-1.19.1 folder didn't work, so I renamed it to 1.17.0.

Whaa! When you bought a dog, but now want a cat, you also cannot just call your dog "cat" and think it will then behave like a cat. No, this won't work. You need to have the right files inside (inside the folder, not inside the dog ;-) ), otherwise patching won't work.

> The patch seemed to work but left a bunch of rejected files. I don't know how to fix this rejected files.

Each rejected file means that for this file or for the part which you see in the .rej file (called a hunk or maybe several hunks), the patch did not work. For every part you have in a .rej file, the original file was not patched.

You could now check, what the changes would do in an installation of Mediawiki 1.17 by checking what exactly the patch changes there. Then you could search exactly the changed pieces of code in MediaWiki 1.19.1 and implement the changes of the patch files in the MediaWiki 1.19.1 source code. I would not do that: You have 45 changed files and more than 1100 lines with changes...

First you should now overwrite your (partly) changed MediaWiki source code with the source code of MediaWiki 1.19.1 (or even better 1.19.2) to get the wiki running again.

To solve your problem: I would use another extension or do this differently. Maybe you could do that without any extension; just using namespaces? I am no expert, but I imagine the following could work: Use a special namespace to put the pages which hold the content, which only certain users should be allowed to see. Then only give users of those user groups, which should be allowed to see these pages and their content, the right to view pages in this namespace.