I'm looking for a way to convert all actions like history, edit, move, delete, etc., into "view". So far, no luck.
Background: This is for a minimal wiki (1.24) that permits anonymous users only to read (action=view) and disables all other actions (history, edit, move, etc.). Logged-in users have full capabilities.
I can easily achieve the goal with the hook "MediaWikiPerformAction", throwing a 404 with an error page. But I'd much rather *convert* all actions into "view" instead of displaying errors, so "MyTitle?action=history" becomes "MyTitle?action=view".
I can't seem to do this with MediaWikiPerformAction because I can't seem to modify the action. The request object is provided only by value, the MediaWiki object's context is private, and changing RequestContext::getMain()->getRequest() doesn't seem to do it.
Any suggestions on the best way to do this?
Thanks very much!
My email address has changed to danb(a)cimpress.com. Please update your address book.
Cimpress is the new name for Vistaprint NV, the world’s leader in mass customization. Read more about Cimpress at www.cimpress.com.
I'd like to allow special characters in file names on my Wiki. For example,
currently I'd like some file names to include Greek letters like alpha and
beta. In order to avoid being accused of using this list as my personal
"Google" I am giving you the details of all my searches of Google and
Wikimedia sites. I have checked https://phabricator.wikimedia.org/T3780 but
I couldn't see any solutions to this problem. I was going to try
https://phabricator.wikimedia.org/T3780#60419 but after I searched
SpecialUpload.php I did not find anywhere in the file with
> if( $this->saveUploadedFile(
in it, hence I couldn't even give it a try (granted that posted made almost
8 years ago).
I also found https://www.mediawiki.org/wiki/FileBackend after searching for
FileBackend, as it was a popular topic in this thread, in a MediaWiki
search but I hadn't the foggiest how it applied to what I wanted. I also
but I haven't a clue what the accepted answer meant for me.
Thanks for your time,
My team at the MITRE Corporation is considering using the LiquidThreads
(LQT) code base as a starting point for a new commenting extension we are
writing. We would either fork LQT and work directly on the existing code,
or at least use the code as inspiration or a basis for how to start
designing our own extension.
I'm aware that development of LQT was canceled over three years ago - can
anyone shed some light on the backstory of why it was abandoned? If there
were some fundamental technical flaws with the extension, that would be
good for us to know if we shouldn't waste our time; on the other hand, if
it was more of a policy/philosophy reason, then that would also be good for
us to know, to see if that reasoning applies to our needs.
The MITRE Corporation
I'm happy to announce the immediate availability of two entirely new
extensions to Semantic MediaWiki!
*## Semantic Breadcrumb Links*
Semantic Breadcrumb Links is a Semantic Mediawiki extension to aid in-page
navigation by building breadcrumb links from an attributive property
filter. It uses a pattern match strategy to filter property usage (e.g. Has
parent page) that ascribe the location of a page relative to its parent and
provides navigational help by generating a breadcrumb trail.
You can find installation and usage instructions for the 1.0 release at
*## Semantic Interlanguage Links*
Semantic Interlanguage Links is a Semantic Mediawiki extension to create
and manage interlanguage links. This extension creates interlanguage links
and provides queryable annotations that can connect pages with similar
content for different languages to be accessible via the sitelink
navigation by using the INTERLANGUAGELINK parser function.
You can see the extension in action at https://vimeo.com/115871518
Installation and usage instructions for the 1.0 release can be found at
Both these extensions were created by MWJames. Some minor contributions
where made by Karsten Hoffmeyer, Jaider Andrade Ferreira and myself.
Jeroen De Dauw - http://www.bn2vs.com
Software craftsmanship advocate
Evil software architect at Wikimedia Germany
I installed the master branch using the install.php script and
everything seems to be working except for uploads. I'm seeing this
error, which I've never seen before:
Fatal error: Cannot use object of type LocalRepo as array in
/var/www/.../includes/filerepo/FileRepo.php on line 1285
Did I do something wrong somewhere?
Hi i have this https://gerrit.wikimedia.org/r/#/c/184689/ in gerrit but was rejected because it had duplicate information. i would like to filter out extensions and only show skins on the skins api because at the moment it only shows the skins name and if it is default and if it is being skipped i would like to add the information that extension has but also have default skin and is it skipped also. skins have version and other information but it is not shown in the api.
I'll probably have to jump on irc but it's late so I thought I'd start here first.
Use MW to write content for help screens. Use a proxy to serve the content in an admin panel. The issue: Special:MyLanguage doesn't work as it does pushing users at their language when they click a link in the help window. Instead, the proxy requests the literal link to the page of Special:MyLanguage/A_pagename which of course does not exist as a page because Special:MyLanguage isn't processed first to see if the language a user is viewing exists before sending the user to the language page or fallback language page.
REGEX out Special:MyLanguage/ ? Then add on lang code of admin view of interface to match help system pages in mw. Can be done but that would be expensive. Some pages could have 10-20 links.
Thoughts appreciated as I maybe missing something with the api.
I have a little old and well used Mediawiki installation, which has to
The old installation is version 1.12.0 with php 5.1 and mysql 5.0.
The new one is php 5.3.17 and mysql 5.5.31, I tried Mediawiki 1.24.1.
I dumped the database and copied the webserver directory of the wiki.
The manual upgrade does not work for me. I got the following error:
PHP Fatal error: Cannot redeclare wfProfileIn() (previously declared in
/srv/www/htdocs/wiki/includes/ProfilerStub.php on line 12
Even after I commented out any used extension in LocalSettings.php and
deleting the extensions files.
After that I deleted the wiki dir on the new server in whole and
extracted the tar again on the fresh dir.
The installation assistant is starting and I connect to the database.
Then this happens:
The existing database is found.
#11 /srv/www/htdocs/wiki/mw-config/index.php(38): wfInstallerMain()
I can hit "next" as often as I want, the assistant is stuck.
In error_log I find this:
PHP Notice: Uncommitted DB writes (transaction from
/srv/www/htdocs/wiki/includes/db/Database.php on line 4266, referer:
I really like to update/migrate the wiki installation.
How to get over the occurred error?
My Wiki was meant to send me an email confirmation but when I went to
Special:ConfirmEmail and I got it to send me a confirmation email and it
returned this error on the page:
Failed to connect to mailserver at "localhost" port 25, verify your
"SMTP" and "smtp_port" setting in php.ini or use ini_set()
How do I overcome this error?
Thanks for your time,