I'm logged in here but not Boobpedia i don't think. I'm not getting the little white star to watch pages yet. I've tried resting throygh the email but but getting the emails . Any advice? Please and thank you. Erika
Project:Support desk
Hi there,
We created a template for the new Wikibase main page. The latest revisions are two weeks old and have not been marked for translation -- perhaps because this is the revision set in which we removed the DoNotTranslate template. Would it be possible to get this page marked for translation?: Template:Wikibase main page
Thanks, and if we did something wrong in this process please let us know so we can avoid this situation in future.
Done
For future reference, these types of requests should go to Project:Village pump not this page.
Thank you, sorry for the misplaced ask.
Hello everyone !
I recently installed mediawiki with the 'Parser' extension.
But when I try to log in to my wiki, I get this error :
"[ZkDhPaXGad5SVb3nIP2RQAAAAAM] /wiki_test2/index.php?title=Accueil MWException: Parser state cleared while parsing. Did you call Parser::parse recursively? Lock is held by: #0 /var/www/alternc/t/titouan/www/queernet.xyz/wiki_test2/includes/parser/Parser.php(882): Parser->lock()"
Does anyone have an idea what might be causing this ?
Thanks :)
I have never heard of an extension named "Parser". Presumably the extension is broken.
i think the extension is called ParserFunctions. its under the Syntax Analyser Add-ons options when you install mediawiki
There is a very big difference between "Parser" and "ParserFunctions".
Normally the error message should be longer then that. The rest of the error message likely provides information on the cause of the problem.
Syntax Analyzer Add-ons is not a product we make (nor have i ever heard of it). If you are having trouble with a third party distribution of MediaWiki, consider using the official version at Download. The amount of help we can provide for unofficial distributions made by third parties is limited.
Hi all, Tunit is useful. It works in simple wikicode. But when it is present in a syntaxhighlight, the substitution does not occur. I have tried a text manipulation to get Tunit at first level but it is a bit dirty. Any idea on how to do that in a proper way ?
see -> https://www.mediawiki.org/wiki/API:User_group_membership/Sample_code_1?oldid=6512628#PHP
Thanks.--Christian 🇫🇷 FR (talk) 09:10, 10 May 2024 (UTC)
There is no substitution inside syntaxhighlighting. It takes code as is and wikicode doesn't really do anything there (not really true, because categorization works, but that is because it happens outside of the rendering pipeline of highlighted fragments).
You can try #tag, but that presents its own set of challenges
I have created a Glossary of Terms that currently has a few hundred terms. The Glossary is specifically terms used in the Circular Economy, Sustainability, Climate Change, Biodiversity and Resource Scarcity. However, over the next few months, it will expand significantly. The Glossary is only available in pdf format but I would like to make it digital, hence a wiki.
The number of users creating the wiki will be very small, but the number of people accessing the wiki will be thousands. Here are my questions:
1. For external visitors, can I turn off access to make changes?
2. Can I add tags? For example, the Glossary covers terms across many industry sectors. However, if you are from the building industry, only interested in terms related to buildings, if those terms were tagged 'Built Environment' - could a page show a list only of those terms? The types of terms that would be listed are: 'Embodied Carbon', 'Concrete - low carbon', 'Concrete Floors - embodied carbon' etc. So a visitor would see a page with all the terms tagged 'Built Environment' and then click on the term they were interested in.
In the example from SEEBoK, they also have a Glossary which is a category. If you click onto a term, only the definition from that term comes up. https://sebokwiki.org/wiki/Category:Glossary_of_Terms
This would not be suitable for the type of Wiki I wish to build.
Adrienna Zsakay
CEO
Circular Economy Asia Inc
ABN: 99 234 005 090
Website: www.circulareconomyasia.org
For 1 - yes, see manual:Preventing access
For 2, it depends on how exactly you are envisioning this. You may want sonething like extension:SemanticMediaWiki or extension:Cargo, but there are also other options out there.
I already complained about that, made the ticket and everything. Yet, no solutions were presented.
The tool keeps flagging every single stretch of the text as having 100% to 96% unmodified text, thus blocking the publication of the article. Almost every translation keeps giving me the false-positive of it being an earlier version of the article, thus also impeding the publication of the same.
The tool never saves the infobox, thus forcing me to remake it every time I open the translation. It keeps losing entire paragraphs already translated, thus wasting my time in re-translating the same thing 3 or 4 times.
It also clashes auto translation with my translations, usually on links.
Is this any different from phab:T356356?
In my personal wiki, an image file is listed as „Media contained in category X“ on a category cover page. I'd like to remove the media file from this category, but I can't, as the image page itself contains no category information.
What makes things even worse is that the image file is not only listed on the category page but its name is overwritten by the string „file is missing“.
Can I get rid of this through maintenance scripts or fiddling with SQL? Thanks for your help!
Sometimes this can happen if the title contains invalid UTF-8 (And there are two files with basically the same name but one in an invalid variant of UTF-8).
try running cleanupTitles.php.
The alternative is to try and find the page id of the image via the api, and manipulate it that way. However the maintenance script is much easier.
Thanks for your answer, Bawolff!
Running cleanupTitles.php renamed quite a few files in my database.
Unfortunately, the sticky media file is still on the category page. I have to try out the API way I guess… :-(
I finally succeeded in deleting the sticky media file by using nukePage.php with the page name "File:…" and --delete option as arguments. Yeah!
Hello,
I am working on a custom extension that would only allow admin users to upload video files, the extension is enabled and appears under Special:Version. The permission also appears under the correct category under Special:ListGroupRights.
However, when I attempt to upload a video (mp4) under Special:Upload, it goes through.
I just enabled error reporting / showExceptionDetails / debugToolbar / ShowDebug / DevelopmentWarnings and added print statements to my extension file, but I am not seeing any indicators that it's trying to work but is failing.
I am hoping somebody could point me in the right direction on how to debug this more efficiently or offer insight into the problem. Thank you for your time and expertise.
In the PHP file:
namespace MediaWiki\Extension\VideoPermissions;
use MediaWiki\Hook\UploadVerifyUploadHook;
use User;
use UploadBase;
class PermissionCheck implements UploadVerifyUploadHook {
public function onUploadVerifyUpload (UploadBase $upload, User $user, ?array $props, $comment, $pageText, &$error) {
$file = $upload->getLocalFile();
if ($file->getMediaType() !== MEDIATYPE_VIDEO) {
return;
} else {
$title = $upload->getTitle();
if ($user->definitelyCan('videopermission-allow', $title)) {
} else {
$error = 'videopermission-no-perm-to-upload';
return false;
}}}
in the extension.json file:
"AvailableRights": ["videopermissions-allow"],
"GroupPermissions": {"sysop": {
"videopermissions-allow": true
}},
"Hooks": {"UploadVerifyUpload": "main"
},
"HookHandlers": {"main": {
"class": "\\MediaWiki\\Extension\\VideoPermissions\\PermissionCheck"
}},
So, first of all, print() (and echo) won't work in mediawiki due to output buffering. Always use var_dump() if you want to output something for debugging purposes to the page (or if you want to output to the debug log, use the debug logging system. You can use wfDebug() as a one off, or add a LoggerFactory as a dependency if you want to do it more properly for longer lived code). I personally tend to use var_dump() for one off debugging instead of debug log system, as i find it easier, but its a matter of personal preference.
One thing to note is that in workflows where a POST request is made, processing happens, and then the user is redirected to a different page, the debug messages will be associated with the redirect not the target. I believe that upload processing is one such example of this. In these cases wgDebugToolbar and var_dump wont work (a hack sometimes used is to follow var_dump() immediately by die() to stop processing). In such a case i reccomend setting $wgDebugLogFile to some file and then using wfDebug() for debugging. That way you wont miss the debug messages on redirects.
Based on your description it sounds like permissions are being setup correctly, but the hook is not firing. My suggestion would be to verify if that is true, by putting wfDebug("HERE"); as the first line of your onUploadVerifyUpload function and checking the debug log file to see if it is called at all. If it is being called then i would suggest recording the values of various conditions variables to ensure they match what you think they should be.
Another thing to check - i'm not sure at what point this hook is called. Determining media type is part of file verification. Possibly this hook happens before the file object knows the file is a video. If so, you might have better luck using the $props array passed to the hook. I believe it should also have media type information.
Hello I am a beginner contributor on mediawiki and I have errors on the installation of extensions my mediawiki I installed with compose. now I can not do: php update.php
Please include what errors you have. Please explain what you mean by not being able to do update.php (i.e. what is stopping you).
When I update, the process does not run to completion
Are you running this script on the same host as your mediawiki is on?
I've installed everything with composer, but I don't know if I need to change port to update.
That wasn't the question I asked...
I recently performed an reinstall and database restore of a Wiki to fix a different problem. An unexpected positive side effect was that thumbnails are now generated for new PDF files uploaded to the Wiki. Cool!
Is there a way to force the generation of thumbnails for previously uploaded PDFs? I have tried:
php refreshImageMetadata.php -f
followed by:
php rebuildImages.php
without effect.
Thanks for any suggestions.
What do the old images look like? Is there an error message instead of a thumbnail or is it just missing. Does mediawiki show the correct dimensions for the files in question (as in, does it say it is 0x0 pixels or does it give a real number)?