This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made.
Latest comment: 3 years ago2 comments2 people in discussion
I created a bot to do some automatic edits in my own wiki. The bot account is in bot user group. I used the sample code (PHP) in API:Edit#PHP and made the "// Step 4: POST request to edit a page" part in a for loop to do multiple edits. But after a few edits, I get permissiondenied error and the message said that I'm in user group (rather than in bot group). After allowing IP user to edit, I get captcha message, which means that the bot login has already expired. What went wrong? Why the login expired? Teetrition (talk) 08:45, 1 April 2023 (UTC)
Its possible that the wiki in question has $wgSessionCacheType misconfigured or configured to something without enough space. (For example, CACHE_ACCEL, but with too small a setting for apcu.shm_size).
I'm not sure specificly what you mean, but it is probably controlled by a system message. Look through the page Special:AllMessages on your wiki to try and find the right one to change. Bawolff (talk) 15:21, 4 April 2023 (UTC)
translate : html span tag appears on translated page
Latest comment: 3 years ago2 comments1 person in discussion
RESOLVED
closing subject with workaround; follow subject in Phabricator
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Apache Step 2. Execute Script img_auth.php for all Accesses[modifier]
Apache Step 2.1. Change $wgUploadPath in LocalSettings.php. This is not needed if Apache step 2.2 is done.
but once translated, a span tag with following anchor appears on the FR page (a < p > tag is inserted before next title such as if its anchor were made redundant):
Apache étape 2. Executer le script img_auth.php pour tous les accès
<span id="Apache_Step_2.1._Change_$wgUploadPath_in_LocalSettings.php._This_is_not_needed_if_Apache_step_2.2_is_done.">
Apache étape 2.1. modifier $wgUploadPath dans LocalSettings.php. Pas utile si l'étape 2.2 Apache a été faite
# 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 = "d8e35fccd5b424df";
## 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 = "";
$wgRightsText = "";
$wgRightsIcon = "";
# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "";
# The following permissions were set based on your choice in the installer
$wgGroupPermissions['*']['edit'] = false;
## Default skin: you can change the default skin. Use the internal symbolic
## names, e.g. 'vector' or 'monobook':
$wgDefaultSkin = "vector";
# Enabled skins.
# The following skins were automatically enabled:
wfLoadSkin( 'MinervaNeue' );
wfLoadSkin( 'MonoBook' );
wfLoadSkin( 'Timeless' );
wfLoadSkin( 'Vector' );
# End of automatically generated settings.
# Add more configuration options below.
Here's the problem: when I want to test if the URL works, it tells me "Site not found" when I type the URL in the URL bar. The only changes I made are "wgScriptPath", "wgServer", "wgCanonicalServer" and "wgDBName". Can someone help me with this? NikoPalad67140 (talk) 15:32, 3 April 2023 (UTC)
What I did was to modify the .htaccess file in order to shorten the URL, then I added "wgArticlePath" to the LocalSettings.php file in order for the change to work. But even with that, the error is still present.
New computer. New installation of Ubuntu 22.04, New installation of everything. Yet I am still getting the same error that stumped me last week. I am NOT a PHP or database expert. In fact Mediawiki and PHP are only used here for Mediawiki. Which has worked fine on another computer for a few years. But I am trying to move my database to another computer. Can someone tell me in newbie language how I get past this error.
MediaWiki 1.39 internal error
Installing some PHP extensions is required.
Required components
Latest comment: 3 years ago3 comments2 people in discussion
You are missing a required extension to PHP that MediaWiki requires to run. Please install:
Sometimes commandline php and webserver php can have different extensions installed (although usually ubuntu does both).
So first off, restart apache (im assuming you are using apache) to make sure changes to php are picked up (run systemctl restart apache2 )
Instead of using php -m to fugure out what modules are loaded, create a file named info.php containing just <?php phpinfo(); and browse to it in your web browser. Bawolff (talk) 10:03, 4 April 2023 (UTC)
Thanks. I solved this speed bump by making sure these extensions were in the php install line. I managed to finish the Mediawiki installation, but now I can't get the old database to move to my new server. I'll start a new thread for that. SteveRMann (talk) 20:10, 12 April 2023 (UTC)
Hiding the sidebar from anonymous (non-logged in) users
Latest comment: 2 years ago3 comments2 people in discussion
Hello,
On my wiki I have a requirement to only show the login link, nothing else.
Obviously I do not just want to hide them cosmeticly.
I've added the following to my LocalSettings.php file to accomplish this:
I have been told that in earlier versions the above 4 lines of $wgGroupPermissions were enough to hide everything from the login page except the login link.
I know that it works because when I save an edit on the localhost's main page, it redirects me to the URL I want. Now, when it does redirect, and also if I type in the URL directly, then it gives me the "We're having trouble finding that site" error. Any way I can fix this? NikoPalad67140 (talk) 10:19, 4 April 2023 (UTC)
Like i said on your last post - There is no A record on the DNS entry for wiki.papadeluxe.com
For that matter, it does not appear that papadeluxe.com domain has even been registered [1] [Note: I'm just linking there to show that the domain is currently marked as available. This is not an endorsement of that particular site's services]
In order for this to work, you need to buy the domain in question, and set the A record of it to be your IP address (You also need to make sure that your IP address is accessible over the internet which sometimes is not the case if you're using a home connection). Otherwise there is no way for the world to know that that url is for your website. Bawolff (talk) 15:13, 4 April 2023 (UTC)
the Firmware-Version RUTX_R_00.07.04.1
Latest comment: 3 years ago2 comments2 people in discussion
info: JavaScript no longer operational in Firefox ESR
Latest comment: 3 years ago9 comments3 people in discussion
Using JavaScript in an unsupported browser on an unsupported operating system has been recently unsupported by MediaWiki (T178356).
I notice that since this morning Firefox ESR (Win Vista) is no longer supported for JavaScript operations by MW . No more sortable columns, 'blind' updates are still possible but without the facility of JS => change your laptop. Christian 🇫🇷 FR 🚨 (talk) 10:11, 5 April 2023 (UTC)
Which version is that? I have an ESR version of Firefox too, but haven't noticed anything yet. I'll check later today. Until then, are you seeing anything in the browser console? —Mainframe98talk10:29, 5 April 2023 (UTC)
Browser reinstall gives Version 52.9.0; will investigate with additional fixes; no hope no more fixes after global restart; "Cet outil ne fonctionne pas sans JavaScript. JavaScript est désactivé ou n’a pas pu s’exécuter, ou bien votre explorateur ne le prend pas en charge." Java on its side is => C:\Program Files\Java\jre1.8.0_271\bin\javaw.exe Christian 🇫🇷 FR 🚨 (talk) 10:34, 5 April 2023 (UTC)
No hope; manual update with last jre-8u361-windows-i586.exe as proposed by site www.java.com offline makes still translations rejected with same msg as above.
java and javascript are different things. Despite the similar names they have nothing to do with each other. Your JRE version number is irrelevant.
Are you saying your firefox version is 52.9.0? That is not the current firefox ESR release. The current ESR release is 102.9.0. Firefox 52 is from about 6 years ago. Bawolff (talk) 11:55, 5 April 2023 (UTC)
Oh i missed the windows vista part. Firefox 52.9.0 is the last version to work on windows vista.
In principle you are still supposed to be able to do all editing even in older browsers just without javascript, but maybe that doesn't apply to translate extension, I don't know. Bawolff (talk) 11:59, 5 April 2023 (UTC)
This is the About result of the browser. I have given the more details I have and what worked yesterday no longer does today. Just to warn other users. Christian 🇫🇷 FR 🚨 (talk) 11:59, 5 April 2023 (UTC)
SVGエラー
Latest comment: 3 years ago2 comments2 people in discussion
What's the underlying problem that you would like to solve that you think would be solved by not auto-generating a signature? Malyacko (talk) 03:49, 6 April 2023 (UTC)
Echo Extension: Having issue with installation on MediaWiki 1.32.2
Latest comment: 3 years ago4 comments3 people in discussion
Hi all, I have installed the echo extension and followed the instructions from Extension:Echo - MediaWiki. However, I am facing an error after running the update script. I am still new to MediaWiki and PHP. Appreciate any help on this.
MediaWiki Version: 1.32.2
Branch installed: REL1_32
Logs after running update.php:
_____________________________________
[0b36702eafec2f350ef3876f] [no req] Wikimedia\Rdbms\DBQueryError from line 1506 of E:\Apache24\htdocs\includes\libs\rdbms\database\Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: SELECT event_id FROM `echo_event` LEFT JOIN `echo_notification` ON ((notification_event=event_id)) WHERE notification_user IS NULL ORDER BY event_id ASC LIMIT 500
Well, I can look to upgrade the version but I am afraid we might lose the data or break the application. Based on Manual:Upgrading - MediaWiki, I can back up the data first before attempting to upgrade the version to 1.35 followed by 1.39 Exmbit (talk) 05:20, 6 April 2023 (UTC)
When I upgraded, I thought I broke my wiki. I couldn't even read my mainpage. However, it turned out to be two extensions that were incompatable, and not teally that big of a deal. My suggestion is to do the upgrade. I know it's scary.
#.) Warn your users for a week first.
#.) Have a version of your localsettings.php handy that is barebones, with most of your extensions commented off and a basic skin as the default.
#.) Slowly activate your extensions just one or two at a time. You will probably have at least one of them mangle your wiki. I had 2.
#.) Upgrade any offending extensions.
#.) Now do the same with your skins. I had to replace my Darkvector skin with HIVE so that I could have a dark skin.
The upgrade is worth it, and if you do it this way it should be fairly pain-free, and completed in 72 hours or less. I have a large complicated wiki, and I almost had a heart attack when I saw my shredded and mangled wiki, with overlapping text-wall errors everywhere. If you restart your extensions in slow increments, per above, you will save yourself the adrenaline. The upgrade rocks. -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀06:55, 7 April 2023 (UTC)
Search suggestions not working on desktop, only mobile
Latest comment: 3 years ago4 comments1 person in discussion
Typing into the search box whilst on the MinervaNeue mobile skin whilst on a PC or smartphone instantly brings up a list of pages that match what's being typed, as wanted and expected.
However, using the default Vector-2022 skin, or the legacy Vector skin, either doesn't bring up a drop-down list of suggestions at all, or just one that reads "No match was found.".
I thought installing Elasticsearch and the CirrusSearch extension would help, as that is what Wikipedia uses, but the same issue persists. I have verified CirrusSearch is definitely working through API calls and checking if search suggestions still work on mobile skin, which they do. The issue still persists on desktop Vector skin. If it helps, any Javascript or CSS related pages like MediaWiki:Common.js and MediaWiki:Vector.css on my wiki are copies of their Wikipedia counterparts. There are also no Javascript errors that pop up in the browser's console whilst searching, which has me stumped on what the issue could be, but I'll leave a link to my wiki below if you can spot something that I'm not seeing.
Okay something semi-related to this issue popped up, running sudo apt upgrade changed the version of Elasticsearch from 7.10.2 to 7.17.9 which is not the version explicitly stated as a requirement by Extension:CirrusSearch. Should I downgrade?
Also, the main issue that this thread is for (search suggestions dropdown list / autocomplete not showing up on Vector skins, when it does on MinervaNeue), is still also happening. I've tried blanking out the aforementioned .css and .js pages and that wasn't the issue, I've also tried installing the SecureLinkFixer extension and other SSL related stuff to rule out any https problems, and I've run a few maintenance scripts like runJobs.php to no avail - if there's anything at all anyone else can think of trying, please let me know! Thanks ^^ ElementalLagomorph (talk) 05:05, 7 April 2023 (UTC)
Hoo boy, we've been spending most of the past couple days trying to troubleshoot this now and yet still to no avail. We've thankfully come to the conclusion that this issue is only affecting the main search bar at the top of every page on the Vector skin, as the lower search bar on Special:Search in the Vector skin does display search suggestions.
Here are some additional things I've tried today:
- Downgrading Elasticsearch back to 7.10.2 and running sudo apt-mark hold elasticsearch (preventing it from upgrading again)
- Enabling the Headers directive module in Apache with sudo a2enmod headers
- Adding
<Location "/wikis/WikipediNyah/rest.php">
Header set Content-Type "application/json"
</Location>
to the Apache config to force rest.php to return content with the expected application/json in its Content-Type header rather than text/html; charset=UTF-8
- Adding more extensions and lines to LocalSettings.php , including the new additions of:
I am currently of the suspicion that this issue has something to do with how I've set up Short URLs and other redirects in the rest of the Apache config. Typing "Test" into the top search bar and looking at the Network tab shows me that the search bar is trying to get
/wikis/WikipediNyah/rest.php/v1/search/title?q=Flye&limit=10 TypeError: array_merge(): Argument #2 must be of type array, null given
If it helps, the expected Short URL version of the site that the Apache config redirects to is not supposed to have /wikis/ at the end of the https://wikis.redgreenblue.art/ domain name, as that would be redundant. Removing the /wikis/ from the top link above and going to https://wikis.redgreenblue.art/WikipediNyah/rest.php/v1/search/title?q=Test&limit=10 understandably just provides an un-created MediaWiki page for "Rest.php/v1/search/title".
If you guys need ANY additional information at all, such as the entire contents of the Apache config file, please feel free to ask, as I'm once again totally stumped at the moment. I am willing to share nearly everything if it'd help getting this solved. If this thread needs to be moved elsewhere such as a bug on the Phabricator, I'm all ears too. Thanks once again! ElementalLagomorph (talk) 10:01, 7 April 2023 (UTC)
Issue fully solved after entering my website's URL into the third-party MediaWiki ShortURL Builder at https://shorturls.redwerks.org/ , seeing that this service couldn't connect to my site due to a broken SSL chain, setting up my Apache config to use the fullchain.cer file instead of just the main certificate for my site, following the aforementioned site's instructions to further rewrite my Apache configuration from scratch, and completely removing deprecated options from LocalSettings.php (which included $wgUsePathInfo = true; and most of the ones I listed in my previous reply above - if you're wondering how those settings even got into my LocalSettings.php file, it was a mixture of trusting outdated information from ChatGPT, and cursory searches of similar MediaWiki issues which all had replies from years ago).
So I'm not sure whether it was the broken SSL chain, a slightly-misconfigured Apache configuration, or deprecated settings in the LocalSettings.php, but yes, after nearly two days of non-stop troubleshooting, we are finally done. :D ElementalLagomorph (talk) 14:48, 7 April 2023 (UTC)
Ordnance Survey maps integration
Latest comment: 3 years ago4 comments3 people in discussion
Can anyone tell me whether it is possible to use Ordnance Survey maps in Mediawiki. The Maps extension is good (not that I could ever get Google maps service to work) but I was hoping to have OS maps as an additional layer. OS maps seem to be everywhere else except Mediawiki. I have a site on Miraheze, which always keep everything up to date. Is this even possible, or am I just barking up the wrong tree? Thanks. TheBorderman (talk) 13:25, 6 April 2023 (UTC)
What is "Ordnance Survey"? Please also link to their API. Have you brought this up in a Miraheze forum first? Malyacko (talk) 04:51, 7 April 2023 (UTC)
Ordnance Survey is the national mapping agency in the UK, which has been around for over 200 years. I asked on Miraheze but was directed to ask at Mediawiki.
This is what I'm after: english-lake-district.info/lake-district-map-3d.html - (won't let me add links for spam reasons) click on the Ordnance Survey map option on the left hand side and zoom in all the way.
This is the map I'd like to use: beta.ordnancesurvey.co.uk/products/25k-raster - but don't know if it's possible in Mediawiki. TheBorderman (talk) 18:20, 7 April 2023 (UTC)
It would depend on the map extension you are using. There are a bunch, you might have better luck asking the author of the map extension in question. Bawolff (talk) 17:23, 8 April 2023 (UTC)
How do I make it so that the wiki looks different on April Fools Day without changing page contents?
Latest comment: 3 years ago5 comments5 people in discussion
(This is an ask silly questions get silly answers sort of thing. You don't say how you want to change it or what you want to change, so the best anyone is going to be able to tell you is broad generic answers like "css") Bawolff (talk) 20:43, 6 April 2023 (UTC)
Latest comment: 3 years ago16 comments2 people in discussion
When I cut and paste a URL from my browser window, then into a social media post, the URL is converted into a clickable field with an image, typically the first image on the page, and a short description or summary of the contents of the page. This works perfectly with, say, a Wikipedia article. However, when I do this with an article from my own wiki, the image does not appear. We have tested this with several users, and verious articles, and compared the markup on each.
Ok, I don't know how to set up skinmetatags. I don't even know what they are. I have several skins on my wiki. I don't see how a user's choice of wikiskin can prevent or cause a social media platform to use an image from a raw link or display it. What do I need to do? -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀20:43, 8 April 2023 (UTC)
I can tell you guys are busy. Is it possible for me to get tbe Wikipedia setting? I can see Wikipedia's image okay. -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀21:07, 12 April 2023 (UTC)
I copied over these configs and I will have a look at them. Thank you very much. I will let you know how this turns out, thanks again. -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀20:32, 13 April 2023 (UTC)
Yes, I am sure. But I am going to start the whole thing over from scratch. Redownload it, everything. Things happen, and any number of things may go awry, but I'm guessing it won't happen twice in a row. I will update you when done. -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀20:49, 14 April 2023 (UTC)
You were correct. I was wrong. The script was not run. My provider does not offer shell access. Can i run the script some other way? Maybe upload it to a different folder? -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀09:07, 15 April 2023 (UTC)
MaintanenceShell installed and ran initImageData.php without a hitch. But once it was running, initImageData crashed with a Generic server error. I don't understand why this has to be so complicated. Iv'e been coding software for over 35 years, and I don't even understand the basics of what this extension is doing. When I post a raw link to social media, there is always a thumbnail, except not when its my wiki. Most of these sites are not even wikis, so I don't get this. I also don't like to install things if I don't know what they are doing. Can you help me understand? Is there another extension that does the same thing? Can I do this manually? Thank you in advance, here is my version info, perhaps its incompatable with something I have installed. https://fascipedia.org/index.php/Special:Version-𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀21:50, 15 April 2023 (UTC)
Internal errors on all wiki pages
Latest comment: 3 years ago4 comments3 people in discussion
As the topic says, an old wiki of mine seems to be giving an internal error on every page.
It is, far as I can tell, the same error on every page. The content is still intact when I go to 'edit', but I'm not sure what caused this as there has been no edits in a long time. TalynAmbereye (talk) 11:17, 7 April 2023 (UTC)
Ah, I see. Uhm, to be honest I'm not sure how to do that, it's been a long time since I've done anything in Mediawiki, and I don't remember how to mess with the file structure TalynAmbereye (talk) 11:51, 7 April 2023 (UTC)
How to de-index my discussion page from Google SERP results?
Latest comment: 3 years ago13 comments4 people in discussion
What can I do to prevent Google searches from indexing my talk page? I'm new here and actually don't have any pages published yet, as I've made some beginner's mistakes, although searches for my name show the discussion page in the results, which doesn't make any sense... Thanks! Fernando Ariani (talk) 14:42, 7 April 2023 (UTC)
set $wgNamespaceRobotPolicies[NS_TALK] = 'noindex'; in LocalSettings.php and/or adjust your robots.txt file.
Is this your own wiki or someone else's wiki or wikimedia?
If this is someone else's wiki, you can maybe place __NOINDEX__ on a page (whether that works depends on config). Bawolff (talk) 17:20, 8 April 2023 (UTC)
Hi Bawolff,
It's. mine. Anyway, I don't know how, but for some reason it seems that it is already disallowed on both pages, as you see bellow..
Note that, once the page has been indexed by search engines, disallowing it may not remove it from search indexes until some time. You can manually remove it if you create an account on Google search console and manually send a request for removing that URL from the index. Ciencia Al Poder (talk) 18:56, 9 April 2023 (UTC)
Thanks for your help, but I can't upload the verification file to my page, and therefore I can't do it from GSC (which I am very familiar to procedures I have to make eventually on my Domain's URLS 189.60.153.89 (talk) 13:20, 11 April 2023 (UTC)
Latest comment: 3 years ago2 comments2 people in discussion
Hi team,
I am looking for license clarification. I made a video with files from Wiki Commons for a song I wrote and posed it on YouTube. I put the licenses and attributions in a comment. The video is free to watch on YouTube. Can I monetize income from commercial clicks or sale of merchandise linked on the video or commented by me on the YouTube platform?
Different files have different license requirements and some are stricter than others. Usually this means you might have to credit the author of the files you used in a specific way. Sometimes they require that derrived works also have to be released under the same terms. All files on wikimedia commons do allow commercial use. Anyways the rules can be a bit complicated and depend on which files you use.
anyways, this particular page is more for technical help. For licensing help i would suggest asking at c:Commons:Help desk and include a list of all files used (or at least their licenses) Bawolff (talk) 21:23, 7 April 2023 (UTC)
Can not edit main page that is hacked by self-registered users
Latest comment: 3 years ago7 comments2 people in discussion
Hello,
I get this error when I click on the edit tab:
Exception encountered, of type "TypeError"
I found that I have many unautherised users. I created the site many years ago and forgot to secure it. Where in the SQL DB I can prevent self-regiseterd users?
Also, where in the DB I can remove/edit the contents they changed?
I found the pmpage table and removed the unwanted pages, and similarly the unwanted users from pmuser. I need to edit the page contents, and need to prevent self-registration please. I also need to return the web interface editing not from the DB only.
Thank you. Also, how to stop self-registered users and user contributions? It is a self-managed wiki,
here is the details of the Editing Exception
Exception encountered, of type "TypeError"
[229da518] /index.php?title=Main_Page&action=edit TypeError from line 3350 of /home/manalorama/patmine.manalhelal.com/includes/EditPage.php: implode(): Argument #2 ($array) must be of type ?array, string given
Exception is probably related to an extension related to page editing. Make sure your extensions are the correct version for your version of mediawiki.
See the link i linked to for how to configure access control. You probably want settings
I do not know how to make sure that there are any extensions in the first place. Can you please give some instructions. Thank you very much for your support Mehelal (talk) 17:59, 12 April 2023 (UTC)
Which extensions you are using should be listed at Special:Version and can be configured in LocalSettings.php (look for wfLoadExtension lines) Bawolff (talk) 22:29, 12 April 2023 (UTC)
These are the only ones I can find, and I disabled them all. I still get the same error:
# The following extensions were automatically enabled:
#wfLoadExtension( 'Cite' );
#wfLoadExtension( 'CiteThisPage' );
#wfLoadExtension( 'PdfHandler' );
#wfLoadExtension( 'SpamBlacklist' );
#wfLoadExtension( 'TitleBlacklist' );
#wfLoadExtension( 'WikiEditor' );
In wordpress there is wp_admin page from which there is a Dashboard that extensions, pages, everything can be edoted, versions and updates and so forth. Is there a similar page for MediaWiki?
I just ran into this issue and added my experience to T331608. Let's hope for someone who perhaps has a clue about what to do in this situation. For me, the update to 1.39.6 fails. [[kgh]] (talk) 17:58, 7 February 2024 (UTC)
Updating problems from 1.38.6 to 1.39.3
Latest comment: 3 years ago9 comments2 people in discussion
This way seems to be working, except couple of things.
1) I have several localizations using shared Database and files of the website. (en.mywikiste.org, ru.mywikisite, en.mywikiste ect.), so first of all when launching update.php. I have a warning:
Some of your configuration settings caused a warning:
* SharedDB is deprecated: since 1.21 In new code, use the $wiki parameter to
LBFactory::getMainLB() to access remote databases. Using
LBFactory::getMainLB() allows the shared database to reside on separate
servers to the wiki's own database, with suitable configuration of
$wgLBFactoryConf
Please correct the issue before running update.php again.
If you know what you are doing, you can bypass this check
using --skip-config-validation.
So I have run the script php update.php --skip-config-validation.
And all databases where updated fine, except english version of the website, so when I go to my en.mywikisite.org I have the same error:
[71d8c5828b85d0578d561e3a] / 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 'wikijournal_org.en__revision_actor_temp' doesn't exist (127.0.0.1)
Function: MessageCache::loadFromDB(en)-small
Query: SELECT /*! STRAIGHT_JOIN */ rev_id,rev_page,rev_timestamp,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1,comment_rev_comment.comment_text AS `rev_comment_text`,comment_rev_comment.comment_data AS `rev_comment_data`,comment_rev_comment.comment_id AS `rev_comment_cid`,actor_rev_user.actor_user AS `rev_user`,actor_rev_user.actor_name AS `rev_user_text`,temp_rev_user.revactor_actor AS `rev_actor`,page_namespace,page_title,page_id,page_latest,page_is_redirect,page_len FROM `en__page` JOIN `en__revision` ON ((page_id = rev_page)) JOIN `en__revision_comment_temp` `temp_rev_comment` ON ((temp_rev_comment.revcomment_rev = rev_id)) JOIN `en__comment` `comment_rev_comment` ON ((comment_rev_comment.comment_id = temp_rev_comment.revcomment_comment_id)) JOIN `en__revision_actor_temp` `temp_rev_user` ON ((temp_rev_user.revactor_rev = rev_id)) JOIN `wikijournal_org`.`ru__actor` `actor_rev_user` ON ((actor_rev_user.actor_id = temp_rev_user.revactor_actor)) WHERE page_is_redirect = 0 AND page_namespace = 8 AND (page_title NOT LIKE '%/%' ESCAPE '`' ) AND (page_len <= 10000) AND (page_latest = rev_id)
Backtrace:
from /var/www/admin/www/mediawiki-1.38.6/includes/libs/rdbms/database/Database.php(1606)
#0 /var/www/admin/www/mediawiki-1.38.6/includes/libs/rdbms/database/Database.php(1590): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)
#1 /var/www/admin/www/mediawiki-1.38.6/includes/libs/rdbms/database/Database.php(1564): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#2 /var/www/admin/www/mediawiki-1.38.6/includes/libs/rdbms/database/Database.php(1173): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#3 /var/www/admin/www/mediawiki-1.38.6/includes/libs/rdbms/database/Database.php(1813): Wikimedia\Rdbms\Database->query(string, string, integer)
#4 /var/www/admin/www/mediawiki-1.38.6/includes/libs/rdbms/database/DBConnRef.php(69): Wikimedia\Rdbms\Database->select(array, array, array, string, array, array)
#5 /var/www/admin/www/mediawiki-1.38.6/includes/libs/rdbms/database/DBConnRef.php(320): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#6 /var/www/admin/www/mediawiki-1.38.6/includes/cache/MessageCache.php(569): Wikimedia\Rdbms\DBConnRef->select(array, array, array, string, array, array)
#7 /var/www/admin/www/mediawiki-1.38.6/includes/cache/MessageCache.php(447): MessageCache->loadFromDB(string, NULL)
#8 /var/www/admin/www/mediawiki-1.38.6/includes/cache/MessageCache.php(370): MessageCache->loadFromDBWithLock(string, array, NULL)
#9 /var/www/admin/www/mediawiki-1.38.6/includes/cache/MessageCache.php(1112): MessageCache->load(string)
Other wikis work fine meanwhile.
2) All interwiki links disappeared, they showb basically on the top-right corner of the page.
So the main issue on the english version of my wiki remains the same:
[623a7c71a787e1640a0512b6] / 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.
Since you have many DBs, could it be that your config fails to point to the right DB in console mode and ends up upgrading only the russian version and not the english version ?
And in the dumps you're giving me, it seems the update script is running from a 1.38.6 codebase ... shouldn't it be 1.39.x ? Tinss (talk) 03:09, 13 April 2023 (UTC)
I have made finally successful upgrade. The problem I believe was in cache as I kept both folders on server. As I have deleted the previous version folder all errors are gone!
Now I have only final concers - missing interwiki links. Don't know what to do to make them on a page as usual. Fokebox (talk) 09:26, 13 April 2023 (UTC)
Yes, I have also noticed that the error refers to the previous version. Anyway I have made a back up and later will retry to upgrade MW again and let you know what I have. Fokebox (talk) 07:43, 13 April 2023 (UTC)
And one more thing. As I have special settings for my wiki farm. When I launch the update.php I have following warning:
root@mail:/var/www/admin/tools# ./update_wikis_2023.sh
Run update script for all wikis...
Warning: Undefined array key "SERVER_NAME" in /var/www/admin/www/mediawiki-1.39.0/LocalSettings.php on line 383
Some of your configuration settings caused a warning:
* SharedDB is deprecated: since 1.21 In new code, use the $wiki parameter to
LBFactory::getMainLB() to access remote databases. Using
LBFactory::getMainLB() allows the shared database to reside on separate
servers to the wiki's own database, with suitable configuration of
$wgLBFactoryConf
Please correct the issue before running update.php again.
If you know what you are doing, you can bypass this check
using --skip-config-validation.
Two things here are unclear.
"SERVER_NAME" i on line 383 I have as follows:
$uri = strtolower( $_SERVER['SERVER_NAME'] ); // Get the calling URI
Previously this line was okay for upgrading.
As I have shared tables for my wiki farm as follows:
Latest comment: 3 years ago6 comments4 people in discussion
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Please see "Post a new question" in the sidebar for info to provide, plus also provide your exact version of the Cite extension installed. Malyacko (talk) 22:30, 10 April 2023 (UTC)
Version 38.4
MySQL / MariaDB
Wiki is closed type (no URL)
<ref>Paul Arthur Merkel: ''Die Basalte des Grossen und Kleinen Teuchelberg und des Langholz'' (1895) [https://archive.org/details/diebasaltedesgr00merkgoog/page/n3 Digitalisat]</ref> Abrape (talk) 22:48, 10 April 2023 (UTC)
Version 38.4 does not exist. And my question was which exact version of Cite is installed. Please do answer all questions instead of ignoring some. Thanks. Malyacko (talk) 09:33, 11 April 2023 (UTC)
#79 64.00 ... changing type of field smw_id from 'INT UNSIGNED NOT NULL AUTO_INCREMENT' to 'INT(11) UNSIGNED NOT NULL KEY AUTO_INCREMENT' ... Wikimedia\Rdbms\DBQueryError from line 1618 of /var/www/html/includes/libs/rdbms/database/Database.php: Error 1091: Can't DROP 'PRIMARY'; check that column/key exists
Latest comment: 3 years ago4 comments4 people in discussion
RESOLVED
The recommended extensions seem good. I'll have to check them out.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Is 39 supposed to list the 'pagename' as a template in page preview?
Latest comment: 3 years ago3 comments2 people in discussion
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
When I use the {{PAGESIZE:pagename}} magic word parser function to only retrieve the byte size of a page, with or without the optional |R, is the value for pagename supposed to appear in the "Templates used in this preview:" drop-down at the bottom of the source editor?
For example, if I go to my User namespace page on a wiki, type {{PAGESIZE:User:<my user page>}} using the source editor, then select "Preview" to see the changes on the page, when I scroll to the bottom and check "Templates used in this preview", it will show my user page is used as a template. But I didn't call it as a template through transclusion using {{User:<my user page>}}. I used a MediaWiki magic word.
I don't know if this is intentional or something wrong with the version of the wiki I am using, which is MediaWiki Version 1.39. I also don't know if a question like this goes here or somewhere else - sorry if I posted in the wrong place if this is the wrong place. Snowyamur9889 (talk) 06:34, 11 April 2023 (UTC)
Originally these were only transclusions of template contents indeed, but it does a bit more now. Whenever a page depends on another page/entity for the purpose of rendering, it will be listed there. That means that if something changes about your user page (like its pagesize), the page using the information will be notified that it has changed and it should update itself. So yes, this is intentional, you made the output of your page depend on {{User:<my user page>}}. You have 'transcluded' some information that is based on one page into another page. —TheDJ (Not WMF) (talk • contribs) 10:57, 11 April 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
New directory management when upgrading
Latest comment: 3 years ago2 comments2 people in discussion
According to https://www.mediawiki.org/wiki/Manual:Upgrading one should extract the new version tarball in a new directory. Let us assume that my current path (where LocalSettings.php is located) is /home/mywiki/public_html. Do I create a new subfolder to public_html, i.e. /public_html/new or can I create /home/mywiki/public_html_new, add tarball + images + updated extensions + LocalSettings.php, etc, then run php /home/mywiki/public_html_new/maintenance/update.php and then rename directories as public_html → public_html_old and public_html_new → public_html?
In case something goes wrong, would swapping those directories be enough to work? I guess if dB changes were made, this will not be enough, so I would have somehow to reimport old version mysql dump? Spiros71 (talk) 12:25, 11 April 2023 (UTC)
I think I usually create a new directory alongside the current one, copy/download the extensions etc, swap the folders, then run update.php. Maybe I should swap the last two steps, but I suspect the whole thing will break for a minute or so either way.
Hello. I installed and configured WikiMedia on my Debian 11 with success.
Product
Version
MediaWiki
1.39.3
PHP
7.4.33 (cli)
MariaDB
10.5.18
After the installation i wanted to use short URL to hide the index.php from the site URL, but encountered issues after following the guide provided here [2].
Latest comment: 3 years ago10 comments2 people in discussion
Hello, i want to move my wiki's database to a new database. The server remains the same, the system files are not moved. I just want to change the database. I have now made a backup of the database, simply created a new database, imported my backup there, entered everything in the local settings and replaced the file. Unfortunately my wiki doesn't work that way. Can someone help me? Please don't be confused by the link, version 1.39 is running
The error sounds like you might not have copied the entire db over.
Did the name of the database change? Maybe that might effect the wiki id, which maybe might confuse mediawiki, i am not sure. Bawolff (talk) 22:27, 12 April 2023 (UTC)
Hm okay, i will check this. I can Copy the Database again...
I made a complete backup of the database with the MyOOS Dumper. Then a new database with a different name was created by my provider and the backup was imported there again. The database is not empty in my opinion? The $wgDBprefix value doesn't change when I copy the database, does it? Brender86 (talk) 18:37, 13 April 2023 (UTC)
Briefly, you had an error message about a missing table named "wikitext", which sounds like a DBprefix issue, but now your error message is back to the original one.
Can you compare the contents of slot_roles table in your original and current database? (Select * from slot_roles)
Normally at the very least, the first row is an item with a role_id of 1 and a role_name of 'main'. Can you verify that is in your backup and in your new database?
Also to check - you are using the same version of mediawiki between the old and the new server? [If not, did you run update.php] Bawolff (talk) 18:47, 13 April 2023 (UTC)
Sorry, I changed the database for a short time and the wikitext table is missing there. But it has nothing to do with this matter.
The wiki is still on the same server! I just want to move the database to another one.
The slot_roles table is actually empty in the new database! In the old database, the first line exists with the 1.
Why is that? Is the backup not done correctly or imported?
Latest comment: 3 years ago7 comments3 people in discussion
I finally got Mediawiki installed and get the "first page" on my browser.
When I try to import my database dump from the old server being replaced, I get this error:
MediaWiki internal error.
Original exception: [a34454491edf73167caf4c72] 2023-04-12 19:28:27: Fatal exception of type "Wikimedia\Rdbms\DBQueryError"
Exception caught inside exception handler.
I suspect that the structure of the old v new database is the difference, but what I know about databases is substantially less than what I know about Mediawiki.
Any tips what I've done wrong this time would be appreciated.
Thank. update.php did make a significant difference.
It looks like most of the pages are OK with a few problems. Some images and templates made it to the new installation. And some pages did not make the move at all.
But, I am in a better place now.
Here are the steps I took:
After installing Apache, PHP and Mediawiki on my new PC, I got the "Mediawiki Installed" when I went to http://192.168.1.63/wiki/index.php
Next, I made a database backup, on the existing server:
On the new server, using mysqladmin, destroy the existing database:
mysqladmin -u wikiuser -p drop wikidb
Create a new database
mysqladmin -u wikiuser -p create wikidb
Import the data to the new database
sudo mysql -u wikiuser -p wikidb < dump_of_wikidb.sql
Then
php /var/www/html/wiki/maintenance/update.php
Did I get something in the wrong sequence or did I leave out a step? Any ideas why some pages didn't make the move, or my images or templates? SteveRMann (talk) 16:23, 13 April 2023 (UTC)
Whoosh- right over my head. I know so little about databases that I am dangerous in there.
But the summary is almost verbatim fits my problem:
"This is a critical bug in MediaWiki 1.39, triggered when upgrading directly from 1.32 or older. Upgrade to LTS version 1.35 first."
It also got me to thinking, instead of moving to a new server and upgrading at the same time, why not install V1.32 on my new server first, copy the V 1.32 wiki to the new server, then do the upgrades to V1.35 then V 1.39 on the new server.
Now, I need to find older versions of Mediawiki...
"To users of MediaWiki versions version 1.36, 1.37 and 1.34 and earlier: These versions are no longer supported. Please update to a newer version of MediaWiki."
I really don't want to risk corrupting my existing Wiki that has thousands of ages and hundreds of image files by updating it in place.
It was a slow grind, but I have finally made the transition to the new server. My missing pages, images and templates were all due to one line in the LocalSettings.php:
Latest comment: 3 years ago1 comment1 person in discussion
Hi,
We are setting up Mediawiki for the first time and trying to integrate with Azure for SAML authentication. Following is the environment detail.
MediaWiki-1.39.2
PHP-8.1.17 (fpm-fcgi)
MariaDB-10.6.12-MariaDB
ICU-67.1
Lua-5.1.5
I have installed latest SimpleSAML version - 2.0.3 at /var/simplesaml of our dabian server.
Extension version are as follows.
PluggableAuth-6.2 (68bec9b) 05:51, 28 March 2023
SimpleSAMLphp-5.0.1 (dcf0acb) 14:53, 28 March 2023
Issue:
I have been successfully able to bring up the portal and login using local accounts.
Integrated with Azure IDP and SimpleSAMLphp test with IDP returns all correct attributes.
I have verified that FQDN of media wiki server is specified correctly.
However, when I try to logon using Azure AD user, it takes me to IDP, successfully process logon and then returns to mediawiki specialpage https://my.server.com/wiki/Special:PluggableAuthLogin with error Fatal error authenticating user.
If I then click on login again it logs me in with same error on the front page but then I can continue browsing other pages mediawiki server as usual.
I enabled debug and I see few errors.
[PluggableAuth] Getting PluggableAuth instance
[PluggableAuth] Could not get authentication plugin instance.
[PluggableAuth] In execute()
[PluggableAuth] Getting PluggableAuth instance
[PluggableAuth] Could not get authentication plugin instance.
[PluggableAuth] ERROR: return to URL is null or empty
[DBQuery] LCStoreDB::get [0s] 127.0.0.1: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:pluggableauth-fatal-error' LIMIT 1
Latest comment: 3 years ago3 comments2 people in discussion
On page -> https://www.mediawiki.org/wiki/Extension:Graph/Interactive_Graph_Tutorial if we look at first transcluded source text, we see that comments are interpreted in a strange way (sometimes single letters, other times groups). Since code is to be highlighted (here as Json), there is no uses to explore comments.
<syntaxhighlight lang="json">
{
// <translate nowrap><!--T:5--> We wantto use Vega 2, and specify image size</translate>...
Interwiki links disappeared after upgrading from 1.36.6 to 1.39.0
Latest comment: 3 years ago12 comments4 people in discussion
RESOLVED
The problem is resolved with MW 1.40.0.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Interwiki links are not shown after upgrade from 1.36.6 to 1.39.0.
I guess I know it happens. I look through the HTML code and see some bugs, the code incorrectly closes the tags, see screenshot. Any ideas how to fix it?
Meanwhile I tried to install other skin "Timeless" and interwiki links are there and workd fine. I don't know, may be something wrong with my Vector-2022 skin then?! Fokebox (talk) 15:15, 13 April 2023 (UTC)
Well, I am not sure. But anyway HTML code is there, but interwiki links are not at the page. Any advices how to understand what causes the problem? Fokebox (talk) 14:15, 13 April 2023 (UTC)
Developers surprise as always. Basically I don't need this extension, but need interwiki links. I tried to install UniversalLanguage selector to my wiki farm, but its behaviour is quite strange:
Yes, the interwiki box appeared, once the extension is installed I see the links to other pages and while using the site the interwiki box is empty, no links displayed.
The language selector works fine when user is logged in, i.e. when I go to my english localisation (en.mywikiwebsite.org) the site in english, but as soon as user logged out, the english site works in Russian, in spite of that $wgLanguageCode set appropriate to each localization. Fokebox (talk) 09:49, 14 April 2023 (UTC)
As a developer, i also think vector-2022's dependency on ULS to show language links is rediculous.
Can we do anything with this? I have several bugs with ULS extension. I don't need this extension, but need interwiki links. I would install ULS if it worked fine for my wiki farm. Fokebox (talk) 07:05, 18 April 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Page Layout with Templates?
Latest comment: 3 years ago2 comments2 people in discussion
Hello folks. On my wiki I'd like to recreate page layouts, but with different content. I'd rather not have to copy/paste the code all the time so wondering if that's something I can do with Templates?
I am trying to move a personal wiki to a new server. But I don't want to risk the only working copy of the wiki by doing an upgrade in place.
I thought I could just clone the existing wiki to a new computer then safely do the upgrade there. But, I can't do that since Version 1.32 is no longer available.
I tried upgrading it to Version 1.35, and some of my pages and some of my images and templates are missing.
Again, my knowledge of databases ends at the end of this sentence.
What can I do to recover my missing pages, images and templates short of manually copying the page markups and images from the old database? SteveRMann (talk) 21:20, 13 April 2023 (UTC)
FOUND IT!!!
I compared my old v new LocalSettings.php files. My old file had this entry:
#Disable first-letter capitalization of page names
$wgCapitalLinks = false;
When I put this into my new LocalSettings.php file, my missing pages appeared. Notably, my missing pages started with a lower-case letter. SteveRMann (talk) 02:29, 14 April 2023 (UTC)
LocalSettings.php is one of the files you should just copy across, before running update.php, I think.
MediaWiki 1.39 requires PHP 7.4.3 or higher; you are using PHP 7.3.17.
Latest comment: 3 years ago4 comments2 people in discussion
my site is displaying this error after upgrading MediaWiki 1.32 to 1.39 and Lampp 7.4.27 to 7.4.30-1
**********************************
MediaWiki 1.39 internal error
MediaWiki 1.39 requires PHP 7.4.3 or higher; you are using PHP 7.3.17.
Supported PHP versions
Please consider upgrading your copy of PHP. PHP versions less than v7.3.0 are no longer supported by the PHP Group and will not receive security or bugfix updates.
If for some reason you are unable to upgrade your PHP version, you will need to download an older version of MediaWiki from our website. See our compatibility page for details of which versions are compatible with prior versions of PHP.
********************************************
why is this happening? The only php that exists on this server is the version 7.4.3 version present in the lampp stack. I'm positive there are no other versions of php on installed on this webserver.
Also, I did unpack mediawiki within a subfolder of the /lampp/htdocs folder per these instructions.
Can you create a page named info.php, containing just <?php phpinfo(); and place it in the web directory and browse to it. It should display what version of php your web server is using. Bawolff (talk) 04:05, 14 April 2023 (UTC)
Hi Bawolff,
I got a chance to revisit this issue. I just learned that joomla is where that instance of PHP 7.3.17 is from. I am still not sure why Media wiki is trying to use that version of PHP rather than the one installed on lampp 35.140.104.55 (talk) 21:18, 25 April 2023 (UTC)
It is up to the extension if it supports that. We do not reccomend extensions support that anymore, but if the ext does it will still work. Bawolff (talk) 10:30, 14 April 2023 (UTC)
Is there a program like MediaWiki just without version control?
Latest comment: 3 years ago9 comments6 people in discussion
Is there a program like MediaWiki just without version control?
Everything is basically the same, but just there are no versions; any article can have only one version/mode/state after being edited (generally there is no limit on editing the article but other versions aren't available and aren't stored anywhere). 2A10:8012:19:AD67:81FC:8744:739A:CC41 (talk) 13:30, 14 April 2023 (UTC)
There are several reasons. Old versions may be so inaccurate or wrong to the level it might offend or defame the reader ; I don't want any trace to that, not even in version difference ; furthermore, a courthouse or a lawsuit may push me to vanish something from anywhere in my website. There are more reasons but I just don't want to discuss this here. It's not the purpose of this post. 2A10:8012:19:AD67:81FC:8744:739A:CC41 (talk) 13:50, 14 April 2023 (UTC)
MediaWiki:Common.css is an on wiki page that can be edited by those with the correct permissions. On single-user wiki's that would generally be someone in the bureaucrat group aka first user.
About changing alphabet letter in Wikipedia platform due to new alphabet rules
Latest comment: 3 years ago7 comments3 people in discussion
Dear all. I'm a new administrator of small Kaa.wikipedia.org from recent times. I have a question about changing letter on Wikipedia because of changes in Karakalpak alphabet by the government (+specialists) in 2016. Can I write it here or is there another special place for such kind of questions? Thank you in advance. Qaraqalpaqpan (talk) 04:24, 15 April 2023 (UTC)
Dear Malyacko, thank you for your reply and explanation. I'll try to describe the issue here first. Could you read it and advice me: where it's better to ask for support? My text is here:
Dear Global admins. I'm a local administrator (from december 2022) in a small kaawiki.
I'd like to ask your help about the current usage of the letter «Ii».
Until 2016 year in Karakalpak alphabet the capital letter for «i» (small) was «İ».
And that time it was established in kaawiki configuration (it's working until now) that, if user writes [[italiya]] (with small «i») in the text, the internal link goes to the page İtaliya.
It was correct as per rules of that time.
But in 2016 government and Karakalpak linguists accepted to use «Ii» form instead of «İi».
So now all pages, which starts with «İ» we are moving to new pages with «I».
But that old rule [[italiya]] ===> İtaliya is still working and making uncomfortable the editing process.
Is it possible to fix so that, if we link by writing [[italiya]], it goes to the page Italiya (not to İtaliya)?
Or can you explain how to correct it (if it is possible for me)?
I think this should be reported to phabricator, in the section for tags add "mediawiki-internationalization".
If possible, in the phabricator task link to any discussions on kaawiki about this subject. It helps the people processing the task to know that the change won't take the kaawiki community by surprise.
Dear Bawolff, thank you for your attention to this issue. I will consider your advice also. And try to solve the issue in the near future. Good luck. Qaraqalpaqpan (talk) 02:55, 16 April 2023 (UTC)
Help me!I cannot access a special desk on my extension
Latest comment: 3 years ago3 comments3 people in discussion
debug details:
[error] [b8b2adacbf9d9e89816c3bbe] [no req] PHP Notice: Trying to access array offset on value of type bool
[session] SessionBackend "uld7r9mgcbk92m2net0pbag10qt7eb8d" data dirty due to dirty(): MediaWiki\Session\SessionManager->getSessionForRequest/MediaWiki\Session\SessionManager->getInitialSession/MediaWiki\Session\Session->getToken/MediaWiki\Session\Session->set/MediaWiki\Session\SessionBackend->dirty
He removed my references and altered my text linking to other sources which bear no information on what I was writing.
Mjdestroyerofworlds has gone through everything I wrote in the 1950-1952 section, and destroyed not only the order of the reference material built deleted my references altogether and repeatedly listed Bacon as the only reference. But the information is now lacking truth.
I originally wrote it all and have the reference material to prove it.
What should I do? I dont want to revert to June 2022. I just want to write my section with the correct reference material. How did someone delete my references? Meclazine (talk) 09:34, 15 April 2023 (UTC)
Today, when I attempt to access the Localhost (which is installed the Mediawiki 1.38). I'm informed that I lack some necessary extension from php.
Though I've tried ages, following the official instruction (remove the semicolon of the required extensions in the php.ini). I still failed in the end.
It's hard to express my appreciation to the helpers.
Detail information
Latest comment: 3 years ago5 comments3 people in discussion
MediaWiki 1.38 internal error
Installing some PHP extensions is required.
Required components
You are missing a required extension to PHP that MediaWiki requires to run. Please install:
After un-commenting the lines in php.ini to enable those extensions, you should restart your webserver (apache) or the php-fpm process, depending on your setup. You may also have several php.ini files for different php processes. If in doubt, check Manual:Php.iniCiencia Al Poder (talk) 15:53, 15 April 2023 (UTC)
What web server setup are you using and which official website is this?
Latest comment: 3 years ago4 comments4 people in discussion
Hi, I'm an administrator on the french Wikinews version. Following a community decision, we have established a custom appearance for thumbnail images (you can see the code here). However, we have recently noticed that it is no longer working and I have been unable to find an explanation in the MediaWiki documentation. That's why I am reaching out here. SleaY (talk) 14:13, 15 April 2023 (UTC)
Hi, I'm another admin of French WN. The right link for the CSS : this one ;) To add something useful, it is not related to our wiki but we can find issues like that on Spanish WN, French WP, etc. May that's related to an order of styles importance, or snippet which disallow custom settings for thumbnail ? AirSThib🌌 Cyclist stars cafeteria 🚴14:19, 15 April 2023 (UTC)
Latest comment: 3 years ago3 comments3 people in discussion
On every page of my wiki, it says "From MyWiki" before the content starts. When trying to edit, the "From MyWiki" text is grey and can't be edited. It shows in my wiki since my recent update to 1.39.x. 2003:CB:4F12:5F42:1846:7B19:AD09:95C3 (talk) 15:21, 15 April 2023 (UTC)
Edit the page MediaWiki:Tagline
Some skins disable this. So it could mean you need to update your skin, or you switched skins in the upgrade. Bawolff (talk) 16:32, 15 April 2023 (UTC)
Latest comment: 3 years ago3 comments2 people in discussion
After upgrade I get error: Error 1146: Table KitwarePublicWikiDB.linktarget doesn't exist. I tried to restore the mysql db from a previous dump, but that did not help. I can revert back to 1.38.6, using the same database, and everything works. Just can't upgrade.
I did run ./maintenance/php update.php after the upgrade.
Command is php maintenance/update.php not ./maintenance/php update.php, however if you did the latter you would get an error message.
Was there any errors outputted by update.php? What you are describing sounds like what would happen if update.php failed to run. Bawolff (talk) 22:55, 15 April 2023 (UTC)
Thanks - yes typo. The update did run.
When I revert back to ver 1.38.6 and run the update - I get the same error, but the wiki renders correctly.
Thanks again!!
I get the following:
Table revision contains rev_text_id field. Dropping...Wikimedia\Rdbms\DBQueryError from line 1618 of /projects/public_wiki/PublicWiki/includes/libs/rdbms/database/Database.php: Error 1091: Can't DROP 'user_timestamp'; check that column/key exists
Latest comment: 3 years ago7 comments3 people in discussion
RESOLVED
Issue resolved with MW 1.39.3
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I have wiki farm using one shared database and one files system. Starting from 1.39 I have following warning when running update php script:
SharedDB is deprecated: since 1.21 In new code, use the $wiki parameter to
LBFactory::getMainLB() to access remote databases. Using
LBFactory::getMainLB() allows the shared database to reside on separate
servers to the wiki's own database, with suitable configuration of
$wgLBFactoryConf
Please correct the issue before running update.php again.
If you know what you are doing, you can bypass this check
using --skip-config-validation.
I do have $SharedDB at my LocalSettings.php as I run wiki farm. I have this warning starting from 1.39. Please let me know shall ignore this message? Basically if I run update.php --skip-config-validation the script updates the database.
Huh, not a particularly good error message as LBFactory::getMainLB() is not a replacement for wgSharedDB.
It wont cause a problem right now. There may be problems in future versions of mediawiki.
Doesn't feel good we are deprecating that, given how much it is promoted as the reccomended approach, and without a migration path, and the fact you really can't stop using that feature once you start. ☹️ Bawolff (talk) 09:15, 16 April 2023 (UTC)
Yes, it is a quite strange warning for me, as till 1.38.6 my wiki farm with all its databases were successfully updated without warning. But at 1.39 now I see this message: that SharedDB is deprecated. Fokebox (talk) 09:42, 16 April 2023 (UTC)
Basically the whole warning is a misunderstanding. It can be safely ignored and future versions won't emit the warning. Bawolff (talk) 16:47, 16 April 2023 (UTC)
Note that there's a more recent release of MediaWiki 1.39 than the 1.39.0 you're using, which removes the deprecation notice. You're using an outdated version with some known vulnerabilities. Ciencia Al Poder (talk) 19:13, 16 April 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Category index doesn't work
Latest comment: 2 years ago5 comments2 people in discussion
I have long time issues after migrating my MediaWiki page from one server to another. From web root to subdirectory. It has been fixed by various kludges, and somehow works.
I have recently found out, some images missing, category index doesn't show anything despite there are a hundred pages associated with various categories.
I have tried:
cd /var/www/mediawiki
php maintenance/rebuildall.php
it solved image issues. Category index missing, or must be hardlinked because there is still somewhere old links to previous server.
Check out webpage https://eh.hajes.org/Index and click on the category automotive for example. There should be many pages alphabetically.
How to get rid off of cross-links to old non-existing server. Is it possible to check SQL manually as we do in WordPress, please? Haj3s29a (talk) 10:23, 16 April 2023 (UTC)
Typically this should be fixed by refreshLinks.php
If that is not working, i would suggest looking at php error log for errors, abd failing that, the mediawiki debug log. Ensure also the job queue is working correctly. Bawolff (talk) 16:03, 16 April 2023 (UTC)
Where you put the .htaccess file ? It should be in var/www/html/ not var/www/html/w . Recommended us the https://shorturls.redwerks.org/ to generate the .htaccess . Have you make LocalSettings.php configuration changes like below :
This forum is for support with the web application MediaWiki. You are likely in the wrong place as your question suggests that it is about a different software package than MediaWiki. —TheDJ (Not WMF) (talk • contribs) 09:09, 17 April 2023 (UTC)
Search for a extension
Edit page is blank, while the content shows
Latest comment: 3 years ago2 comments2 people in discussion
Hi ,
I am using Mediawiki 1.30 . I am facing an issue that the content is shown. But when I try edit the content , the edit page shows blank. I don't know. why?
Latest comment: 3 years ago2 comments2 people in discussion
Page for California congressional district 30 (Adam Shiff) show Bob Wilson as first incumbent…from Chula Vista in San Diego County! 216.235.112.203 (talk) 17:44, 17 April 2023 (UTC)
Latest comment: 3 years ago2 comments2 people in discussion
Hello, I'm not sure if thats what this is called. I want to make it so that, for example, if I typed text such as !-awesome example-! , Itll be red and bold using the simple span html thing, but i wont have to paste in the span html into my document i can just do !-text here-! Anything to make it easier to remember for frequent use, thanks Hidsus (talk) 02:41, 18 April 2023 (UTC)
The way to do this is to create a template such as {{important}} (at Template:Important) with the contents <strong style="color:red">{{{1}}}</strong>, which you can then call with {{important|awesome example}} to render your text. There's no simple way to do it with the bang-hyphen delimiter, sorry. SamWilson05:35, 18 April 2023 (UTC)
How to write text boxes like mediawiki.org main page?
Latest comment: 3 years ago2 comments2 people in discussion
Hi!
Want to know how do I write/design text boxes like the one that you can see in this screenshot:
I am trying to connect with someone who can help with developers that are hacking people. Where can I find this kind of help?
Latest comment: 3 years ago12 comments2 people in discussion
RESOLVED
off-topic; wrong place
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Can you describe the issue you are having further, specifically how it is in the context of mediawiki? What you wrote is too vague to know how to direct you. Bawolff (talk) 05:47, 18 April 2023 (UTC)
My IP address is blocked on your page. I an on the same IP address as the people who are hacking me for the last 4 +!years and I can't get any help to stop them. They have stolen my identity my SS check I can't have anything electronic. I'm not sure how I even got here. But when I saw you had blocked the IP address because they went following your guidelines at least you knew they were not doing things like they should.
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
site down
Latest comment: 3 years ago5 comments2 people in discussion
hi! my site has been fine lately but suddenly in a short time I realize that it has suffered a down, I do not understand what is happening I have checked the files of the site and mediawiki does not seem to be missing anything, I checked if the problem is from the domain and it is pointing to the server, I do not understand this fall of this 403 error, I have reviewed the logs of the web hosting and it does not say anything, what could be happening? this happens in all browsers.
Yes, I was able to realize that last night someone was able to hack the site redirecting it to a false window with a non-existent url, I don't know how that happened, I still think that can continue, I don't know if it's a mediawiki problem, or the hosting, but I hope this doesn't create a problem for the long Uvas magicas (talk) 22:40, 18 April 2023 (UTC)
"Page not linked to Wikidata" at the bottom of an imported InfoBox template from Wikipedia
Latest comment: 3 years ago1 comment1 person in discussion
I am having a slight problem with infoboxes. I imported the fictional character template from Wikipedia, with all the required templates. Unfortunately, even though the infobox shows up and loads the labels and images, it has a text at the bottom which says that the page is not linked to wikidata. How can I remove this? I suppose I'd have to modify the wikidata module, but it seems too complicated for what it is, so I guess there's an easier method.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
@Malyacko: as mentionned, my question regarded Extension:Graph, which is a MediaWiki problem. I know what is going on now thanks to TheDJ's answer.
I think the problem with the coords was probably from MediaWiki as well, maybe linked with the Graph problem (I think it is resolved but it probably had to do with javascript). Espandero (talk) 07:59, 19 April 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
translators: how to grep the page sources rather than using search box ?
Latest comment: 3 years ago1 comment1 person in discussion
Hi all,
Here is my use case :
1. open -> https://www.mediawiki.org/wiki/Manual:$wgConfigRegistry?oldid=4421291
2. open tab Modify
3. look at
<translate><!--T:3--> Registry of factory functions to create {{ll|Manual:Config.php|Config}} objects.</translate>
4. I want to adapt tvar to the new form:
<translate><!--T:3--> Registry of factory functions to create {{ll|Manual:Config.php|Config}} objects.</translate>
5. I wonder if there are still other sources where '...' is present to extend the replacement.
How to do that ?
If I use the search box, I get rather a list of topics related to what I m interedted in.
But I need to go deeper and access the wiki code to make a kind of 'grep' with regex on wiki pages.
It is halfway between translator and source developper needs.
and i guess i should use a developper access but then, how do i move in the system ?
Any idea ? Thanks.
structured discussions: where is the link to article ?
Latest comment: 3 years ago1 comment1 person in discussion
Hi all, I want to reference article 13 of the discussion page -> https://www.mediawiki.org/wiki/Extension_talk:Graph/Demo but due to the new form of discussions, I no longer see the menu on my laptop for the link (previous 'Copy the link') and if i use the title of the TOC, i lost the reference when the title changes. How to solve that permalink ? Thanks.
What I have noticed, that when I hide contents menu and scroll the page down, then click the menu sign the contents itself is out of the menu box, see screenshot what I mean:
MediaWiki requires the PSR-3 logging library to be present
Latest comment: 3 years ago7 comments2 people in discussion
MediaWiki requires the PSR-3 logging library to be present. This library is not embedded directly in MediaWiki's git repository and must be installed separately by the end user. Please see the instructions for installing libraries on mediawiki.org for help on installing the required components.
Fatal error: MediaWiki requires the PSR-3 logging library to be present. This library is not embedded directly in MediaWiki's git repository and must be installed separately by the end user. Please see the instructions for installing libraries on mediawiki.org for help on installing the required components. in D:\xampp\htdocs\mediawiki-1.38.2\includes\Setup.php on line 132
this message appears without evident modifications. I try to use composer but it didn't change anything. Is there a way to fix it? Thanks a lot. Basilew33 (talk) 14:14, 18 April 2023 (UTC)
It should be included automatically if you got your mediawiki from Download. Normally you only have to install it yourself if using git.
Did you download the tar file or the zip file? 7zip on windows has issues with tar files that have long file names, so try the zip file instead if you were using the tar download. Bawolff (talk) 15:07, 18 April 2023 (UTC)
Hello thanks for your answer.
In fact my mediawiki worked on d:\xampp for a few months without problem. A few day ago i received suddenly this message.
I would not reccomend calling composer require, since it is best to rely on the composer.json provided with mediawiki. (Just saying generally. I dont think that caused any problems for you)
Generally this error happens if Psr\Log\LoggerInterface doesn't exist. If composer installed it, i am at a loss. Bawolff (talk) 15:39, 18 April 2023 (UTC)
this the php file where the error occurs :
if ( !interface_exists( LoggerInterface::class ) ) {
Hello Bawolff, i found the solution in setup.php. as i have 2 mediawikis i comment a line in this file and doing it i also comment the line use... it works fine now. Your help really gave me the clue. Thanks a lot. Basilew33 (talk) 07:36, 20 April 2023 (UTC)
How to embed external Link with picture preview
Latest comment: 3 years ago2 comments2 people in discussion
Hello,
we are using MediaWiki for company internal purposes e.g. our organigram, process flows etc.
We are currently using Viflow, where processes and organigrams can be designed an embedded into websites. every process has its own unique link. But how can I embed the link within Media Wiki AND preview the "picture"/preview Organigram / process flow? Is there any way to make that possible?
Or do I have to create a picture of each process, include picture and link separately (which makes it uncomfortable to maintain - every time the process changes, I have to change the picture).
Many social sites display a small excerpt and an image of the external link when posted. However, MediaWiki doesn't provide this functionality, and I don't know of any extension that would implement that.
However, you can embed any external image into MediaWiki by pasting the URL directly on a page (without any other markup), but this will only work for URLs that end in a common image format extension (.png, .gif, jpg), and whitelisted URLs by default. Check Manual:$wgEnableImageWhitelist for instructions.
Basically, you may be able to copy the URL of the picture of the organigram and paste on MediaWiki without the need to upload it. The image will be requested directly from your browser to the original URL (MediaWiki doesn't proxy the request). Ciencia Al Poder (talk) 11:48, 19 April 2023 (UTC)
[New MediaWiki user] Cannot run installation - Fatal error in setup file
Latest comment: 3 years ago2 comments2 people in discussion
Hello guys.
This is my first installation of MediaWiki. I created subdomain for it but after uploading the files and entering the address I can see only
Fatal error: Uncaught Error: Call to undefined function putenv() in /data/web/virtuals/274312/virtual/www/domains/wiki.salamanderguild.cz/includes/Setup.php:288 Stack trace: #0 /data/web/virtuals/274312/virtual/www/domains/wiki.salamanderguild.cz/includes/WebStart.php(86): require_once() #1 /data/web/virtuals/274312/virtual/www/domains/wiki.salamanderguild.cz/mw-config/index.php(38): require('/data/web/virtu...') #2 {main} thrown in /data/web/virtuals/274312/virtual/www/domains/wiki.salamanderguild.cz/includes/Setup.php on line 288Vousatýr (talk) 16:36, 19 April 2023 (UTC)
Latest comment: 3 years ago1 comment1 person in discussion
Yesterday the Wikimedia Foundation noted that in the interests of the security of our users, the Graph extension was disabled. This means that pages that were formerly displaying graphs will now display a small blank area. To help readers understand this situation, communities can now define a brief message that can be displayed to readers in place of each graph until this is resolved. That message can be defined on each wiki at MediaWiki:Graph-disabled. Wikimedia Foundation staff are looking at options available and expected timelines. For updates, follow the public Phabricator task for this issue: T334940
Latest comment: 3 years ago1 comment1 person in discussion
Hi,
So recently we've changed our ISP, and so did my machines IP addresses.
I have a MediaWiki setup via docker (with a mariadb container), on another machine. The problem is that the wiki container can't seem to reconnect with the database container.
I was able to re-configure the LocalSettings file in order to update the wgServer address, but now it seems that i can't find my pages when i login. When I arrive on the main page, they ask me to recreate it.
I opened the ports of the mariadb container to make sure that the pages exists, and they seem to still do.
Is there a know procedure to restore my containers back (I use Portainer btw) or a way for me to retrieve the texts on the pages?
Interwiki links dependancy from ULS extension at Vector-2022 skin and MW 1.39.
Latest comment: 3 years ago1 comment1 person in discussion
Hi!
Unfortunately interwiki links has dependancy from ULS extension from MW 1.39. ULS extension works not so properly at my wiki farm, And it is quite strange that only Vector-2022 skin has this dependancy as other skins displays interwiki language links correctly.
I have different localisations of my wiki farm that has common shared database and common files of mediawiki. All localisations made just like in wikipedia: ru.mywikifarm.org - Russian, en.mywikifarm.org - English, es.mywikifarm.org - Spanish etc. The $wgLanguageCode is determined for every localisation, i.e for English it is $wgLanguageCode = "en";, for $wgLanguageCode = "ru"; is for Russian etc. The issue is that the language of all website is correct for logged in user, but when it is a guest (non logged-in user) all localisations are in Russian, i.e. en.mywikifarm.org - is in Russian, es.mywikifarm.org - is in Russian etc. When I switch off ULS extension then all works fine for logged in user and for guests (non logged-in users). And I don't know how to solve this issue. Anybody can help to resolve it?
The second issue is following: When ULS extension is on! I do see the interwiki box showing the number of languages at my Vector-2022 skin, but when I click the box - sometimes the links are shown, and sometimes the box is empty, in spite of that HTML code is fine - I see at HTML this links and text. But it works all strange, sometimes there are links and sometimes there aren't any. And it is difficult to say why it happening and how to debug this.
Sometimes the links are shown. Basically after switching on the extensionAnd then they disappears suddenly. Basically after using the website, after logging-in/logging-out, editing pages etc.
Latest comment: 3 years ago1 comment1 person in discussion
Hi, we have a custom mediaWiki page and would like to use a references list like on Wikipedia. I have tried to follow https://en.wikipedia.org/wiki/Template:Reflist, but it doesn' work. {{Reflist}} just shows Template:Reflist in red saying the page doesn't exist. Should I enable some setting? Or install some library/template? If so, how can I do that? Thank you. BJongCC (talk) 08:04, 20 April 2023 (UTC)
Customize URL
Latest comment: 3 years ago4 comments3 people in discussion
If you mean the "localhost" part, you need to buy a domain name, change the A record to your server's ip address and change $wgServer. For the part after localhost, do the short url page. Bawolff (talk) 11:31, 20 April 2023 (UTC)
Mediawiki SSO with Azure AD Authentication
Latest comment: 3 years ago5 comments2 people in discussion
Latest comment: 3 years ago5 comments2 people in discussion
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Is it possible to create image alias?
I mean having 2 names for 1 image.
For example having those 2 links targeting the same file:
Many of the citation templates "don't have documented parameters"
Latest comment: 2 years ago6 comments2 people in discussion
A while back I had imported many Citation templates from wikipedia (such as Cite web, Cite book, Cite Journal, Cite conference, etc). Recently though for some reason while editing an article on my wiki, when trying to use these templates, every one I tried to use (except Cite book for some reason it still has "documented parameters") said:
This template has no documented parameters and may be intended for use without them.
Which is weird because before every one of them had parameters to input. I've tried readding Template:Documentation, Template:Cite web, and the Module/Citation/CS1, but nothing changed, every time I would try to put in those citation templates it gave no parameters, even though if you go to their respective pages they list all the parameters, etc. If anyone wants to check out its on http://wwii-archives.orgGuillaume Taillefer (talk) 23:20, 20 April 2023 (UTC)
Is there someone who knows how to resolve this issue? I don't think it will be practical for any user to constantly have to reconsult the template page to know what the parameters are Guillaume Taillefer (talk) 15:46, 12 May 2023 (UTC)
my account was mysteriously renamed and then deleted. i want it back. please help.
Latest comment: 3 years ago2 comments2 people in discussion
you haven't told us which account that would be and on which website...... But this forum is for support with a software package, so I doubt you are in the right place. —TheDJ (Not WMF) (talk • contribs) 14:51, 21 April 2023 (UTC)
rest
Latest comment: 3 years ago2 comments2 people in discussion
But fetching the pages over HTTP doesn't seem like a great idea. I need your help in getting the raw html for all words. I was checking the wiki dumps but I wasn't sure which file should I be using and also the format of the files wasn't very user-friendly.
It would be really great if you could help me with this.
Latest comment: 3 years ago2 comments2 people in discussion
Hi, I need advice on how to fix the error in the database, as I need to create several user accounts to use as bots. Lomeno 24 (Contact mehere) 04:32, 23 April 2023 (UTC)
Latest comment: 3 years ago4 comments2 people in discussion
I want to be able to upload anything and everything regardless of "security issues". The only person or persons that can access the server are through lan on my property. I am using Mediawiki as a organizational tool for myself. Is there any configuration I can set that would allow this? Wildfirebill (talk) 23:58, 23 April 2023 (UTC)
Attempted to upgrade Mediawiki from 1.35 to 1.39 through Softaculous and now there is an error
Latest comment: 3 years ago4 comments3 people in discussion
RESOLVED
Upgraded relevant extensions and it removed the errors.
Only error remaining is a Fatal Error - which I posted another enquiry about as it is different to these Extension upgrades
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi
MediaWiki version 1.39 now on the server but database is 1.35
PHP version 7.4.33
Database type and version MySQL 15.1 i believe ( i had a friend who offered me guidance to access terminal to check versions, but i forgot note down the version of the database )
I attempted to run an upgrade through Softaculous, from 1.35 to 1.39
it got to the screen where it said
I then attempted to click on the link and it came up with this error
Anyone have any ideas?
This is now beyond my technical experience as I'm not a programmer.
the website won't load now www.beyondangkor.org as according to the tech support at my hosting they said Softaculous has actually upgraded to 1.39 but it seems the database files are not at that version.
I was misled when I had started the wizard, as in the wizard on Softaculous it didn't actually state that it was "upgrading" it called it a "check" of some sort, so I had originally thought it was doing a back up (as it asked how i wanted to back up "full backup") and inadvertently it actually ran the server upgrade for mediawiki.
is there a way to fix this?
would it be best to upgrade the database OR would it be better to downgrade the server from 1.39 to 1.35?
I've tried reading up on the errors, and ways to upgrade the database but it is all very confusing for me now.
I tried addressing the social profile error by changing the way extensions are loaded as it was using the older php command
to
wfLoadExtension( 'SocialProfile' );
wfLoadExtension( 'EditCount' );
and that didn't work, so I removed the wfLoadExtension( i added for Social profile and re-instated the original require once line
but now it comes up with a different error when i try to open up www.beyondangkor.org
Fatal error: Uncaught Exception: Unable to open file /home/beyondan/public_html/skins/Modern/skin.json: filemtime(): stat failed for /home/beyondan/public_html/skins/Modern/skin.json in /home/beyondan/public_html/includes/registration/ExtensionRegistry.php:199 Stack trace: #0 /home/beyondan/public_html/includes/GlobalFunctions.php(86): ExtensionRegistry->queue('/home/beyondan/...') #1 /home/beyondan/public_html/LocalSettings.php(167): wfLoadSkin('Modern') #2 /home/beyondan/public_html/includes/Setup.php(218): require_once('/home/beyondan/...') #3 /home/beyondan/public_html/includes/WebStart.php(86): require_once('/home/beyondan/...') #4 /home/beyondan/public_html/index.php(44): require('/home/beyondan/...') #5 {main} thrown in /home/beyondan/public_html/includes/registration/ExtensionRegistry.php on line 199
and when i try to run the upgrade link from the softaculous
I have not made any other changes in the localsettings or anywhere else
It seems like SocialProfile is not compatible with your version of PHP. Suggest disabling it temporarily to complete the update and then look further into SocialProfile
I removed the skin, and the "social profile error" appeared
I disabled the Social Profile in the local settings for the time being,
and I was able to run the database upgrade through the Softaculous, and it looks like it is upgraded.
Now when i open www.beyondangkor.org a different error comes up
Deprecated: Use of SkinTemplateNavigation hook (used in replaceTabs) was deprecated in MediaWiki 1.39. [Called from MediaWiki\HookContainer\HookContainer::run in /home/beyondan/public_html/includes/HookContainer/HookContainer.php at line 137] in /home/beyondan/public_html/includes/debug/MWDebug.php on line 381
Deprecated: Use of SkinTemplateNavigation hook (used in CargoRecreateDataAction::displayTab) was deprecated in MediaWiki 1.39. [Called from MediaWiki\HookContainer\HookContainer::run in /home/beyondan/public_html/includes/HookContainer/HookContainer.php at line 137] in /home/beyondan/public_html/includes/debug/MWDebug.php on line 381
Deprecated: Use of SkinTemplateNavigation hook (used in CargoHooks::addPurgeCacheTab) was deprecated in MediaWiki 1.39. [Called from MediaWiki\HookContainer\HookContainer::run in /home/beyondan/public_html/includes/HookContainer/HookContainer.php at line 137] in /home/beyondan/public_html/includes/debug/MWDebug.php on line 38149.198.120.176 (talk) 23:01, 25 April 2023 (UTC)
So after reviewing the above, I realise it is something to do with the "Cargo" Extension.
So I've just downloaded the updated Cargo, and this error now appears
Fatal error: Cannot access non-public property Parser::$mStripState in /home/beyondan/public_html/includes/debug/DeprecationHelper.php on line 202 B1Bayon (talk) 12:00, 26 April 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Make my wiki display search thumbnails
Latest comment: 3 years ago2 comments2 people in discussion
Vector 2022 has image thumbnails that appear during searches.
They are not appearing on my wiki, however.
Can anyone help me figure out why and how I can fix that. This is the closest thing I've been able to find, but it still doesn't seem to be the solution.
Latest comment: 3 years ago2 comments2 people in discussion
We have a captcha on register page on cs.wv, but still a lot of spam accounts are being registered. How is it possible? Is there any other settings we may use to lower this number? Juandev (talk) 08:41, 25 April 2023 (UTC)
Latest comment: 3 years ago1 comment1 person in discussion
Hi!
I know that extension Extension:Page_Forms allows to create a form where user can specify a preloaded template for the page. My question is it possible to make links (like in the navigation tab template) to non-existing page that will use specified template while being created?
I just installed this site new.. the only thing i did was
Change the url from index to wiki/main_page
Enable Mobile View
close regristration as per under construction everything is working fine... But Now i cant install any new extention cause once i donwload the file on extensions.. And i try to activate it from localsetting, my website wont load any more.. i have tried diffrent extension.. Same error... dont know where it is from..
Here are the only code i added
# Enabled skins.
# The following skins were automatically enabled:
wfLoadSkin( 'MinervaNeue' );
wfLoadSkin( 'MonoBook' );
wfLoadSkin( 'Timeless' );
wfLoadSkin( 'Vector' );
# End of automatically generated settings.
# Add more configuration options below.
# Enable pretty URLs
$wgArticlePath = "/wiki/$1";
# Enable URL rewriting
$wgUsePathInfo = true;
$wgTmpDirectory = "/home/thebnade/tmp_yizitn";
# Allow only logged-in users to view and edit pages
Wrapping a mediawiki site with a third party login interface
Latest comment: 2 years ago4 comments3 people in discussion
Hi I am exploring ways of controlling access to various namespaces in MediaWiki as I gather it is not really designed with security and granular access control in mind.
Is it possible to "whitelist" entire template namespaces (or blacklist other template namespaces)?
I had in mind a fairly rigorous structure where each page in the main space was built out of transcluded templates from whilelisted or non-whitelisted template spaces. for example, the main page "Cat Story" would contain:
{{Part 1|Cat Story}}
{{Part 2|Cat Story}}
which in turn generates two templates: [[Template:Cat Story]] which will be in a whitelisted "Template" namespace, and will contain the text:
"'The Cat Sat on the Mat' is not much of a story, but"
and [[Securetemplate:Cat Story}} which will be in a non-whitelisted "Securetemplate" namespace, and will contain the text:
"'the Cat Sat on the Dog's Mat' — Now THAT is a story."
Registered visitors who visit to the page "Cat Story" would see:
"'The Cat Sat on the Mat' is not much of a story, but 'the Cat Sat on the Dog's Mat' — Now THAT is a story."
whereas unregistered visitors with only whitelisted access would see:
"'The Cat Sat on the Mat' is not much of a story, but ... SORRY! To see the punchline, you have to log in, which you can do <here>"
Be sure to disable (or split) parser cache if doing something like this.
Be wary of other extensions that may break your access control, things like the recent changes RSS feed, search, etc. Bawolff (talk) 06:41, 26 April 2023 (UTC)
Thanks for your help and advice. FYI I have found a way of doing this by using two wikis and transcluding between them. ElectricRay (talk) 14:01, 15 May 2023 (UTC) The open access one raw-transcludes to the restricted one, and you just wrap more secure content around that. ElectricRay (talk) 14:01, 15 May 2023 (UTC)
Using Hooks ParserFirstCallInit in extension.json?
Latest comment: 3 years ago5 comments3 people in discussion
I am using MW 1.35.5 and PHP 7.4.33 and MariaDB 10.3.
I am debugging a simple tag extension for <haskell> and <hask>, but I get different results depending whether I do the following in my wikitext:
This works (substituting <syntaxhighlight lang="haskell" inline> when the following text is <hask>xyz</hask>):
You can try Parser::recursiveTagParseFully. But maybe there is another, better solution. Rather than creating an alias for the syntaxhighlight tag, you could wrap it in a template.
Like {{Hask|xzy}}. Within the template you can use the {{#tag:}} parserfunction to delegate to syntaxhighlight.
Be aware that syntaxhighlight itself has a very good VisualEditor integration, while neither a custom wrapper tag, nor a template do have that. Osnard (talk) 05:57, 26 April 2023 (UTC)
Parser::recursiveTagParseFully would not be the correct thing to do in this situation since full rendering is not expected in that place.
Latest comment: 3 years ago2 comments2 people in discussion
I installed mediawiki on the computer and wrote many pages, templates, categories, etc. in it, after a while I reinstalled the computer and copied the wiki folder to a flash card.
After reinstalling I could not access the old material from the previous computer in any way.
Is there a way to access the material? The material is very important to me and I invested a lot of time in it. מוטל'ה (talk) 21:38, 25 April 2023 (UTC)
MediaWiki stores its content in a database (usually MySQL, maybe SQlite), which is not necessarily located in the "wiki folder". If you didn't backup the database as well, you may have lost your data. Osnard (talk) 05:41, 26 April 2023 (UTC)
Upgrade from 1.38.4 to 1.39.3
Latest comment: 3 years ago4 comments3 people in discussion
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello Anyone and Everyone,
I am attempting an update, as the subject of this message suggests, and have run into a few issues.
I'm concerned that my use of some extensions may have resulted in a larger problem within my mediawiki installation, specifically Flagged Revisions. I would definitely like the feedback of an expert.
Two obvious issues, that may be symptoms, but require fixing are:
1) After update.php is run, uploaded files still go to my old media wiki image folder. As suggested by mediawiki i use symlinks on my linux server to point apache to the active version of mediawiki. I have looked everywhere to find how the path to the old image folder is still being used but have come up empty handed.
2) The version of media wiki does not reflect 1.39.3 in the Special:Version Page, it is still 1.38.4. This is how i know something weird is going on.
I have backups of files and databases and have attempted a few different update paths, none have worked.
It might be a cache problem. When I updated from 1.38.4 to 1.39.3 I also had errors reffering to old version of mediawiki, but as soon as old folder with MW was completely removed the problem resolved. Fokebox (talk) 07:05, 26 April 2023 (UTC)
This doesn't sound flaggedrevs/extension related.
> As suggested by mediawiki i use symlinks on my linux server to point apache to the active version of mediawiki.
In my case I used the symlink "/var/www/mywebsite" to point to "/var/www/mediawiki-newverision" and then left my old version /var/www/mediawiki-oldversion" on the file system in case i had to rollback my changes.
Well, as @Fokebox speculated, once i removed my oldversion folder from the syatem, everything updated accordingly. I went weeks wondering what was going on and and it wasn't until i removed the directory did i see my version actually update.
But no debugldap.log is generated. I restarted Apache service, but no debugldap.log file is created. Am i setting something wrong?
The only debug file i can get is the one configured as follows:
$wgShowExceptionDetails = true;
$wgDebugToolbar = true;
$wgShowDebug = true;
$wgDevelopmentWarnings = true;
$wgDebugLogFile = "$IP/debug.log";
At this file i get the error you saw before:
Login failed in primary authentication because no provider accepted
I appreciate your help. I don't know where to look for the error. Php scripts seem to work properly. It seems a problem with Apache or something else i don't understand.
$IP is probably not writeable by the webserver user. Try to place the debug file into $IP/cache/debugldap.log or /tmp/debugldap.log. Osnard (talk) 07:29, 2 May 2023 (UTC)
Hello Osnard,
Thanks very much for your help on this. I tried the following paths:
d:\temp\debugldap.log
$IP/cache/debugldap.log
$IP/debugldap.log
but none of them worked. The debugldap.log file isn't created.
This installation is over Microsoft Windows. The webserver httpd is running with the user SYSTEM.
I checked that SYSTEM user can write and read on those directories.
It seems like if this code isn't executed or it'snt taked into account:
Possibility of searching for certain content only?
Latest comment: 3 years ago1 comment1 person in discussion
Hello everyone,
I am a fairly new user of the MediaWiki and I was wondering if someone here knows a solution to what I am trying to achieve, since I am inexperienced and don't know which possibilities this software has to offer.
My wiki contains pages about many parts of a machine. Each page includes a table with past experiences about the part, especially which problems they have caused. One column contains the symptoms which have occurred at the time.
Would there be a possibility of implementing a search just for this symptom column of all the tables of each page or a way to tag the symptoms in the column so that they can be all displayed on a different page (preferably this)?
Protection of a category and all pages within that category
Latest comment: 3 years ago3 comments2 people in discussion
Is there a way to put the category: example in full protection and all the pages that are in this category will be under full protection? Sokote zaman (talk) 19:52, 26 April 2023 (UTC)
Not in mediawiki core. You would need to make an extension.
Latest comment: 3 years ago1 comment1 person in discussion
The Haskell wiki (https://wiki.haskell.org) is small and lightly used, but I'd like to create a test version of the full database that doesn't leak any secrets (e.g., login credentials) for use by volunteers that don't need administrator access to the secrets. Only a few test user accounts would be needed. Is there a checklist or tool to create this kind of environment? Thanks. HowardBGolden (talk) 20:47, 26 April 2023 (UTC)
Where is the icon explainer page?
Latest comment: 3 years ago2 comments2 people in discussion
I'm reading Another Eden Wiki and I am frustrated that the icons for the various elements are like a black box, no alt text, and the names of the png files don't offer any clue as to what they are about. I would like a page that shows all the icons (elements mostly, but also item properties) so I can look up what I am seeing. This website was absolutely not designed to be accessible. Which one is earth? Air? Water? Fire? Thunder? Crystal? 98.147.251.188 (talk) 01:13, 27 April 2023 (UTC)
Upgraded MW 1.35-1.39, upgraded all relevant extensions, upon upgrading Cargo I get a Fatal Error
Latest comment: 3 years ago1 comment1 person in discussion
RESOLVED
Updated TemplateStyles
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Upgraded MW 1.35-1.39, upgraded all relevant extensions (which solved the other issue that was posted the other day), upon upgrading Cargo I get a Fatal Error
Recently upgraded the Extensions that were causing errors in my wiki, along with the Cargo Extension.
Upon upgrading each extension, different error messages disappeared from the wiki.
However after completing the Cargo Extension Upgrade, along with running the php update.php command I now get a Fatal Error as shown below on certain pages of my wiki.
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
fatal error during installation MediaWiki 1.39.3
Latest comment: 3 years ago2 comments1 person in discussion
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi,
during the installation of MediaWiki I get the following fatal error:
<b>Fatal error</b>: Class MediaWiki\Parser\Parsoid\Config\SiteConfig contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Wikimedia\Parsoid\Config\SiteConfig::getMWConfigValue) in <b>C:\inetpub\wwwroot\mediawiki\includes\parser\Parsoid\Config\SiteConfig.php</b> on line <b>64</b><br />
After installing "MediaWiki 1.39.3" I got the same error:
[0873bd4746a1a88e42170754] 2023-04-29 15:16:59: Fataler Ausnahmefehler des Typs „TypeError“
When I enable $wgShowExceptionDetails then it shows the same as before:
[eed8b0e6ea1709a178d38b0d] /UntermainWiki/index.php TypeError: MediaWiki\Session\BotPasswordSessionProvider::__construct(): Argument #1 ($grantsInfo) must be of type MediaWiki\Permissions\GrantsInfo, array given, called in /.../UntermainWiki/vendor/wikimedia/object-factory/src/ObjectFactory.php on line 247
Backtrace:
from /.../UntermainWiki/includes/session/BotPasswordSessionProvider.php(47)
The rebuildall.php and runJobs.php files were run as recommended by the experts - it didn't help.
I'm a little confused by the fact that when I view the window, Review your changes \ Wikitext I see that CMW automatically adds a colon before the text:
Perhaps there is confusion between adding a category and linking to one? What happens if you add using the wikitext editor? Bawolff (talk) 14:53, 27 April 2023 (UTC)
Thank you so much for the answer.
After reading your post I tried another edit, and it solved my problem.
Before this, I used the Edittab to add a page to a category. I used two square brackets and I got a service window asking me to enter a wikilink. And this link was always automatically preceded by a colon.
After I read your post, I tried to edit in the Edit Source tab. I enter all the links in the required format and everything works for me.
Thank you for your help. And sorry if my problem was very simple and I couldn't figure it out first!
Downloaded what exactly (name)? From where (URL)? Please also see "Post a new question" in the sidebar. Thanks. Malyacko (talk) 17:13, 27 April 2023 (UTC)
Page still showing in search after deletion
Latest comment: 3 years ago3 comments2 people in discussion
Hello,
I had a page called Interview:Chat with John Doe
Then created a namespace Interview: in local settings.
Now if I delete the Interview:Chat with John Doe it still stays in the search results and I can't get rid of it.
I have tried deleting it and recreating in the proper namespace but it still shows in the search results for the main namespace.
Does anyone have any advice on getting rid of the page in the search bar until someone types in the namespace Interview:
Latest comment: 3 years ago2 comments2 people in discussion
OS: Fedora 38 (all below packages from Fedora repo)
Webserver: Nginx 1.24
DB: MariaDB 10.5.18
MediaWiki version: 1.39.3 (All plugins from MediaWiki plugin download for 1.39)
LDAP Authentication2: 2.0.0
LDAPAuthorization: 1.1.0
LDAPGroups: 1.03
LDAPProvider: 1.0.5
LDAPSyncAll: 1.0.0
LDAPUserInfo: 1.0.0
PluggableAuth: 6.2
I have the LDAP settings apparently working - I can log in using our local LDAP server and the groups are mapped into mediawiki.
What I'm trying to do is map a specific LDAP group to have administrative rights (ex: being able to edit MediaWiki:Loginprompt page).
However, even after manually assigning "Administrator" to a user, they still cannot do administrative functions like above.
Is there a setting or something I can add to LocalSetup.php or ldap.json file to help with this?
Example:
When I installed MediaWiki, manually added user "Alisonken1" as administrator
After getting LDAP working, login as "KenRoberts" using domain credentials
Update LocalSettings.php to include "ITAdmin" group with same rights as "sysop" (plus some others from Administrator listing)
Check group permissions and "ITAdmin" has same permissions as "Administrator"
User page indicates "KenRoberts" is "ITAdmin" group
Manually update "KenRoberts" and add to "Administrator" group
User page indicates "KenRoberts" now part of "ITAdmin", "Administrator" groups
User "KenRoberts" still cannot do Administrator actions like "Alisonken1" can.
In order to do administrator tags, comment LDAP extensions and login locally as "Alisonken1" - after finishing admin tasks, uncomment LDAP extensions so others can log in again.
I don't think this is related to LDAP. Apparently the LDAP based group sync does work. That's all the plugin does. When it comes to _enforcing_ the permissions assigned to a group that's completely MediaWiki core. Osnard (talk) 06:58, 28 April 2023 (UTC)
Oracle functions missing, have you compiled PHP with the --with-oci8 option
Latest comment: 3 years ago10 comments5 people in discussion
When i access few pages in medaiwki i am getting below error
"Cannot access the database: Oracle functions missing, have you compiled PHP with the --with-oci8 option? (Note: if you recently installed PHP, you may need to restart your webserver and database"
New versions of mediawiki dropped oracle support. On old version of mediawiki you need to install the oracle php extension.gg Bawolff (talk) 20:39, 1 May 2023 (UTC)
actually we are mysql in our application but i am not sure why error is throwing with "oracle compiler error" Santoshkaif (talk) 15:16, 5 May 2023 (UTC)
Latest comment: 3 years ago3 comments2 people in discussion
Hello - I just rebuilt my Fedora 37 system into a Fedora 38 system. Mediawiki upgraded from 1.38.6-1. Did the normal backup/restore procedure for both content and database with no issues. However, whenever I try to access the site with a browser, I get something like this:
[ZE2yd42_R1IQsuyHvTpPzAAAAM8] /wiki/index.php?title=Special:SpecialPages MWException: Error: invalid magic word '='
Backtrace:
from /usr/share/mediawiki/includes/MagicWord.php(129)
Bawolff - Thank you so much for your excellent advice, my wiki is working and happy now. Details follow.
To rebuild the localization cache I did these 2 commands:
cd /var/www/html/wiki/maintenance/
php rebuildLocalisationCache.php
and the last line of output was:
468 languages rebuilt out of 469
It did not fix the problem. Having been a victim of 'Murphy's Law' too many times to count, I thought maybe the problem might be in the one language that did not rebuild. So I did this:
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I have just recently upgraded from 1.35 to 1.39 and I cannot now access "edit source". I suspect this is something to do with settings in the localsettings.php file. I get a “This page isn’t working [Site] is currently unable to handle this request. HTTP ERROR 500.” warning. this is what i have in the local settings file as my configuration options.