Project:Support desk
(Read this message in a different language)
See also
Before you post
- Check the FAQ and Errors and symptoms.
- If your question is about a specific feature, check the relevant technical manual, end-user help or extension page and consider asking on its talk page.
- For issues about the mediawiki.org website, report to Village Pump instead.
- Ask technical questions about Wikimedia websites on meta:Tech instead.
Post a new question
- To help us answer your questions, please indicate which version of MediaWiki you are using, as found on your wiki's Special:Version page:
- If possible, add
$wgShowExceptionDetails = true;error_reporting( -1 );ini_set( 'display_errors', 1 );to LocalSettings.php in order to make MediaWiki show more detailed error messages. - Please include the web address (URL) to your wiki if possible. It's often easier for us to identify the source of the problem if we can see the error directly.
- To start a new thread, click the box with the text
Add topic.
403 error when using the search Api and special:export from Supabase edge function (using axios)
[edit]Hello,
We're getting 403 error when we request the search Api and special:export
Edge function source code snippet:
import axios, { AxiosRequestConfig } from "npm:axios@^1.8.4";
const USER_AGENT = 'MyApp/1.0 (https://mywebsite.com; contact@mydomain.com)';
axios.interceptors.request.use((config: AxiosRequestConfig) => {
config.headers = {
...config.headers,
"User-Agent": USER_AGENT,
};
});
async getWikipediaArticles(term: string, language: string) {
const domain = this.getDomain(language);
const response = await axios.get(
`${domain}/w/api.php`,
{
params: {
action: "query",
format: "json",
generator: "prefixsearch",
prop: "pageimages|description|pageprops",
ppprop: "displaytitle",
piprop: "thumbnail",
pithumbsize: 60,
pilimit: WikipediaApi.searchResultsLimit,
gpssearch: term,
gpsnamespace: 0,
gpslimit: WikipediaApi.searchResultsLimit,
origin: "*",
...(this.wpProxy && { lang: language }),
},
},
);
return response.data?.query?.pages;
}
We already did the following:
- Setup a User Agent as recommended here
- Self-host Supabase in our own server instead of using SaaS in case of shared IP range is being blocked Yet, still same errors
We appreciate any help, Thanks! Zied dhf (talk) 15:54, 19 December 2025 (UTC)
- Please provide the error message, I CANNOT analyze error without any useful information, I am NOT Amitabha, thanks. LBLaiSiNanHai (talk) 12:36, 22 December 2025 (UTC)
- What have you done to the fonts and sizes - all of this is very difficult to read. I think the letters are too thick - and short - which make it difficult and uncomfortable to read. It all seems to blur together. Someone made a very bad decision. Also, why is my page suddenly shifting to German or Basque? rather than English as it has always been????? Javerdas@gmail.com username AlexandreCornille AlexandreCornille (talk) 03:27, 12 January 2026 (UTC)
- Sorry for not adding an error, here is it
::"event loop error: Error: Error converting HTML to Wikitext: AxiosError: Request failed with status code 403\n at ParsoidHtmlToWikitext (file:///home/runner/work/wikiadviser/wikiadviser/supabase/functions/_shared/mediawikiAPI/ParasoidApi.ts:54:13)\n at Object.runMicrotasks (ext:core/01_core.js:683:26)\n at processTicksAndRejections (ext:deno_node/_next_tick.ts:59:10)\n at runNextTicks (ext:deno_node/_next_tick.ts:76:3)\n at eventLoopTick (ext:core/01_core.js:182:21)\n at async file:///home/runner/work/wikiadviser/wikiadviser/supabase/functions/_shared/helpers/parsingHelper.ts:247:22\n at async Promise.all (index 0)\n at async parseWikidataTemplate (file:///home/runner/work/wikiadviser/wikiadviser/supabase/functions/_shared/helpers/parsingHelper.ts:255:27)\n at async processExportedArticle (file:///home/runner/work/wikiadviser/wikiadviser/supabase/functions/_shared/helpers/parsingHelper.ts:287:28)\n at async IncomingMessageForClient.<anonymous> (file:///home/runner/work/wikiadviser/wikiadviser/supabase/functions/_shared/wikipedia/WikipediaApi.ts:103:22)"
Zied dhf (talk) 14:00, 22 December 2025 (UTC)
- I mean the response text of api LBLaiSiNanHai (talk) 11:47, 31 December 2025 (UTC)
Error in the name field
[edit]When I was installing MediaWiki, after I filled in all the data in the name field, the following error appeared:
[aUZ2f@9pi2Qw339zE5T9wgAAAB0] /mw-config/index.php?page=Name Error: Failed opening required '/home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/vendor/wikimedia/common-passwords/src/common.php' (include_path='/home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/vendor/pear/console_getopt:/home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/vendor/pear/mail:/home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/vendor/pear/mail_mime:/home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/vendor/pear/net_smtp:/home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/vendor/pear/net_socket:/home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/vendor/pear/net_url2:/home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/vendor/pear/pear-core-minimal/src:/home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/vendor/pear/pear_exception:.:/usr/share/pear/')
Backtrace:
from /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/vendor/wikimedia/common-passwords/src/CommonPasswords.php(14)
#0 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/vendor/wikimedia/common-passwords/src/CommonPasswords.php(24): Wikimedia\CommonPasswords\CommonPasswords::getData()
#1 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/password/PasswordPolicyChecks.php(161): Wikimedia\CommonPasswords\CommonPasswords::isCommon(string)
#2 [internal function]: MediaWiki\Password\PasswordPolicyChecks::checkPasswordNotInCommonList(bool, MediaWiki\User\User, string)
#3 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/password/UserPasswordPolicy.php(150): call_user_func(array, bool, MediaWiki\User\User, string)
#4 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/password/UserPasswordPolicy.php(115): MediaWiki\Password\UserPasswordPolicy->checkPolicies(MediaWiki\User\User, string, array, array)
#5 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/installer/WebInstallerName.php(236): MediaWiki\Password\UserPasswordPolicy->checkUserPasswordForGroups(MediaWiki\User\User, string, array)
#6 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/installer/WebInstallerName.php(42): MediaWiki\Installer\WebInstallerName->submit()
#7 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/installer/WebInstaller.php(257): MediaWiki\Installer\WebInstallerName->execute()
#8 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/mw-config/index.php(93): MediaWiki\Installer\WebInstaller->execute(array)
#9 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/mw-config/index.php(43): wfInstallerMain()
#10 {main}
I want to know how to solve this, thank you. I am just a beginner. The MediaWiki version is 1.43.6 XiaoyuWhaoYu (talk) 10:13, 20 December 2025 (UTC)
- Your copy of MediaWiki is broken, may you need download it again LBLaiSiNanHai (talk) 10:25, 22 December 2025 (UTC)
- @XiaoyuWhaoYu Specifically, MediaWiki is trying to access the file vendor/wikimedia/common-passwords/src/common.php of your install and is unable to do so. In a proper install this should work. Either you have a partial install, an install with incorrect file permissions or file owners, or you are running from git and you have incorrectly installed. —TheDJ (Not WMF) (talk • contribs) 15:00, 22 December 2025 (UTC)
- This rings a bell, from a mistake I've made in the past. On https://releases.wikimedia.org/mediawiki/1.45/, for instance, there are some downloads with "core" in the filename. You don't want any of them. Jonathan3 (talk) 22:46, 4 January 2026 (UTC)
Extension returning arbitrary page content
[edit]I'm looking to make an extension that creates an RSS feed based on a category, but can't work out if it's possible to hook before any other content is sent to the client and replace it with an RSS or Atom feed?
I'm aware of external tools that do this, but it'd be nice having it integrated properly. DOSKEL (talk) 06:07, 23 December 2025 (UTC)
- Im not sure, most related hook is BeforePageDisplay LBLaiSiNanHai (talk) 11:44, 31 December 2025 (UTC)
- May u need create a new special page LBLaiSiNanHai (talk) 11:45, 31 December 2025 (UTC)
- This old extension managed it and I bet there are stable extensions that do it also: Extension:Bullet Feed. You could maybe modify them. Jonathan3 (talk) 22:42, 4 January 2026 (UTC)
I think is may need some update
[edit]Hello mediawiki I wanna request a some update to the Mainpages Nicedudebro (talk) 02:03, 26 December 2025 (UTC)
Not done: bad place, request on village pump or talk page of home page LBLaiSiNanHai (talk) 11:42, 31 December 2025 (UTC)
- @LBLaiSiNanHai Why do you post links to non-existing pages? Malyacko (talk) 14:53, 3 January 2026 (UTC)
DBQueryError while migrating table 'categoryLinks' on PostgreSQL
[edit]Error while migrating DB PostgreSQL after MediaWiki update from 1.44.3 to 1.45.1. Reproduce rate: 100%. Multiple instances affected, true blocker. How to continue updating?
# php maintenance/run.php update
MediaWiki 1.45.1 Updater
Your composer.lock file is up to date with current dependencies!
Going to run database updates for mediawikilite-public-
Depending on the size of your database this may take a while!
Abort with control-c in the next five seconds (skip this countdown with --quick) ...0
...user_autocreate_serial table already exists.
Running MigrateRevisionActorTemp...
...Update 'MigrateRevisionActorTemp' already logged as completed. Use --force to run it again.
done.
...revision_actor_temp doesn't exist.
Running UpdateRestrictions...
Migration is not needed.
done.
...page table does not contain page_restrictions field.
...templatelinks table has already been migrated.
...column 'templatelinks.tl_target_id' is already set as NOT NULL
...no need to change primary key of 'templatelinks'
...templatelinks table does not contain tl_title field.
...have el_to_path field in externallinks table.
...have user_is_temp field in user table.
Running MigrateRevisionCommentTemp...
...Update 'MigrateRevisionCommentTemp' already logged as completed. Use --force to run it again.
done.
...revision_comment_temp doesn't exist.
Running MigrateExternallinks...
...Update 'MigrateExternallinks' already logged as completed. Use --force to run it again.
done.
...el_to field does not exist in externallinks table, skipping modify field patch.
...have pl_target_id field in pagelinks table.
...externallinks table does not contain el_to field.
Running FixInconsistentRedirects...
...Update 'FixInconsistentRedirects' already logged as completed. Use --force to run it again.
done.
...img_size in table image already modified by patch patch-image-img_size_to_bigint.sql.
...fa_size in table filearchive already modified by patch patch-filearchive-fa_size_to_bigint.sql.
...oi_size in table oldimage already modified by patch patch-oldimage-oi_size_to_bigint.sql.
...us_size in table uploadstash already modified by patch patch-uploadstash-us_size_to_bigint.sql.
...have uas_year field in user_autocreate_serial table.
...block_target table already exists.
...cl_collation_ext key doesn't exist.
Running PopulateUserIsTemp...
...Update 'PopulateUserIsTemp' already logged as completed. Use --force to run it again.
done.
...skipping: index sites_group doesn't exist.
...site_type key doesn't exist.
...site_group key doesn't exist.
...site_source key doesn't exist.
...site_language key doesn't exist.
...site_protocol key doesn't exist.
...site_domain key doesn't exist.
...site_forward key doesn't exist.
...iwl_prefix_from_title key doesn't exist.
...pagelinks table has already been migrated.
...column 'revision.rev_id' is already of type 'BIGINT'
...column 'revision.rev_parent_id' is already of type 'BIGINT'
...column 'recentchanges.rc_id' is already of type 'BIGINT'
...column 'change_tag.ct_rc_id' is already of type 'BIGINT'
Running MigrateBlocks...
...Update 'MigrateBlocks' already logged as completed. Use --force to run it again.
done.
...ipblocks doesn't exist.
...pagelinks table does not contain pl_title field.
...searchindex table has already been migrated.
...file table already exists.
...have cl_target_id field in categorylinks table.
...collation table already exists.
...module_deps doesn't exist.
Creating existencelinks table...done.
Running FixWrongPasswordPrefixes...
Wrongly prefixed user password hashes, if present, have been fixed.
done.
Adding index cl_timestamp_id to table categorylinks...done.
Running migrateLinksTable.php on categorylinks...
Populating the cl_target_id column
Wikimedia\Rdbms\DBQueryError from line 1225 of /var/www/html/includes/libs/rdbms/database/Database.php: Error 42601: ERROR: syntax error at or near ")"
LINE 1: ...E (cl_target_id = 0 OR cl_target_id IS NULL) AND () AND cl_t...
^
Function: MigrateLinksTable::handlePageBatch
Query: UPDATE "categorylinks" SET cl_target_id = 17 WHERE (cl_target_id = 0 OR cl_target_id IS NULL) AND () AND cl_to = 'Templates:Formatting' AND (cl_from >= 0) AND (cl_from <= 999)
# 0 /var/www/html/includes/libs/rdbms/database/Database.php(1209): Wikimedia\Rdbms\Database->getQueryException('ERROR: syntax ...', '42601', 'UPDATE "catego...', 'MigrateLinksTab...')
# 1 /var/www/html/includes/libs/rdbms/database/Database.php(1183): Wikimedia\Rdbms\Database->getQueryExceptionAndLog('ERROR: syntax ...', '42601', 'UPDATE "catego...', 'MigrateLinksTab...')
# 2 /var/www/html/includes/libs/rdbms/database/Database.php(640): Wikimedia\Rdbms\Database->reportQueryError('ERROR: syntax ...', '42601', 'UPDATE "catego...', 'MigrateLinksTab...', false)
# 3 /var/www/html/includes/libs/rdbms/database/Database.php(1526): Wikimedia\Rdbms\Database->query(Object(Wikimedia\Rdbms\Query), 'MigrateLinksTab...')
# 4 /var/www/html/includes/libs/rdbms/database/DBConnRef.php(127): Wikimedia\Rdbms\Database->update('categorylinks', Array, Array, 'MigrateLinksTab...', Array)
# 5 /var/www/html/includes/libs/rdbms/database/DBConnRef.php(462): Wikimedia\Rdbms\DBConnRef->__call('update', Array)
# 6 /var/www/html/includes/libs/rdbms/querybuilder/UpdateQueryBuilder.php(332): Wikimedia\Rdbms\DBConnRef->update('categorylinks', Array, Array, 'MigrateLinksTab...', Array)
# 7 /var/www/html/maintenance/migrateLinksTable.php(137): Wikimedia\Rdbms\UpdateQueryBuilder->execute()
# 8 /var/www/html/maintenance/migrateLinksTable.php(90): MigrateLinksTable->handlePageBatch(0, Array, 'categorylinks')
# 9 /var/www/html/maintenance/includes/LoggedUpdateMaintenance.php(38): MigrateLinksTable->doDBUpdates()
# 10 /var/www/html/includes/installer/DatabaseUpdater.php(1424): MediaWiki\Maintenance\LoggedUpdateMaintenance->execute()
# 11 /var/www/html/includes/installer/DatabaseUpdater.php(531): MediaWiki\Installer\DatabaseUpdater->migrateCategorylinks()
# 12 /var/www/html/includes/installer/DatabaseUpdater.php(483): MediaWiki\Installer\DatabaseUpdater->runUpdates(Array, false)
# 13 /var/www/html/maintenance/update.php(184): MediaWiki\Installer\DatabaseUpdater->doUpdates(Array)
# 14 /var/www/html/maintenance/includes/MaintenanceRunner.php(696): UpdateMediaWiki->execute()
# 15 /var/www/html/maintenance/run.php(53): MediaWiki\Maintenance\MaintenanceRunner->run()
# 16 {main}
Don't be confused with "Templates:Formatting", it's actually Category name "Category:Templates:Formatting".
MidnightLG (talk) 15:52, 26 December 2025 (UTC)
- "AND ()" that is strange. This should not be empty. It should be 14 = 14 I think.? The migration fetches a value directly from a mapping table, and the other values it fetches from that mapping table seem to be there listed in the query. Can you try running the migration separately ? It should be
./maintenance/run migrateLinksTable --table categorylinks --force.—TheDJ (Not WMF) (talk • contribs) 19:34, 26 December 2025 (UTC)- It should say the same, then you can try adding some $this->output() logging to the values around line 123 and see what the values of this are when the script fails. —TheDJ (Not WMF) (talk • contribs) 19:40, 26 December 2025 (UTC)
- It should be 14 = 14 I think.? - I think that's "14 => null" at least because of the output. $ns there retreived from the $row[14] which means the value of the 14th column which is not present in the table and returns null, right? That's maybe intentional but resulted in a bug. Btw, I don't know how exactly the $row works. 14 = 14 means $row[14] = 14 but by the code of migrateLinksTable.php, line 123: $ns = $row[$mapping[$table]['ns']]; where $mapping[$table]['ns'] is 14, then we have literally $ns = $row[14] MidnightLG (talk) 21:45, 26 December 2025 (UTC)
- Also look at includes/libs/rdbms/SQLPlatform.php, line 228. That line gives the output. There's no way to get "14 = 14" even if the value was exactly 14 not null. If it was 14, then we would have something like "AND (14)". MidnightLG (talk) 21:58, 26 December 2025 (UTC)
- Sure. The output is the same.
Running migration separately
# maintenance/run migrateLinksTable --table categorylinks
Populating the cl_target_id column
Wikimedia\Rdbms\DBQueryError from line 1225 of /var/www/html/includes/libs/rdbms/database/Database.php: Error 42601: ERROR: syntax error at or near ")"
LINE 1: ...E (cl_target_id = 0 OR cl_target_id IS NULL) AND () AND cl_t...
^
Function: MigrateLinksTable::handlePageBatch
Query: UPDATE "categorylinks" SET cl_target_id = 17 WHERE (cl_target_id = 0 OR cl_target_id IS NULL) AND () AND cl_to = 'Templates:Formatting' AND (cl_from >= 0) AND (cl_from <= 999)
#0 /var/www/html/includes/libs/rdbms/database/Database.php(1209): Wikimedia\Rdbms\Database->getQueryException('ERROR: syntax ...', '42601', 'UPDATE "catego...', 'MigrateLinksTab...')
#1 /var/www/html/includes/libs/rdbms/database/Database.php(1183): Wikimedia\Rdbms\Database->getQueryExceptionAndLog('ERROR: syntax ...', '42601', 'UPDATE "catego...', 'MigrateLinksTab...')
#2 /var/www/html/includes/libs/rdbms/database/Database.php(640): Wikimedia\Rdbms\Database->reportQueryError('ERROR: syntax ...', '42601', 'UPDATE "catego...', 'MigrateLinksTab...', false)
#3 /var/www/html/includes/libs/rdbms/database/Database.php(1526): Wikimedia\Rdbms\Database->query(Object(Wikimedia\Rdbms\Query), 'MigrateLinksTab...')
#4 /var/www/html/includes/libs/rdbms/database/DBConnRef.php(127): Wikimedia\Rdbms\Database->update('categorylinks', Array, Array, 'MigrateLinksTab...', Array)
#5 /var/www/html/includes/libs/rdbms/database/DBConnRef.php(462): Wikimedia\Rdbms\DBConnRef->__call('update', Array)
#6 /var/www/html/includes/libs/rdbms/querybuilder/UpdateQueryBuilder.php(332): Wikimedia\Rdbms\DBConnRef->update('categorylinks', Array, Array, 'MigrateLinksTab...', Array)
#7 /var/www/html/maintenance/migrateLinksTable.php(137): Wikimedia\Rdbms\UpdateQueryBuilder->execute()
#8 /var/www/html/maintenance/migrateLinksTable.php(90): MigrateLinksTable->handlePageBatch(0, Array, 'categorylinks')
#9 /var/www/html/maintenance/includes/LoggedUpdateMaintenance.php(38): MigrateLinksTable->doDBUpdates()
#10 /var/www/html/maintenance/includes/MaintenanceRunner.php(696): MediaWiki\Maintenance\LoggedUpdateMaintenance->execute()
#11 /var/www/html/maintenance/run.php(53): MediaWiki\Maintenance\MaintenanceRunner->run()
#12 /var/www/html/maintenance/run(3): require('/var/www/html/m...')
#13 {main}
MidnightLG (talk) 21:22, 26 December 2025 (UTC)
- This looks like a bug having to do with the categorylinks table. Flounder ceo (talk) 21:14, 27 December 2025 (UTC)
- Yeah I think this is bug. Should be reported in phbrictor —TheDJ (Not WMF) (talk • contribs) 21:35, 3 January 2026 (UTC)
- I'm just a user not a developer thus have no idea how to do that. I hope that someone from WMF will help. MidnightLG (talk) 09:45, 9 January 2026 (UTC)
LintErrors/missing-end-tag
[edit]This line:
Het land kent een {{Split|{{#statements:regeringsvorm}}|, |1}}, met {{#statements:staatshoofd}} aan het hoofd.in b:nl:Atlas van Europa/Monaco gives a lint error "missing-end-tag in span" and "Output not from a single template". What is wrong with it, please? - Erik Baas (talk) 10:01, 27 December 2025 (UTC) PS.: The template "Split" is also used on 86 other pages, without any problems.
- In your Split template (https://nl.wikibooks.org/w/index.php?title=template:split&action=edit) maybe "{Split" should be "{{Split".
|#default=<span class="error">{{Split {{!}} <string> {{!}} <marker> [ {{!}} <deel#> ] }}</span>Jonathan3 (talk) 22:38, 4 January 2026 (UTC)
- Thank you, but... I don't think so. That line evaluates to
{{Split | <string> | <marker> [ | <deel#> ] }}- ({ gives a curly brace) and is correctly shown in case of an error, and does not generate a lint error. I'll look into it again. - Erik Baas (talk) 23:32, 4 January 2026 (UTC)
- Sorry for barking up the wrong tree. I've not used Linter yet but am going to guess that your code is fine but just too convoluted for the extension to understand :-) Jonathan3 (talk) 23:46, 4 January 2026 (UTC)
- I found the problem! One would expect
{{#statements:regeringsvorm|from=Q235}}to return "constitutional monarchy, hereditary monarchy", but instead I see this in the HTML source: <span><span>constitutionele monarchie</span>, <span>erfopvolging</span></span>(in Dutch)!- What remains after splitting the string is "
<span><span>constitutionele monarchie</span>", which indeed contains a lint error. - Three useless spans... :-( - Erik Baas (talk) 00:15, 5 January 2026 (UTC)
- I found the problem! One would expect
I just found that all data from Wikidata is embedded in span tags, and when this data contains more than one item the total string is also in span tags. This is from the HTML source of b:nl:Atlas van Europa/Noorwegen:
<span><span>Oslo</span></span> <span><span>5.594.340</span></span> (50% mannen, 50% vrouwen) <span><span>Bokmål</span>, <span>Samisch</span>, <span>Nynorsk</span>, <span><a href="/wiki/Noors" title="Noors">Noors</a></span></span>
Why?? I don't know... - Erik Baas (talk) 00:31, 5 January 2026 (UTC)
- @Erik Baas: If you use
{{#property:}}to get the raw value (rather than{{#statements:}}) does it work? Sam Wilson 07:03, 5 January 2026 (UTC)- Yes, #property works fine, without lint errors, because no span tags are inserted. But that's not the point, is it? Right now I can't use Template:Split with #statements! And, again: can anyone explain why those span tags are there?? - Erik Baas (talk) 21:31, 7 January 2026 (UTC)
- Maybe you could improve your Split template :-) If you don't want to alter the template you could add something like this to either side of it:
{{#replace:{{#replace:....................||}}||}}. Jonathan3 (talk) 23:20, 11 January 2026 (UTC)
- Maybe you could improve your Split template :-) If you don't want to alter the template you could add something like this to either side of it:
- Yes, #property works fine, without lint errors, because no span tags are inserted. But that's not the point, is it? Right now I can't use Template:Split with #statements! And, again: can anyone explain why those span tags are there?? - Erik Baas (talk) 21:31, 7 January 2026 (UTC)
Error at end of update from 1.44.2 to 1.45.1
[edit]What is this and how do I fix it?
Modifying primary key on table categorylinks...Wikimedia\Rdbms\DBQueryError from line 1225 of /var/www/html/w/includes/libs/rdbms/database/Database.php: Error 1091: Can't DROP 'primary'; check that column/key exists
Function: Wikimedia\Rdbms\Database::sourceFile( /var/www/html/w/sql/mysql/patch-categorylinks-pk.sql )
Query: DROP INDEX `primary` ON `categorylinks`
Flounder ceo (talk) 20:38, 27 December 2025 (UTC)
- Extension:CategoryLink's problem, please ask for author of it, workaround is disable this extension LBLaiSiNanHai (talk) 08:24, 28 December 2025 (UTC)
- Oh, it only supports 1.9.3-1.22.4, you are luck, you ran it in 1.44 LBLaiSiNanHai (talk) 08:31, 28 December 2025 (UTC)
- Extension:CategoryLink is not installed. Never was. Flounder ceo (talk) 15:09, 28 December 2025 (UTC)
- @LBLaiSiNanHai Posting nonsense is not welcome and may lead to disabling your account. Malyacko (talk) 14:52, 3 January 2026 (UTC)
- Oh, it only supports 1.9.3-1.22.4, you are luck, you ran it in 1.44 LBLaiSiNanHai (talk) 08:31, 28 December 2025 (UTC)
I also see similar problems in PHP 8.2. - Ellif (talk) 03:58, 4 January 2026 (UTC)
Modifying primary key on table categorylinks...Wikimedia\Rdbms\DBQueryError from line 1225 of /home2/ellifgkr/wiki1/includes/libs/rdbms/database/Database.php: Error 1062: Duplicate entry '633-13745' for key 'PRIMARY'
Function: Wikimedia\Rdbms\Database::sourceFile( /home2/ellifgkr/wiki1/sql/mysql/patch-categorylinks-pk.sql )
Query: ALTER TABLE `medialifcategorylinks`
ADD PRIMARY KEY (cl_from, cl_target_id)
#0 /home2/ellifgkr/wiki1/includes/libs/rdbms/database/Database.php(1209): Wikimedia\Rdbms\Database->getQueryException('Duplicate entry...', 1062, 'ALTER TABLE `me...', 'Wikimedia\\Rdbms...')
#1 /home2/ellifgkr/wiki1/includes/libs/rdbms/database/Database.php(1183): Wikimedia\Rdbms\Database->getQueryExceptionAndLog('Duplicate entry...', 1062, 'ALTER TABLE `me...', 'Wikimedia\\Rdbms...')
#2 /home2/ellifgkr/wiki1/includes/libs/rdbms/database/Database.php(640): Wikimedia\Rdbms\Database->reportQueryError('Duplicate entry...', 1062, 'ALTER TABLE `me...', 'Wikimedia\\Rdbms...', false)
#3 /home2/ellifgkr/wiki1/includes/libs/rdbms/database/Database.php(2853): Wikimedia\Rdbms\Database->query(Object(Wikimedia\Rdbms\Query), 'Wikimedia\\Rdbms...')
#4 /home2/ellifgkr/wiki1/includes/libs/rdbms/database/Database.php(2790): Wikimedia\Rdbms\Database->sourceStream(Resource id #1081, NULL, NULL, 'Wikimedia\\Rdbms...', NULL)
#5 /home2/ellifgkr/wiki1/includes/libs/rdbms/database/DBConnRef.php(127): Wikimedia\Rdbms\Database->sourceFile('/home2/ellifgkr...')
#6 /home2/ellifgkr/wiki1/includes/libs/rdbms/database/DBConnRef.php(922): Wikimedia\Rdbms\DBConnRef->__call('sourceFile', Array)
#7 /home2/ellifgkr/wiki1/includes/installer/DatabaseUpdater.php(742): Wikimedia\Rdbms\DBConnRef->sourceFile('/home2/ellifgkr...')
#8 /home2/ellifgkr/wiki1/includes/installer/DatabaseUpdater.php(1046): MediaWiki\Installer\DatabaseUpdater->applyPatch('/home2/ellifgkr...', false, 'Modifying prima...')
#9 /home2/ellifgkr/wiki1/includes/installer/DatabaseUpdater.php(531): MediaWiki\Installer\DatabaseUpdater->modifyPrimaryKey('categorylinks', Array, 'patch-categoryl...')
#10 /home2/ellifgkr/wiki1/includes/installer/DatabaseUpdater.php(483): MediaWiki\Installer\DatabaseUpdater->runUpdates(Array, false)
#11 /home2/ellifgkr/wiki1/maintenance/update.php(184): MediaWiki\Installer\DatabaseUpdater->doUpdates(Array)
#12 /home2/ellifgkr/wiki1/maintenance/includes/MaintenanceRunner.php(696): UpdateMediaWiki->execute()
#13 /home2/ellifgkr/wiki1/maintenance/run.php(53): MediaWiki\Maintenance\MaintenanceRunner->run()
#14 {main}
Error 403 for pages above a certain size
[edit]Recently, as in the last few days, we've started receiving and error 403 when saving pages greater than 5946 bytes, an unusual size. The same pages were saved greater than 14k just last month, and no configuration changes have been made. It occurs whether we use the visual editor of editing source. Mediawiki version 1.44.0 PHP 8.4.8 CharlesCivi (talk) 16:23, 30 December 2025 (UTC)
- Our wiki is running on an AWS EC2 instance. An AWS Web Access Firewall was recently installed. that seems to have caused the problem. When it's disabled everything works. When I find the offending rule, I'll update the issue. CharlesCivi (talk) 16:44, 30 December 2025 (UTC)
- The offending rule was SizeRestrictions_BODY changed that from block to count and all is well. CharlesCivi (talk) 17:17, 30 December 2025 (UTC)
Fatal-Error
[edit]Hallo, ich wollte eine PNG-Datei in mein Media-Wiki hochladen und erhielt diese Meldung:
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 31991520 bytes) in /users/xxx/www/includes/media/BitmapHandler.php on line 475
Das Bild ist aber in meinem Wiki vorhanden, lässt sich einbinden, aber beim direkten Bild-Aufruf zum Zwecke der Löschung erscheint wieder nur die Error-Meldung.
Wie kann ich die Bild-Datei aus dem Wiki löschen??
Vielen Dank für eine Lösung.
Liebe Grüße
~2025-44090-69 (talk) 14:18, 31 December 2025 (UTC)
- A normal out of memory, try this way:
- Refresh, 90% out of memory only happens when cold run
- Update php.ini, change
memory_limit=XXMtomemory_limit=256M
- LBLaiSiNanHai (talk) 14:19, 31 December 2025 (UTC)
- Hello LaiSiNanHai, the php.ini is laying on the providers server and not to change. Have you a better way? LG ~2025-44090-69 (talk) 15:07, 31 December 2025 (UTC)
- My last message: I convert png to jpg and all is clear. But who and where I can delete the old png ????? LG ~2025-44090-69 (talk) 17:15, 31 December 2025 (UTC)
- No maintenance script can do this, try check images/ dir, files in it LBLaiSiNanHai (talk) 03:09, 1 January 2026 (UTC)
Done: Problem solved- The following discussion is closed and will soon be archived.LBLaiSiNanHai (talk) 10:36, 1 January 2026 (UTC)
- No maintenance script can do this, try check images/ dir, files in it LBLaiSiNanHai (talk) 03:09, 1 January 2026 (UTC)
- My last message: I convert png to jpg and all is clear. But who and where I can delete the old png ????? LG ~2025-44090-69 (talk) 17:15, 31 December 2025 (UTC)
- Hello LaiSiNanHai, the php.ini is laying on the providers server and not to change. Have you a better way? LG ~2025-44090-69 (talk) 15:07, 31 December 2025 (UTC)
Cannot reset my password, no email was sent
[edit]My username is MadamePhoton, and my primary email is floweringyaksha@gmail.com I've sent multiple password reset requests to that email, but nothing comes up. I've even checked the spam folder, and nothing shows up. What do I do, then? ~2025-44226-44 (talk) 21:18, 31 December 2025 (UTC)
- ask on Project:Village pump pls LBLaiSiNanHai (talk) 06:52, 1 January 2026 (UTC)
Not done: Bad place- The following discussion is closed and will soon be archived.LBLaiSiNanHai (talk) 10:37, 1 January 2026 (UTC)
How to list names in Defaultsort
[edit]How should names be listed in Defaultsort that contain de, di, van, von?. Hiart (talk) 03:18, 1 January 2026 (UTC)
- what do u mean? please give me more details. LBLaiSiNanHai (talk) 06:52, 1 January 2026 (UTC)
- @Hiart, I see you edit English Wikipedia and Wikimedia Commons. This support desk is for running your own wiki. In relation to those wikis, Defaultsort (a Category feature)...
- English Wikipedia’s guidance is:
- Generally, Dutch, French, German, Italian, Portuguese, Spanish, and Swedish names do not include lowercase particles in sorting, but do include uppercase particles. For example, Otto von Bismarck is sorted {{DEFAULTSORT:Bismarck, Otto von}}, Jean de La Fontaine is sorted {{DEFAULTSORT:La Fontaine, Jean de}}, and Alberto Di Chiara is sorted {{DEFAULTSORT:Di Chiara, Alberto}}.
- c:Commons:Sorting of categories named after people doesn't give specific advice and is only a proposed guideline, but the English Wikipedia guidance map apply there too. Commander Keane (talk) 08:27, 6 January 2026 (UTC)
Is it possible to block an account from being created?
[edit]Weird question, I know, but it will help me to figure something out. I act as an administrator on an external wiki which uses Mediawiki as a base. We have several language versions of this site, and recently we have had a persistent vandal who has a grudge against our staff.
Last night they created a username on one of the other language versions, which was intended to attack a member of our staff. Knowing who they were, I salted the user and talk pages with that username on the English version of our site, in the hopes that they would realise they'd been rumbled.
What I'd like to know is if there is a way to block an account as a preventative measure, before it's actually been created on the site. Hopeful that there is a way, because it would put us one step ahead of this malevolant user!
Thank you for any help you can offer. DaneGeld (talk) 21:23, 2 January 2026 (UTC)
- The simplest approach would be to create the offending account yourself. Alternatively, you can request a bureaucrat or anyone with the required access to install Extension:TitleBlacklist. Tactica (talk) 21:45, 2 January 2026 (UTC)
- Excellent. I think we already have the TitleBlacklist extension installed, but I will check. If it is, great, I'll get round to learning how to use it! If it's not, I'll drop a message to one of our bureaucrats and get them to install it. I appreciate your help, and thank you. DaneGeld (talk) 21:49, 2 January 2026 (UTC)
Wikibase Error
[edit]Hello MediaWiki, could you help? The MediaWiki team updated the Wikibase extension two months ago, and I installed it according to the instructions, but I'm getting an error. I downloaded Wikibase version 1.45.1 and added # Load Wikibase repository to the LocalSettings.php file. wfLoadExtension( 'WikibaseRepository', "$IP/extensions/Wikibase/extension-repo.json" ); require_once "$IP/extensions/Wikibase/repo/ExampleSettings.php"; and started updating the wiki script, but I encountered an error: An error occurred: No such service: WikibaseRepo.SettingsHello MediaWiki, could you help? The MediaWiki team updated the Wikibase extension two months ago, and I installed it according to the instructions, but I'm getting an error. I downloaded Wikibase version 1.45.1 and added # Load Wikibase repository to the LocalSettings.php file. wfLoadExtension( 'WikibaseRepository', "$IP/extensions/Wikibase/extension-repo.json" ); Therudekiweweffffffff (talk) 13:48, 5 January 2026 (UTC)
- Started updating how? Please provide a list of steps to reproduce with exact commands. Downloaded to where exactly? Which version of MediaWiki is this about? Also, this might be better suited for Talk:Wikibase/Installation. Also, no, "The MediaWiki team" (which does not exist) did not update the Wikibase extension two months ago; updates happen much more regularly. Malyacko (talk) 21:16, 5 January 2026 (UTC)
- I downloaded the MediaWiki 1.45 archive for Wiki 1.45.1 from your site MediaWiki.org. In the Installation section, I copied the code for this file, LocalSettings.php, and placed it at the end of the file. I ran the update script, and it returned an error. Therudekiweweffffffff (talk) 04:26, 6 January 2026 (UTC)
- @Therudekiweweffffffff: How did you install the Wikibase extension? You may have a version mismatch — double check that you've installed the version of Wikibase for MediaWiki 1.45. Sam Wilson 05:15, 6 January 2026 (UTC)
- I downloaded the MediaWiki 1.45 archive for Wiki 1.45.1 from your site MediaWiki.org. In the Installation section, I copied the code for this file, LocalSettings.php, and placed it at the end of the file. I ran the update script, and it returned an error. Therudekiweweffffffff (talk) 04:26, 6 January 2026 (UTC)
User logged out after running the update script
[edit]I am using mediawiki via NixOS. I noticed I get logging out every time I update the settings, and I have determined this is due to NixOS re-running the update script. The update script call the purgeCache function in DatabaseUpdater.php, which purge the "objectcache" used by CACHE_DB.
I wonder how is the best way to handle that. I have gone over multiple solution, which are:
- Use a different BafOStuff
- SQLBagOStuff seems really appropriate. Memcache does not persist and the RestBagOStuff exist, but apparently uses cassandra and a bunch of complex configuration.
- Use a different table
- That’s the option I use on my wiki, but it lead to doubt over maintainability, especially when I had to manually create this table.
- Not purge session
- I’ve created a patch that purge everything from the objectcache except those MwSession. It works. And only need to patch one line.
- Not purge the cache
- I’m worried it might lead to some stale cache. Having the cache cleaning at times is probably a good thing, even with its auto-cleaning. Plus it likely is part of the update script for some reason.
And in the end, I’m not sure which way would be the more appropriate. I think the "using a different table for at least session, and maybe other stash" would be the best, but that would require being able to auto-create this table across mysql, postgresql, mssql and sqlite, in a way that is forward-compatible and fail loudly.
(hmm... I see that the "mediawiki-init" already perform an SQL operation to check if the "user" table exist, and if not run the install script. It might be possible to do something similar with a CREATE TABLE IF NOT EXISTS instruction)
(also, that’s just about the default behavior. It is nice to be able to have a working Mediawiki install with just a few config entry sets)
I have made a ticket on GitHub in the NixOS repo for that: https://github.com/NixOS/nixpkgs/issues/476338 Marius851000 (talk) 17:30, 7 January 2026 (UTC)
My MediaWiki website is not accessible
[edit]When I try to access my website, the browser tells me that the site cannot load successfully. Strangely, when I haven't installed localsettings, it can be accessed normally. My MediaWiki version is 1.45.1. Before this, I had installed MediaWiki version 1.39 and was performing an upgrade. I hope to receive a prompt reply. Thank you! XiaoyuWhaoYu (talk) 12:10, 8 January 2026 (UTC)
- @XiaoyuWhaoYu have you tried reading the documentation ? —TheDJ (Not WMF) (talk • contribs) 18:37, 8 January 2026 (UTC)
- Review Manual:Upgrading#Adapt_your_LocalSettings.php.
- Check your extensions and skins. Comment them out in LocalSettings and then uncomment them a few at a time while running the update to see if it works. Flounder ceo (talk) 16:49, 9 January 2026 (UTC)
Is Manual:$wgAutoCreateTempUser still "experimental"?
[edit]Manual:$wgAutoCreateTempUser says "Warning: This configuration parameters is considered EXPERIMENTAL!."
Is it still experimental and, if not, when did that happen? I'm on MW1.43 now. I heard that Wikipedia is using it. Thanks. Jonathan3 (talk) 14:55, 9 January 2026 (UTC)
- @Jonathan3 I've removed the experimental warning. With it being on production at WMF, it's as stable as most other config flags. —TheDJ (Not WMF) (talk • contribs) 20:58, 9 January 2026 (UTC)
- Thank you. Can I double check that it was already stable on MW1.43.6? Jonathan3 (talk) 00:29, 10 January 2026 (UTC)
"InvalidArgumentException: Invalid expiry value: 1 year" when trying to edit page after upgrade to 1.45
[edit]Hello, I've just upgraded my mediawiki installation from 1.39 to 1.45. Viewing pages works fine, but when I try to edit a page, I get the following exception:
[a53582294da78d8dbaf739cc] /w/index.php?title=Warlords_Wiki:Sandbox&action=submit InvalidArgumentException: Invalid expiry value: 1 year
Backtrace:
from /var/www/html/w/includes/libs/ParamValidator/TypeDef/ExpiryDef.php(108)
#0 /var/www/html/w/includes/libs/ParamValidator/TypeDef/ExpiryDef.php(169): Wikimedia\ParamValidator\TypeDef\ExpiryDef::normalizeExpiry()
#1 /var/www/html/w/includes/libs/ParamValidator/TypeDef/ExpiryDef.php(144): Wikimedia\ParamValidator\TypeDef\ExpiryDef::expiryExceedsMax()
#2 /var/www/html/w/includes/watchlist/WatchedItemStore.php(1051): Wikimedia\ParamValidator\TypeDef\ExpiryDef::normalizeUsingMaxExpiry()
#3 /var/www/html/w/includes/watchlist/WatchedItemStore.php(998): MediaWiki\Watchlist\WatchedItemStore->addWatchBatchForUser()
#4 /var/www/html/w/includes/watchlist/WatchlistManager.php(367): MediaWiki\Watchlist\WatchedItemStore->addWatch()
#5 /var/www/html/w/includes/watchlist/WatchlistManager.php(499): MediaWiki\Watchlist\WatchlistManager->addWatchIgnoringRights()
#6 /var/www/html/w/includes/editpage/EditPage.php(2723): MediaWiki\Watchlist\WatchlistManager->setWatch()
#7 /var/www/html/w/includes/editpage/EditPage.php(2579): MediaWiki\EditPage\EditPage->updateWatchlist()
#8 /var/www/html/w/includes/editpage/EditPage.php(1819): MediaWiki\EditPage\EditPage->internalAttemptSave()
#9 /var/www/html/w/includes/editpage/EditPage.php(710): MediaWiki\EditPage\EditPage->attemptSave()
#10 /var/www/html/w/includes/actions/EditAction.php(55): MediaWiki\EditPage\EditPage->edit()
#11 /var/www/html/w/includes/actions/SubmitAction.php(29): MediaWiki\Actions\EditAction->show()
#12 /var/www/html/w/includes/actions/ActionEntryPoint.php(734): MediaWiki\Actions\SubmitAction->show()
#13 /var/www/html/w/includes/actions/ActionEntryPoint.php(505): MediaWiki\Actions\ActionEntryPoint->performAction()
#14 /var/www/html/w/includes/actions/ActionEntryPoint.php(143): MediaWiki\Actions\ActionEntryPoint->performRequest()
#15 /var/www/html/w/includes/MediaWikiEntryPoint.php(184): MediaWiki\Actions\ActionEntryPoint->execute()
#16 /var/www/html/w/index.php(44): MediaWiki\MediaWikiEntryPoint->run()
#17 {main}
I've tried searching this error up but I've found nothing useful. Does anyone know what could be causing this? Below is my LocalSettings.php if that's helpful (with some parts omitted for security reasons):
<?php
# This file was automatically generated by the MediaWiki 1.39.2
# installer. If you make manual changes, please keep track in case you
# need to recreate them later.
#
# See docs/Configuration.md for all configurable settings
# and their default values, but don't forget to make changes in _this_
# file, not there.
#
# Further documentation for configuration settings may be found at:
# https://www.mediawiki.org/wiki/Manual:Configuration_settings
# Protect against web entry
if ( !defined( 'MEDIAWIKI' ) ) {
exit;
}
## Uncomment this to disable output compression
# $wgDisableOutputCompression = true;
$wgSitename = "Warlords Wiki";
$wgMetaNamespace = "Warlords_Wiki";
## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
## For more information on customizing the URLs
## (like /w/index.php/Page_title to /wiki/Page_title) please see:
## https://www.mediawiki.org/wiki/Manual:Short_URL
$wgScriptPath = "/w";
$wgArticlePath = "/wiki/$1";
## The protocol and server name to use in fully-qualified URLs
$wgServer = "https://www.mcwarlords.net";
## The URL path to static resources (images, scripts, etc.)
$wgResourceBasePath = $wgScriptPath;
## The URL paths to the logo. Make sure you change this from the default,
## or else you'll overwrite your logo when you upgrade!
$wgLogos = [
# '1x' => "$wgResourceBasePath/resources/assets/wlwiki-135.png",
'tagline' => [
"src" => "warring the lords",
"width" => 117,
"height" => 13
],
'icon' => "$wgResourceBasePath/resources/assets/wlwiki.png",
];
$wgLogo = "{$wgScriptPath}/resources/assets/wlwiki-135.png";
## UPO means: this is also a user preference option
$wgEnableEmail = true;
$wgEnableUserEmail = true; # UPO
$wgEmergencyContact = "";
$wgPasswordSender = "";
$wgEnotifUserTalk = false; # UPO
$wgEnotifWatchlist = false; # UPO
$wgEmailAuthentication = true;
## Database settings
$wgDBtype = "mysql";
$wgDBserver = [[[omitted]]];
$wgDBname = [[[omitted]]];
$wgDBuser = [[[omitted]]];
$wgDBpassword = [[[omitted]]];
# MySQL specific settings
$wgDBprefix = "";
# MySQL table options to use during installation or update
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
# Shared database table
# This has no effect unless $wgSharedDB is also set.
$wgSharedTables[] = "actor";
## Shared memory settings
$wgMainCacheType = CACHE_NONE;
$wgMemCachedServers = [];
## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads = true;
#$wgUseImageMagick = true;
#$wgImageMagickConvertCommand = "/usr/bin/convert";
# InstantCommons allows wiki to use images from https://commons.wikimedia.org
$wgUseInstantCommons = false;
# Periodically send a pingback to https://www.mediawiki.org/ with basic data
# about this MediaWiki instance. The Wikimedia Foundation shares this data
# with MediaWiki developers to help guide future development efforts.
$wgPingback = false;
# Site language code, should be one of the list in ./includes/languages/data/Names.php
$wgLanguageCode = "en";
# Time zone
$wgLocaltimezone = "Europe/London";
## Set $wgCacheDirectory to a writable directory on the web server
## to make your wiki go slightly faster. The directory should not
## be publicly accessible from the web.
#$wgCacheDirectory = "$IP/cache";
$wgSecretKey = [[[omitted]]];
# Changing this will log out all existing sessions.
$wgAuthenticationTokenVersion = "1";
# Site upgrade key. Must be set to a string (default provided) to turn on the
# web installer while LocalSettings.php is in place
$wgUpgradeKey = [[[omitted]]];
## For attaching licensing metadata to pages, and displaying an
## appropriate copyright notice / icon. GNU Free Documentation
## License and Creative Commons licenses are supported so far.
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "https://creativecommons.org/licenses/by-sa/4.0/";
$wgRightsText = "Creative Commons Attribution-ShareAlike";
$wgRightsIcon = "$wgResourceBasePath/resources/assets/licenses/cc-by-sa.png";
# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "/usr/bin/diff3";
## Default skin: you can change the default skin. Use the internal symbolic
## names, e.g. 'vector' or 'monobook':
# $wgDefaultSkin = "darkvector";
$wgDefaultSkin = "vector";
# Enabled skins.
# The following skins were automatically enabled:
wfLoadSkin( 'MinervaNeue' );
wfLoadSkin( 'MonoBook' );
wfLoadSkin( 'Timeless' );
wfLoadSkin( 'Vector' );
# wfLoadSkin( 'DarkVector' );
# Enabled extensions. Most of the extensions are enabled by adding
# wfLoadExtension( 'ExtensionName' );
# to LocalSettings.php. Check specific extension documentation for more details.
# The following extensions were automatically enabled:
wfLoadExtension( 'CodeEditor' );
# wfLoadExtension( 'VisualEditor' );
wfLoadExtension( 'WikiEditor' );
wfLoadExtension('Cite');
# End of automatically generated settings.
# Add more configuration options below.
$wgGroupPermissions['approved'] = $wgGroupPermissions['user'];
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['user']['edit'] = false;
$wgGroupPermissions['approved']['edit'] = true;
$wgGroupPermissions['approved']['upload'] = true;
$wgGroupPermissions['sysop']['edit'] = true;
$wgAddGroups['sysop']['approved'] = true;
$wgRemoveGroups['sysop']['approved'] = true;
wfLoadExtension("ParserFunctions");
wfLoadExtension("TemplateStyles");
wfLoadExtension("Scribunto");
$wgScribuntoDefaultEngine = 'luastandalone';
$wgScribuntoEngineConf['luastandalone']['luaPath'] = '/usr/bin/lua5.1';
wfLoadExtension("Math");
$wgFileExtensions = [
'png', 'gif', 'jpg', 'jpeg', 'bmp', 'svg'
];
$wgUploadDirectory = "{$IP}/images";
$wgMaxUploadSize = 1024*1024*100;
$wgJobRunRate = 0;
wfLoadExtension( 'PageImages' );
// wfLoadExtension( 'WikiSEO' );
$wgSkinMetaTags = ["og:image", "og:site_name", "og:title", "og:type", "twitter:card"];
define("NS_TEXT", 3000);
define("NS_TEXT_TALK", 3001);
$wgExtraNamespaces[NS_TEXT] = "Text";
$wgExtraNamespaces[NS_TEXT_TALK] = "Text_talk";
define("NS_ESSAY", 3002);
define("NS_ESSAY_TALK", 3003);
$wgExtraNamespaces[NS_ESSAY] = "Essay";
$wgExtraNamespaces[NS_ESSAY_TALK] = "Essay_talk";
define("NS_CODE", 3004);
define("NS_CODE_TALK", 3005);
$wgExtraNamespaces[NS_CODE] = "Code";
$wgExtraNamespaces[NS_CODE_TALK] = "Code_talk";
define("NS_RULES", 3006);
define("NS_RULES_TALK", 3007);
$wgExtraNamespaces[NS_RULES] = "Rules";
$wgExtraNamespaces[NS_RULES_TALK] = "Rules_talk";
wfLoadExtension( 'ConfirmAccount' );
$wgGroupPermissions['*']['createaccount'] = false; // REQUIRED to enforce account requests via this extension
$wgGroupPermissions['bureaucrat']['createaccount'] = true; // optional to allow account creation by this trusted user group
$wgConfirmAccountRequestFormItems = [
'UserName' => [ 'enabled' => true ],
'RealName' => [ 'enabled' => false ],
'Biography' => [ 'enabled' => false, 'minWords' => 50 ],
'AreasOfInterest' => [ 'enabled' => false ],
'CV' => [ 'enabled' => false ],
'Notes' => [ 'enabled' => true ],
'Links' => [ 'enabled' => false ],
'TermsOfService' => [ 'enabled' => false ],
];
$wgSessionCacheType = CACHE_DB;
$wgSecureLogin = true;
$wgCookieHttpOnly = true;
$wgCookieSecure = 'detect';
$wgShowExceptionDetails = true;TheZipCreator (talk) 00:07, 10 January 2026 (UTC)
- I can't answer your question but want to say thank you for the LocalSettings.php. I installed MediaWiki at about version 1.5 so some of the new contents had passed me by! Jonathan3 (talk) 14:49, 10 January 2026 (UTC)
Internal error in MediaWiki version 1.45.1
[edit]When I successfully updated from version 1.39 to 1.45.1, I visited the website homepage and encountered the following error:
MediaWiki internal error.
Original exception: [aWHabhDbcSWMES5syHuY3gAAAAA] /index.php/%E9%A6%96%E9%A1%B5 Error: Failed opening required '/home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/extensions/SecureLinkFixer/includes/../domains.php' (include_path='/home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/vendor/pear/console_getopt:/home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/vendor/pear/mail:/home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/vendor/pear/mail_mime:/home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/vendor/pear/net_smtp:/home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/vendor/pear/net_socket:/home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/vendor/pear/net_url2:/home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/vendor/pear/pear-core-minimal/src:/home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/vendor/pear/pear_exception:.:/usr/share/pear/')
Backtrace:
from /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/extensions/SecureLinkFixer/includes/HSTSPreloadLookup.php(38)
#0 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/extensions/SecureLinkFixer/includes/Hooks.php(62): MediaWiki\SecureLinkFixer\HSTSPreloadLookup->isPreloaded(string)
#1 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/HookContainer/HookContainer.php(134): MediaWiki\SecureLinkFixer\Hooks->onLinkerMakeExternalLink(string, string, string, array, string)
#2 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/HookContainer/HookRunner.php(2638): MediaWiki\HookContainer\HookContainer->run(string, array)
#3 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/linker/LinkRenderer.php(407): MediaWiki\HookContainer\HookRunner->onLinkerMakeExternalLink(string, string, string, array, string)
#4 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/parser/Parser.php(2145): MediaWiki\Linker\LinkRenderer->makeExternalLink(string, string, MediaWiki\Title\Title, string, array)
#5 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/parser/Parser.php(1549): MediaWiki\Parser\Parser->handleExternalLinks(string)
#6 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/parser/Parser.php(606): MediaWiki\Parser\Parser->internalParse(string)
#7 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/content/WikitextContentHandler.php(375): MediaWiki\Parser\Parser->parse(string, MediaWiki\Title\Title, MediaWiki\Parser\ParserOptions, bool, bool, int)
#8 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/content/ContentHandler.php(1574): MediaWiki\Content\WikitextContentHandler->fillParserOutput(MediaWiki\Content\WikitextContent, MediaWiki\Content\Renderer\ContentParseParams, MediaWiki\Parser\ParserOutput)
#9 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/content/Renderer/ContentRenderer.php(67): MediaWiki\Content\ContentHandler->getParserOutput(MediaWiki\Content\WikitextContent, MediaWiki\Content\Renderer\ContentParseParams)
#10 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/Revision/RenderedRevision.php(246): MediaWiki\Content\Renderer\ContentRenderer->getParserOutput(MediaWiki\Content\WikitextContent, MediaWiki\Page\PageIdentityValue, MediaWiki\Revision\RevisionStoreRecord, MediaWiki\Parser\ParserOptions, array)
#11 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/Revision/RenderedRevision.php(219): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(MediaWiki\Content\WikitextContent, array)
#12 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/Revision/RevisionRenderer.php(225): MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string, array)
#13 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/Revision/RevisionRenderer.php(158): MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, MediaWiki\Parser\ParserOptions, array)
#14 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/Revision/RenderedRevision.php(182): MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}(MediaWiki\Revision\RenderedRevision, array)
#15 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/page/ParserOutputAccess.php(586): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
#16 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/page/ParserOutputAccess.php(672): MediaWiki\Page\ParserOutputAccess->renderRevision(MediaWiki\Page\WikiPage, MediaWiki\Parser\ParserOptions, MediaWiki\Revision\RevisionStoreRecord, array)
#17 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/poolcounter/PoolCounterWorkViaCallback.php(68): MediaWiki\Page\ParserOutputAccess->MediaWiki\Page\{closure}()
#18 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/poolcounter/PoolCounterWork.php(159): MediaWiki\PoolCounter\PoolCounterWorkViaCallback->doWork()
#19 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/page/ParserOutputAccess.php(489): MediaWiki\PoolCounter\PoolCounterWork->execute()
#20 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/page/Article.php(824): MediaWiki\Page\ParserOutputAccess->getParserOutput(MediaWiki\Page\WikiPage, MediaWiki\Parser\ParserOptions, MediaWiki\Revision\RevisionStoreRecord, array)
#21 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/page/Article.php(537): MediaWiki\Page\Article->generateContentOutput(MediaWiki\User\User, MediaWiki\Parser\ParserOptions, int, MediaWiki\Output\OutputPage, array)
#22 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/actions/ViewAction.php(71): MediaWiki\Page\Article->view()
#23 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/actions/ActionEntryPoint.php(734): MediaWiki\Actions\ViewAction->show()
#24 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/actions/ActionEntryPoint.php(505): MediaWiki\Actions\ActionEntryPoint->performAction(MediaWiki\Page\Article, MediaWiki\Title\Title)
#25 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/actions/ActionEntryPoint.php(143): MediaWiki\Actions\ActionEntryPoint->performRequest()
#26 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/MediaWikiEntryPoint.php(184): MediaWiki\Actions\ActionEntryPoint->execute()
#27 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/index.php(44): MediaWiki\MediaWikiEntryPoint->run()
#28 {main}
Exception caught inside exception handler: [aWHabhDbcSWMES5syHuY3gAAAAA] /index.php/%E9%A6%96%E9%A1%B5 Wikimedia\Rdbms\DBQueryError: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading or after adding a new extension?
Please see https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Upgrading and https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:How_to_debug for more information.
Error 1146: Table 'if0_40723530_wkx.echo_event' doesn't exist
Function: MediaWiki\Extension\Notifications\Mapper\EventMapper::fetchUnreadByUserAndPage
Query: SELECT event_id,event_type,event_agent_id,event_agent_ip,event_extra,event_page_id,event_deleted,notification_timestamp FROM `echo_event` JOIN `echo_notification` ON ((notification_event=event_id)) JOIN `echo_target_page` ON ((etp_event=event_id)) WHERE event_deleted = 0 AND notification_user = 1 AND notification_read_timestamp IS NULL AND etp_page = 1
Backtrace:
from /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/libs/rdbms/database/Database.php(1225)
#0 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/libs/rdbms/database/Database.php(1209): Wikimedia\Rdbms\Database->getQueryException(string, int, string, string)
#1 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/libs/rdbms/database/Database.php(1183): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, int, string, string)
#2 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/libs/rdbms/database/Database.php(640): Wikimedia\Rdbms\Database->reportQueryError(string, int, string, string, bool)
#3 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/libs/rdbms/database/Database.php(1363): Wikimedia\Rdbms\Database->query(Wikimedia\Rdbms\Query, string)
#4 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/libs/rdbms/database/DBConnRef.php(127): Wikimedia\Rdbms\Database->select(array, array, array, string, array, array)
#5 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/libs/rdbms/database/DBConnRef.php(384): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#6 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/libs/rdbms/querybuilder/SelectQueryBuilder.php(761): Wikimedia\Rdbms\DBConnRef->select(array, array, array, string, array, array)
#7 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/extensions/Echo/includes/Mapper/EventMapper.php(177): Wikimedia\Rdbms\SelectQueryBuilder->fetchResultSet()
#8 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/extensions/Echo/includes/Hooks.php(709): MediaWiki\Extension\Notifications\Mapper\EventMapper->fetchUnreadByUserAndPage(MediaWiki\User\User, int)
#9 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/extensions/Echo/includes/Hooks.php(811): MediaWiki\Extension\Notifications\Hooks->processMarkAsRead(MediaWiki\User\User, MediaWiki\Request\WebRequest, MediaWiki\Title\Title)
#10 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/HookContainer/HookContainer.php(134): MediaWiki\Extension\Notifications\Hooks->onSkinTemplateNavigation__Universal(MediaWiki\Skins\Vector\SkinVector22, array)
#11 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/HookContainer/HookRunner.php(4089): MediaWiki\HookContainer\HookContainer->run(string, array, array)
#12 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/skins/SkinTemplate.php(971): MediaWiki\HookContainer\HookRunner->onSkinTemplateNavigation__Universal(MediaWiki\Skins\Vector\SkinVector22, array)
#13 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/skins/Vector/includes/SkinVector22.php(52): MediaWiki\Skin\SkinTemplate->runOnSkinTemplateNavigationHooks(MediaWiki\Skins\Vector\SkinVector22, array)
#14 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/skins/SkinTemplate.php(1375): MediaWiki\Skins\Vector\SkinVector22->runOnSkinTemplateNavigationHooks(MediaWiki\Skins\Vector\SkinVector22, array)
#15 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/skins/SkinTemplate.php(599): MediaWiki\Skin\SkinTemplate->buildContentNavigationUrlsInternal()
#16 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/skins/SkinTemplate.php(180): MediaWiki\Skin\SkinTemplate->getPortletsTemplateData()
#17 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/skins/SkinMustache.php(117): MediaWiki\Skin\SkinTemplate->getTemplateData()
#18 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/skins/Vector/includes/SkinVector22.php(302): MediaWiki\Skin\SkinMustache->getTemplateData()
#19 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/skins/SkinMustache.php(79): MediaWiki\Skins\Vector\SkinVector22->getTemplateData()
#20 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/skins/SkinTemplate.php(173): MediaWiki\Skin\SkinMustache->generateHTML()
#21 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/skins/Skin.php(661): MediaWiki\Skin\SkinTemplate->outputPage()
#22 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/Output/OutputPage.php(3296): MediaWiki\Skin\Skin->outputPageFinal(MediaWiki\Output\OutputPage)
#23 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/exception/MWExceptionRenderer.php(185): MediaWiki\Output\OutputPage->output()
#24 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/exception/MWExceptionRenderer.php(103): MediaWiki\Exception\MWExceptionRenderer::reportHTML(Error)
#25 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/exception/MWExceptionHandler.php(123): MediaWiki\Exception\MWExceptionRenderer::output(Error, int)
#26 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/exception/MWExceptionHandler.php(224): MediaWiki\Exception\MWExceptionHandler::report(Error)
#27 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/MediaWikiEntryPoint.php(204): MediaWiki\Exception\MWExceptionHandler::handleException(Error, string)
#28 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/actions/ActionEntryPoint.php(79): MediaWiki\MediaWikiEntryPoint->handleTopLevelError(Error)
#29 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/includes/MediaWikiEntryPoint.php(190): MediaWiki\Actions\ActionEntryPoint->handleTopLevelError(Error)
#30 /home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/index.php(44): MediaWiki\MediaWikiEntryPoint->run()
#31 {main}
Among other things, it tells me whether the updater was used, and I'm sure I have used it. I thought it might be missing files, because it told me it couldn't open the required files, but after checking, I found that wasn't the case. Of course, some files are indeed missing, but the source code archive downloaded from your site doesn't have those files either. Asking for your help is my only option, and I hope to resolve this as soon as possible. Thank you!I come from another country and I am a beginner. I cannot fully understand these errors. XiaoyuWhaoYu (talk) 05:01, 10 January 2026 (UTC)
- Solved, thank you XiaoyuWhaoYu (talk) 01:41, 11 January 2026 (UTC)
- I don't know so I can only give a few hints. It looks like two extensions are involved: SecureLinkFixer and Echo (=Notifications).
- "the source code archive downloaded from your site doesn't have those files either" - both extensions come bundled with MediaWiki if you download the package as instructed (https://www.mediawiki.org/wiki/Download). Did you perhaps download the package from an alternative location like Github (which uses submodules and the like)?
- To rule out other factors, could you disable those extensions and see if MediaWiki works fine without them?
- Rand(1,2022) (talk)
I have no $wgSecretKey setting in my LocalSettings.php
[edit]Should I add one (it looks like I should) and how? It might be because I installed MediaWiki years ago and didn't read the release notes carefully enough over the years. Thanks. Jonathan3 (talk) 14:53, 10 January 2026 (UTC)
- Always state your MediaWiki version. And why do you think you need it if it's not there? – Ammarpad (talk) 14:56, 11 January 2026 (UTC)
- "Always state your MediaWiki version."
- MW 1.43.
- "And why do you think you need it if it's not there?"
- Partly because of the wording on the manual page:
- "This should always be customized to a secret, unique string in LocalSettings.php."
- "This should always be customized to a secret, unique string in LocalSettings.php. Installer.php sets it to a 64-character random string generated by
MWCryptRand::generateHex( 64 );" - "On modern PHP versions with access to /dev/urandom, mcrypt random, or openssl random, these functions are used in lieu of this variable for the purpose of token generation. However this variable is still used for other purposes, so it is still very important it be set to a unique random value even on modern PHP." (emphasis added)
- Also:
- My LocalSettings.php was generated in version 1.5 so I thought it had been introduced since, but I see from Manual:$wgSecretKey that the variable had apparently been introduced in MW 1.4. I note, though, that an unanswered question on the talk page 18 years ago says: "Since this replaces $wgProxyKey, should there be any concern that there is no value specified in the auto-generated LocalSettings.php in 1.9.3?"
- There is also an unanswered question from 11 years ago: "What should one do in the event of an accidental deletion of $wgSecretKey from LocalSettings.php? Is there a way to regenerate it?"
- What do you think? Should I add a value for this variable and, if so, how? Thank you. Jonathan3 (talk) 23:02, 11 January 2026 (UTC)
Visual Editor doesn 't run after upgrade
[edit]I have upgraded from v1.40.0 to v1.45.1, and the editor doesn't run at all - when pressing the Edit button, nothing happens; pressing the Edit Source button brings up source editing as usual. This occurs on Firefox, Chrome, and Edge, so I don't think this is a browser-specific issue. I have cleared cookies, and enabled debug logging, although this just displays a long screed which means nothing to me. I'm not sure this is related, but I also use the CategoryTree extension, which has an expand/collpase tree button, which also doesn't respond, so there seems to be a common "extension buttons not responding" issue. I can't help feeling this is down to a simple setting somewhere, but I am far from being an expert on this software, so I have run out of ideas. ~2026-20446-3 (talk) 15:10, 10 January 2026 (UTC)
- I'm not sure but maybe it's just JavaScript not running. You can press F12 to see the errors as they happen. Jonathan3 (talk) 01:42, 11 January 2026 (UTC)
runJobs.php - Failed to open stream: Permission denied in GlobalIdGenerator.php
[edit]Since upgrading from MW1.39 to 1.43 I sometimes see this in the runJobs.php log:
PHP Warning: fopen(/var/www/example.com/html/images/temp/mw-GlobalIdGenerator1000-UUID-128): Failed to open stream: Permission denied in /var/www/example.co.uk/html/includes/libs/uuid/GlobalIdGenerator.php on line 451
Either sudo php run.php runJob or sudo -u www-data php run.php runJobs seems to prevent the problem but is there an underlying cause I can fix?
What should the ownership of the images/temp folder be? I have it as www-data. Jonathan3 (talk) 00:33, 11 January 2026 (UTC)
- Here's another similar one:
- Jonathan3 (talk) 00:47, 11 January 2026 (UTC)
:PHP Warning: fopen(/var/www/example.co.uk/html/media/temp/mw-GlobalIdGenerator1000-UUID-128): Failed to open stream: Permission denied in /var/www/example.co.uk/html/includes/libs/uuid/GlobalIdGenerator.php on line 451 :2026-01-10 23:10:18 refreshLinks Template:... pages={"12918":[0,"..."]} rootJobSignature=... rootJobTimestamp=20260110160120 triggeredRecursive=1 causeAction=edit-page causeAgent=... namespace=10 title=... requestId=a28995a3bf56e13b1390d423 (id=10464512,timestamp=20260110190021) t=99 error=RuntimeException: Could not open '/var/www/example.co.uk/html/media/temp/mw-GlobalIdGenerator1000-UUID-128'. in /var/www/example.co.uk/html/includes/libs/uuid/GlobalIdGenerator.php on line 456 :PHP Warning: fopen(/var/www/example.co.uk/html/media/temp/mw-runJobs-backoffs.json): Failed to open stream: Permission denied in /var/www/example.co.uk/html/includes/jobqueue/JobRunner.php on line 544 :[182ea9e48980ffb8d6993e77] [no req] TypeError: flock(): Argument #1 ($stream) must be of type resource, false given :Backtrace: :from /var/www/example.co.uk/html/includes/jobqueue/JobRunner.php(545) :#0 /var/www/example.co.uk/html/includes/jobqueue/JobRunner.php(545): flock() :#1 /var/www/example.co.uk/html/includes/jobqueue/JobRunner.php(198): JobRunner->syncBackoffDeltas() :#2 /var/www/example.co.uk/html/maintenance/runJobs.php(97): JobRunner->run() :#3 /var/www/example.co.uk/html/maintenance/includes/MaintenanceRunner.php(703): RunJobs->execute() :#4 /var/www/example.co.uk/html/maintenance/doMaintenance.php(100): MediaWiki\Maintenance\MaintenanceRunner->run() :#5 /var/www/example.co.uk/html/maintenance/runJobs.php(140): require_once(string) :#6 {main} :- See Manual:Security#File permissions on how to fix your install. – Ammarpad (talk) 14:53, 11 January 2026 (UTC)
- The strange thing is that my setup is as described there - html and everything in it my user, except images and everything in it www-data. I copied across the same files with cp -rp as I had on 1.39. Maybe I should have mv'd them? Any other ideas? Jonathan3 (talk) 21:09, 11 January 2026 (UTC)
- See Manual:Security#File permissions on how to fix your install. – Ammarpad (talk) 14:53, 11 January 2026 (UTC)
Unable to import page
[edit]I get the following error when I import the page:
The lua binary (/home/vol8_6/infinityfree.com/if0_40723530/wkx.ct.ws/htdocs/extensions/Scribunto/includes/Engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua) is not executable.
I have installed Scribunto. The mediawiki version is 1.45.1 XiaoyuWhaoYu (talk) 10:25, 11 January 2026 (UTC)
- I can't make this file "Lua" executable. XiaoyuWhaoYu (talk) 10:27, 11 January 2026 (UTC)
- Why can't you? It's necessary. – Ammarpad (talk) 14:40, 11 January 2026 (UTC)
?: Template parameter, "|" character inclusion, Subst(?).
[edit]How would I force "|" characters to be included in one parameter that than would, for example, contain xxx|zzz or(SMW usage related) xxx||zzz ?
I do know about the existence of subst & savesubst ... But that's about it. Understanding multi level substitution details have so far still eluded me big time.