Hi,
I downloaded the MediaWiki Language Extension bundle,
MediaWikiLanguageExtensionBundle-2015.01.tar.bz2, extracted its contents
(in the internal /extensions directory) and copy-pasted the subfolders
within the extensions folder to my MediaWiki installation's extensions
folder. Then I added:
|require_once("extensions/Babel/Babel.php");||
||require_once("extensions/cldr/cldr.php");||
||require_once("extensions/CleanChanges/CleanChanges.php");||
||$wgCCTrailerFilter = true;||
||$wgCCUserFilter = false;||
||$wgDefaultUserOptions['usenewrc'] = 1;||
||require_once("extensions/LocalisationUpdate/LocalisationUpdate.php");||
||$wgLocalisationUpdateDirectory = "$IP/cache";||
||require_once("extensions/Translate/Translate.php");||
||
||$wgGroupPermissions['user']['translate'] = true;||
||$wgGroupPermissions['user']['translate-messagereview'] = true;||
||$wgGroupPermissions['user']['translate-groupreview'] = true;||
||$wgGroupPermissions['user']['translate-import'] = true;||
||$wgGroupPermissions['sysop']['pagetranslation'] = true;||
||$wgGroupPermissions['sysop']['translate-manage'] = true;||
||$wgTranslateDocumentationLanguageCode = 'qqq';||
||$wgExtraLanguageNames['qqq'] = 'Message documentation'; # No
linguistic content. Used for documenting messages||
|
To LocalSettings.php and now my MediaWiki installation is giving the
error: |
|
|A database query error has occurred. This may indicate a bug in the
software.. |
Any ideas of how I can overcome this error?
Thanks for your time,
Brenton
require_once("extensions/UniversalLanguageSelector/UniversalLanguageSelector.php");
Hi,
I added this:
|
|
|/* Styling the parameter fields in [[Template:Information]] and
related templates|||
||| also here (besides on [[MediaWiki:Filepage.css]]) to ensure
proper preview|||
||| on other pages than those in the file namespace */|||
|||.fileinfo-paramfield {|||
||| background: #ccf;|||
||| /* @noflip */|||
||| text-align: right;|||
||| padding-right: 0.4em;|||
||| width: 15%;|||
||| font-weight: bold;|||
|||}|
To my local Wiki's Common:CSS but this is how it is rendered (I am just
on the template page, so there's no input entered):
http://i.imgur.com/suuxTtk.png. This is how Wikimedia Commons
Template:Information is rendered for me in the same skin (vector)
http://i.imgur.com/Q4vnpXp.png. Now I'd like to know what CSS styles I
need to get it looking the same on my Wiki.
Thanks for your time,
Brenton
First off this is just a question not a rant or a concern, just curious.
Is Scribunto and Lua scripting replacing 'Template: " calls in
Mediawiki. It seems that there is considerable redundancy in having both
functions doing much of the same work. Just wondering so that I may make
reasoned judgements as to what directions I may need to follow personally.
Thanks.
--
John Foster
JW Foster & Associates
In my experience setting $wgJobRunRate to ) and setting up a cron job for
runJobs.php works more reliably. The changes made a few versions ago
steered me toward this method. It might be worth looking into. Especially
if you have a lower trafficked wiki.
http://www.mediawiki.org/wiki/Manual:Job_queue
Yours,
Chris Koerner
clkoerner.com
Hi,
I suspect this question will not have as elegant an answer as I'd like
but I was wondering if anyone in this mailing lists knows an easy (like
easy enough for someone with as little programming understand as myself)
automated way of downloading all the files in a category or an article
on a Wikimedia project/Wikia site. I am running windows 7 (64 bit) SP1
if it is relevant, although I do have access to a Linux command line
(namely cygwin 64 bits) if needed.
I have seen
|http://how-to.wikia.com/wiki/How_to_download_all_image_files_in_a_Wikimedia_Commons_page_or_directory|
but it didn't help me as at the |WIKI_LINKS| step I received an error
that there was no such page on Wikimedia Commons.
If you would like a specific example to work with (i.e., a specific
category to write a code to download from) try the Wikimedia Commons
category Histopathology
(|https://commons.wikimedia.org/wiki/Category:Histopathology|). Dw I
know this download will take a while due to the number and size of the
files involved.
Thanks for your time,
Brenton
Hi,
I've posted a question on StackOverflow on this topic
(http://stackoverflow.com/questions/28677871/how-do-i-add-specialprefixindex…)
and I think I may be able to answer the question myself, if someone
would tell me what the full page name variable is in JavaScript and how
to insert a JavaScript variable like this into strings like
'http://127.0.0.1/mediawiki/index.php/Special:PrefixIndex/'
I have done some research into JavaScript, which is what inspired me to
ask this question because I knew that quotation marks "" substitute
variable names with their variable value leaving the rest of what is in
them as a string, whereas apostrophes like ' ' render everything inside
them as a string. So I initially tried to define the page name variable
using:
|var page= mw.config.get( 'wgPageName' );|
then I defined the URL string
|'http://127.0.0.1/mediawiki/index.php/Special:PrefixIndex/'"page"| then
I thought I must have screwed up with my quotation marks vs. apostrophes
and their roles in JS so I switched the apostrophes for quotation marks
and vice versa, but this didn't solve my problem.
Thanks for your time,
Brenton
Hi,
I've tried to install the SideBarMenu extension
(https://www.mediawiki.org/wiki/Extension:SideBarMenu). This is how I
went about it (note the software/extension links are all download link
so if you open them in your browser be prepared to download them):
1. I installed composer by running this binary
https://getcomposer.org/Composer-Setup.exe. No apparent errors were
encountered. When it prompted me for php.exe I used the php.exe of
my MediaWiki installation namely
|C:\Bitnami\mediawiki-1.24.1-0\php\php.exe.|
2. I downloaded the zip directory for the extension via this link:
https://codeload.github.com/wikimedia/mediawiki-extensions-SideBarMenu/zip/….
I then unzipped it, renamed the directory SideBarMenu and
copy-pasted it to |...\extensions|. I then added
|require_once("extensions/SidebarMenu/SidebarMenu.php"); |to
|LocalSettings.php|. Which was what the extension page I linked
earlier told me to do.
3. I then opened up a page on the local mediawiki installation with
this content: |SideBarMenu requires extension ParamProcessor. |
4. I then downloaded the zip file for ParamProcessor here
https://codeload.github.com/JeroenDeDauw/ParamProcessor/zip/master,
extracted its contents, copy-pasted it to
|C:\Bitnami\mediawiki-1.24.1-0\php| (where it was in its own
directory ...\ParamProcessor). I then added ||
|"require": {|||
|||"/Bitnami/mediawiki-1.24.1-0/php/ParamProcessor/param-processor":
"~1.0"|||
||| }|
to
|C:\Bitnami\mediawiki-1.24.1-0\php\PEAR\AWSSDKforPHP\Composer.json|
as the READEME.md file that came with it said I should and reloaded
the same page on my Wiki to receive the same error.
Now I am left asking if anyone knows how I could overcome this error.
Thanks for your time,
Brenton
Hello,
We have a CentOS 7 server running Mediawiki 1.24.1, Apache 2.4.6, PHP
5.4.16, Shibboleth (SP) 2.5.3 and fast CGI 2.3.9. We are also using the
mediawiki shibboleth extension fork taken from github.
Unfortunately putting it all together is proving a problem. The
Shibboleth SP code seems to be working fine with our IdP in that we can
see that a user is authenticated, and the relevant attributes returned
by the IdP. The SP code sets the users userid in the Apache REMOTE_USER
variable. (The SP session shows this.)
The problem is that the shibboleth extension seems to always see the
user as being logged in (wgUser is set and isLoggedIn() returns true)
but with the shib_UN variable unset. So it logs the user out (which in
turn has mediawiki send them back to the login page (we don't allow
anonymous access)). By putting some debug statements in the extension we
can see that the above is happening.
Looking at the Apache logs seems to indicate that the REMOTE_USER
variable is set (we see the users userid being logged), but when the
user is redirected then the userid/REMOTE_USER value is lost.
So, my question is has anyone got this combination working at all? I
have tried setting shib_UN to '$_SERVER['REDIRECT_REMOTE_USER']' but
that made no difference. If I set it explicitly to my own userid, then
everything works fine. I can log in, see the main wiki page, edit things
etc, and then logout. So it seems that basically everything is working,
except for the fact that REMOTE_USER is becoming unset somewhere.
Anyone any ideas about this?
Thanks,
John.
--
----------------------------------------------------
John Horne Tel: +44 (0)1752 587287
Plymouth University, UK
I've been seeing a problem for some time now where jobs in the queue will
not get run or removed from the job table. The showJobs and runJobs scripts
don't seem to find them but the do show in the job table and the only way
to remove them is manually with delete (or truncate) statements. The job
type varies, sometimes SMW\UpdateJob, sometimes refreshLinks, etc. I have
five wikis but it only seems to happen on three of them since the other two
have very low write activity. They are all currently MediaWiki 1.23.2 and
Semantic MediaWiki 2.0.
Please let me know if there are any known bugs I should look into as the
possible culprits (I've yet to see any that seem to match this issue) and
whether there is any more information I can provide to help troubleshoot
this.