Hi, what additional requirements are needed if I am setting up MediaWiki in a secure closed area.
Project:Support desk
See https://meta.wikimedia.org/wiki/Universal_Code_of_Conduct/Coordinating_Committee/Election/2024/bcc
Mayhaps there is a reason for this but anyways...
Someone added a deletion tag on the page display title translation unit. After 11 hours nobody deleted it... I've edited the translation unit to remove the template and fix the display issue.
@Ciencia Al Poder Thank you!
Hello,
I have an old MediaWiki install, version 1.25.1, installed using a tar.gz long ago. I'm wondering what would be the easiest way to upgrade.
I am running Debian 12, I wouldn't mind using packages for easier upgrades, if that's possible. Is it possible to do a new install and then point the settings to the old DB?
Cheers for any tips.
Our site is working fine. No problem: https://sheki.org/wiki/Ana_s%C9%99hif%C9%99
We wanted our site to be on another server as well. We have moved a copy of the site to another server: https://shekiwiki.com/encyclopedia/Ana_s%C9%99hif%C9%99
But there was a problem, it didn't work there. Please help to fix the problem.
What language is it?
Azerbaijani.
It looks like proc_open needs to be enabled.
Here's what happened after activation:
File:Ekran görüntüsü (371).png
After that we added the following code to "LocalSettings.php".
"# Where Lua is the name of the binary file # e.g. SourceForge LuaBinaries 5.1.5 - Release 2 name the binary file lua5.1 $wgScribuntoEngineConf['luastandalone']['luaPath'] = '/path/to/binaries/lua5.1';"
After that, the site opened, but with a Lua error:
It looks like it is not installed correctly is that the right path?
Do you mean Lua? Do you mean '/path/to/binaries/lua5.1' ?
We have "lua5.1" here:
/domains/shekiwiki.com/public_html/encyclopedia/extensions/Scribunto/includes/Engines/LuaStandalone/binaries/lua5_1_5_Win32_bin/lua5.1.exe
This part ['luaPath'] = '/path/to/binaries/lua5.1';"
Where is say path/to needs to be correct.
How to show the way?
= '/path/to/binaries/lua5_1_5_Win32_bin/lua5.1.exe';"
Will it be so?
That's how we wrote it. But nothing changed?
On this server, version 1.35 was working normally, but.
We added the following codes to the LocalSettings.php file:
$wgShowExeptionDetails = true;
$wgDebugLogFile = "D:/log/debug-{$wgDBname}.log";
$wgScribuntoEngineConf['luastandalone']['errorFile'] = 'D:/log/scribunto.log';
The following errors appeared:
Error Lua: The process could not be created: proc_open(/dev/null): Failed to open stream: Operation not permitted Error Lua: The process could not be created: proc_open(/dev/null): Failed to open stream: Operation not permitted Error Lua: The process could not be created: proc_open(/dev/null): Failed to open stream: Operation not permitted
Why are you setting $wgScribuntoEngineConf['luastandalone']['luaPath']
in the first place? The default is probably fine.
which operating system is your server? The error sounds unix, but the paths you mention look windows.
Hi all,
My wiki was working fine until a month ago, and then pages started to time out from loading, and VisualEditor wouldn't launch. I'm seeing a failed to load error for load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector in Chrome and Edge resulting in 502. I'm running Mediawiki 1.41 and VisualEditor version 0.1.2 (e8fb5d8).
Can anyone assist?
Check error logs.
502 often means timeout
I managed to set a google font (Lato) as the default font in my wiki. However, for the italics, it does not appear as the actual italic font, rather just a slanted version of Lato (faux italic). I wanted it to get actual true italic of the font, how do I do that?
This is my code in MediaWiki:Common.css:
@import url('https://(google api)/css2?family=Lato&display=swap')
body * { font-family: "Lato", sans-serif!important;
}
Also I typed (google api) instead of the actual link here to avoid abuse filter.
You need a different import probably that includes both font styles.
Possibly.
@import url('https://fonts.googleapis.com/css2?family=Lato:ital@0;1&display=swap')
I am trying to update an old MW that was running version 1.24 before it got shutdown since the hosting provider couldn't afford running an old php version due to the security problems that come with it. I downloaded the files and the db and tried to run it locally using XAMPP with a compatible PHP version. I imported everything but when I access the wiki's front page, I am facing several error messages (see at the end of my post).
I think this is due to the migration (= paths that are not valid anymore). How can I tackle this problem before updating the wiki step by step?
Many thanks in advance!
[cc8a6e0e] /wiki/Hauptseite Exception from line 222 of /var/www/vhosts/OLDWIKI.COM/httpdocs/w/includes/Hooks.php: Detected bug in an extension! Hook Cite::checkRefsNoReferences has invalid call signature; Parameter 2 to Cite::checkRefsNoReferences() expected to be a reference, value given
Backtrace:
#0 /var/www/vhosts/OLDWIKI.COM/httpdocs/w/includes/GlobalFunctions.php(3995): Hooks::run()
#1 /var/www/vhosts/OLDWIKI.COM/httpdocs/w/includes/parser/Parser.php(406): wfRunHooks()
#2 /var/www/vhosts/OLDWIKI.COM/httpdocs/w/includes/cache/MessageCache.php(1072): Parser->parse()
#3 /var/www/vhosts/OLDWIKI.COM/httpdocs/w/includes/Message.php(1002): MessageCache->parse()
#4 /var/www/vhosts/OLDWIKI.COM/httpdocs/w/includes/Message.php(698): Message->parseText()
#5 /var/www/vhosts/OLDWIKI.COM/httpdocs/w/includes/Message.php(754): Message->toString()
#6 /var/www/vhosts/OLDWIKI.COM/httpdocs/w/includes/OutputPage.php(1026): Message->parse()
#7 /var/www/vhosts/OLDWIKI.COM/httpdocs/w/includes/page/Article.php(1002): OutputPage->addSubtitle()
#8 /var/www/vhosts/OLDWIKI.COM/httpdocs/w/includes/page/Article.php(593): Article->showRedirectedFromHeader()
#9 /var/www/vhosts/OLDWIKI.COM/httpdocs/w/includes/actions/ViewAction.php(44): Article->view()
#10 /var/www/vhosts/OLDWIKI.COM/httpdocs/w/includes/MediaWiki.php(414): ViewAction->show()
#11 /var/www/vhosts/OLDWIKI.COM/httpdocs/w/includes/MediaWiki.php(282): MediaWiki->performAction()
#12 /var/www/vhosts/OLDWIKI.COM/httpdocs/w/includes/MediaWiki.php(584): MediaWiki->performRequest()
#13 /var/www/vhosts/OLDWIKI.COM/httpdocs/w/includes/MediaWiki.php(435): MediaWiki->main()
#14 /var/www/vhosts/OLDWIKI.COM/httpdocs/w/index.php(46): MediaWiki->run()
#15 {main}
Update to which MediaWiki version? Which exact Cite version is installed? How did you upgrade extensions?
Error sounds like you updated mediawiki but not extensions.
Hi, we are trying to resolve an issue with Visual Editor -- it displays an error that says "500" after a recent IP change to our wiki server. Should I be adjusting the $wgVirtualRestConfig variable to account for the new IP address (xx.xx.49.46).
Visual Editor: HTTP 500 on Project:Support desk (mediawiki.org)
A similar thread mentions editing the config.yaml file, but I believe after 1.27 that .yaml are deprecated, so I'm not really sure where I find that config file. I managed to find the LocalSettings.php and made a backup of it just in case, but I'm not sure what to do to fix the visual editor error. Any help would be greatly appreciated. I'm a MW novice.
LocalSettings.php
# Add more configuration options below.
require_once( "$IP/skins/bootstrap/bootstrapskin.php" );
$wgDefaultSkin = "bootstrapskin";
# File Protocoll
require_once "$IP/extensions/FileProtocolLinks/FileProtocolLinks.php";
#require_once("$IP/extensions/FileProtocolLinksLinux.php" );
wfLoadExtension( 'ParserFunctions' );
#$wgPFEnableStringFunctions = true;
#VisualEditor Erweiterung
require_once("$IP/extensions/VisualEditor/VisualEditor.php" );
// Enable by default for everybody
$wgDefaultUserOptions['visualeditor-enable'] = 1;
//Don't allow users to disable it
$wgHiddenPrefs[] = 'visualeditor-enable';
$wgVirtualRestConfig['modules']['parsoid'] = array(
//URL to Parsoid instance
'url' => 'http://localhost:8142',
//Parsoid "domain"
'domain' => 'localhost',
// Parsoid "prefix"
'prefix' => 'localhost'
);
$wgVisualEditorParsoidURL = 'http://localhost:8142';
$wgVisualEditorSupportedSkins = array(
'vector',
'apex',
'monobook',
'minerva',
'blueprint',
'bootstrapskin',
'bootstrap',
'bootstrap/bootstrapskin'
);
// Multi-Upload-Extension
wfLoadExtension('SimpleBatchUpload');
require_once("extensions/add_multiupload.php");
//remove edit-button for not logged in users
$wgDefaultUserOptions ['editsection'] = false;
# Disable anonymous editing
$wgGroupPermissions['*']['edit'] = false;
# Open external links in new windows
$wgExternalLinkTarget = '_blank';
# iframe extension
require_once "$IP/extensions/IframePage/IframePage.php";
$wgIframePageSrc= array( /* REQUIRED! */ );
$wgRawHtml = True;
$wgDebugLogFile = '/var/lib/mediawiki/mediawiki-1.28.2/logfile';
wfLoadExtension("EmbedVideo");
You should enable php error reporting to determine what the error actually is.
Hi, I want to upload videos to Mediawiki from local.
I tried to use the extension TimedMediaHandler. But after installion, there is still issues with no thumbnail. I have follow the all steps about $wgFFmpegLocation and $wgMaxShellMemory.
After that, I tried to install by git, but it shows An error occurred:
TimedMediaHandler is not compatible with the current MediaWiki core (version 1.41.0), it requires: >= 1.42. But as I know there is only 1.41 now...so, what should I do next...
You need to install the correct version of TimedMediaHandler for your version of mediawiki. If using git, use the command git checkout origin/REL1_41
to switch to the version for 1.41.
When installing via git, be sure to run composer install.
You probably still have to figure out whatever issue was preventing thumbnails in the first place.
TRY SHOW ERROR ONLY
[ec39bead81e092f99b7a609b] /load.php?lang=zh-tw&modules=startup&only=scripts&raw=1&safemode=1&skin=vector Error: Class "ResourceLoaderImageModule" not found
Backtrace:
from /usr/share/nginx/html/hasu/includes/ResourceLoader/ResourceLoader.php(417)
#0 /usr/share/nginx/html/hasu/includes/ResourceLoader/ResourceLoader.php(453): MediaWiki\ResourceLoader\ResourceLoader->getModule()
#1 /usr/share/nginx/html/hasu/includes/ResourceLoader/StartUpModule.php(170): MediaWiki\ResourceLoader\ResourceLoader->preloadModuleInfo()
#2 /usr/share/nginx/html/hasu/includes/ResourceLoader/StartUpModule.php(419): MediaWiki\ResourceLoader\StartUpModule->getModuleRegistrations()
#3 /usr/share/nginx/html/hasu/includes/ResourceLoader/Module.php(839): MediaWiki\ResourceLoader\StartUpModule->getScript()
#4 /usr/share/nginx/html/hasu/includes/ResourceLoader/Module.php(808): MediaWiki\ResourceLoader\Module->buildContent()
#5 /usr/share/nginx/html/hasu/includes/ResourceLoader/Module.php(951): MediaWiki\ResourceLoader\Module->getModuleContent()
#6 /usr/share/nginx/html/hasu/includes/ResourceLoader/ResourceLoader.php(686): MediaWiki\ResourceLoader\Module->getVersionHash()
#7 /usr/share/nginx/html/hasu/includes/ResourceLoader/ResourceLoader.php(786): MediaWiki\ResourceLoader\ResourceLoader->getCombinedVersion()
#8 /usr/share/nginx/html/hasu/includes/ResourceLoader/ResourceLoaderEntryPoint.php(53): MediaWiki\ResourceLoader\ResourceLoader->respond()
#9 /usr/share/nginx/html/hasu/includes/MediaWikiEntryPoint.php(199): MediaWiki\ResourceLoader\ResourceLoaderEntryPoint->execute()
#10 /usr/share/nginx/html/hasu/load.php(42): MediaWiki\MediaWikiEntryPoint->run()
#11 {main}
Generally this will mean that the version of your extension/skin and the version of your core are not of the same release.
I stop all extension and update skin, but this error still showed.
18, Mar 15:40
fixed, it's cloudflare cached, I update skin and test which extension to thie error.