Project:Support desk

About this board

Welcome to the MediaWiki Support desk. This is a place where you can ask any questions you have about installing, using or administrating the MediaWiki software.

(Read this message in a different language)

See also

Before you post

Post a new question

  1. To help us answer your questions, please indicate which version of MediaWiki you are using, as found on your wiki's Special:Version page:
  2. If possible, add $wgShowExceptionDetails = true;error_reporting( -1 );ini_set( 'display_errors', 1 ); to LocalSettings.php in order to make MediaWiki show more detailed error messages.
  3. Please include the web address (URL) to your wiki if possible. It's often easier for us to identify the source of the problem if we can see the error directly.
  4. To start a new thread, click the box with the text "Start a new topic".

Why I can not regist to https://vi.wikipedia.org/

2
DellosCao (talkcontribs)

I need support to know that is it Create an account on https://vi.wikipedia.org/ system still working ?

After successfully registering with the user name pass and email it redirects to the notification page which notices that I can not edit other pages yet until some date point. it is fine but how about login to the created account? There is no email verification or something else. I tried to log in using the saved Username and password but failed.

Bawolff (talkcontribs)

You logged in here, and we use the same account system as vi.wikipedia.org

Reply to "Why I can not regist to https://vi.wikipedia.org/"
RrabadanPEI (talkcontribs)

Hello whomever is out there i signed into my free phone account and ended up here what am i suppose to learn out here

Wladek92 (talkcontribs)

nothing common here with telephone fees! which links have you followed ?

Bawolff (talkcontribs)

No idea, but it sounds like you are in the wrong place.

Reply to "Why am i here?"

MediaWiki:GlobalBlock Extension

2
Nexovia (talkcontribs)

Hello, I have followed all instruction as tolded in Extension:GlobalBlocking but when after I added the wfLoadExtension and entered my wiki it says the following error whats the solution of this

Database error

A database query error has occurred. This may indicate a bug in the software.

[ZpeOYZ36VsF47Yx6zkYYuwAAAAs] 2024-07-17 09:26:58: Fatal exception of type "Wikimedia\Rdbms\DBQueryError"

Bawolff (talkcontribs)

As a first step, set $wgShowExceptionDetails = true; in LocalSettings.php

Did you create all the appropriate database tables in the appropriate databases?

Reply to "MediaWiki:GlobalBlock Extension"

Edit preview not working

3
Seaniekaye (talkcontribs)

jfwiki.org

I upgraded to 1.42 yesterday and the page preview after editing is not working with the error:

Exception caught: Call to undefined method MediaWiki\Parser\ParserOutput::getCategories()

I am using PageInCat 3.0.0

The error log has many of these:

[Wed Jul 17 07:37:42.163289 2024] [fcgid:warn] [pid 1846434:tid 120972091238144] [remote 47.128.55.96:14690] mod_fcgid: stderr: PHP Deprecated:  Use of MediaWiki\\Parser\\Parser::$pageInCat_cache was deprecated in MediaWiki 1.42. [Called from PageInCat::onClearState in /home/jfwiki/wiki142/extensions/PageInCat/src/PageInCat.php at line 174] in /home/jfwiki/wiki142/includes/debug/MWDebug.php on line 379

[Wed Jul 17 07:37:42.163349 2024] [fcgid:warn] [pid 1846434:tid 120972091238144] [remote 47.128.55.96:14690] mod_fcgid: stderr: PHP Deprecated:  Use of MediaWiki\\Parser\\Parser::$pageInCat_onlyCache was deprecated in MediaWiki 1.42. [Called from PageInCat::onClearState in /home/jfwiki/wiki142/extensions/PageInCat/src/PageInCat.php at line 175] in /home/jfwiki/wiki142/includes/debug/MWDebug.php on line 379

[Wed Jul 17 07:37:42.490267 2024] [fcgid:warn] [pid 1846434:tid 120972091238144] [remote 47.128.55.96:14690] mod_fcgid: stderr: PHP Deprecated:  Use of wfGetDB was deprecated in MediaWiki 1.39. [Called from PageInCat::inCatCheckDb in /home/jfwiki/wiki142/extensions/PageInCat/src/PageInCat.php at line 143] in /home/jfwiki/wiki142/includes/debug/MWDebug.php on line 379

_________


Thank you

Sean

TheDJ (talkcontribs)

PageInCat is not up to date for 1.42 yet it seems. You should either fix the extension and update it, or you can suppress deprecation warnings for php (should always be disabled for production) in your php.ini.

Bawolff (talkcontribs)

Oh, that is my extension. Guess i should fix it.

Reply to "Edit preview not working"

How to disable caching for files for good?

3
Kghbln (talkcontribs)

On a wiki, I have the problem that uploaded new versions of existing files are not directly updated on pages linking them. If I click on a link, I get the previously uploaded version of the file. These are mainly PDF files, so no thumbnailing is involved if this matters.

LocalSettings.php
$wgMainCacheType = CACHE_MEMCACHED;
$wgParserCacheType = CACHE_NONE;
$wgSessionCacheType = CACHE_DB;
$wgMessageCacheType = CACHE_MEMCACHED;
$wgMemCachedServers = [
      '127.0.0.1:11211'
];

$wgCachePages = false;
$wgUseLocalMessageCache = true;
$wgEnableParserCache = false;

$wgGenerateThumbnailOnParse = false;
VitualHost
<IfModule mod_headers.c>
	<filesMatch ".(pdf|odt|ott|doc|docx|dot|ods|ots|xls|xlsm|xlsx|xlt|odp|otp|ppt|pptx|pot|svg|jpg|jpeg|png|gif)$">
		Header set Cache-Control "no-cache, no-store, must-revalidate"
		Header set Pragma "no-cache"
		Header set Expires 0
	</filesMatch>
	...
</IfModule>

The issue persists. I suspect that I also need to set the main cache to $wgMainCacheType = CACHE_NONE; and forget about the message cache.

Perhaps there is something else I am missing?

TheDJ (talkcontribs)

There is no cache for this that is part of your localsettings.

Your webserver configuration is only disabling the cache for files which are served from disk. If they still need to be generated (by a 404 handler, or if they are always provided by thumb.php, then your filesMatch won't do anything, as they are not files. They are files streamed though a php script in that case.

Bawolff (talkcontribs)

I would also suggest checking your browsers network tab to verify that all the headers are being set, and what caching behaviour is actually taking place (e.g. verify there isnt incorrect 304 responses or something)

Reply to "How to disable caching for files for good?"

Account creation & renaming errors

4
Seaniekaye (talkcontribs)

Version 1.39.3

https://jfwiki.org

I am not able to create new accounts, I get the error:

"An account creation for this username is already in progress. Please wait."

Changing the username makes no difference.

Using createAndPromote from the command line returns the same error.

I attempted to rename a user w/ Special:RenameUser resulting in this error:

Internal error

[ZpVjTbzkAommjGxmWP@BlwAAQJE] /index.php?title=Special:RenameUser Error: Call to undefined method User::isCreatableName()

Backtrace:

from /home/jfwiki/wiki139/extensions/Renameuser/includes/SpecialRenameuser.php(251)#0 /home/jfwiki/wiki139/includes/specialpage/SpecialPage.php(701): SpecialRenameuser->execute(NULL)#1 /home/jfwiki/wiki139/includes/specialpage/SpecialPageFactory.php(1428): SpecialPage->run(NULL)#2 /home/jfwiki/wiki139/includes/MediaWiki.php(316): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)#3 /home/jfwiki/wiki139/includes/MediaWiki.php(904): MediaWiki->performRequest()#4 /home/jfwiki/wiki139/includes/MediaWiki.php(562): MediaWiki->main()#5 /home/jfwiki/wiki139/index.php(50): MediaWiki->run()#6 /home/jfwiki/wiki139/index.php(46): wfIndexMain()#7 {main}

___________________________________________

What's up with isCreatableName?

I updated from WM 1.35 to 1.39.3 a year ago and I haven't tried to create a user since, so this likely happened during the update.

Error reporting is showing this, I'm not sure that it's relevant:

Deprecated

: Use of $wgUser was deprecated in MediaWiki 1.35. [Called from VectorHooks::makeGlobalVariablesScript in /home/jfwiki/wiki139/extensions/Vector/Vector.hooks.php at line 186] in

/home/jfwiki/wiki139/includes/debug/MWDebug.php

on line

381

Deprecated

: Use of User::getOption was deprecated in MediaWiki 1.35. [Called from StubObject::_call in /home/jfwiki/wiki139/includes/StubObject.php at line 120] in

/home/jfwiki/wiki139/includes/debug/MWDebug.php

on line

381

Deprecated

: $wgUser reassignment detected [Called from VectorHooks::makeGlobalVariablesScript in /home/jfwiki/wiki139/extensions/Vector/Vector.hooks.php at line 186] in

/home/jfwiki/wiki139/includes/debug/MWDebug.php

on line

381

_____________________________________________________

I have enabled Create Account in case you'd like to see it:

https://jfwiki.org/index.php?title=Special:CreateAccount&returnto=Main+Page

Thank you for any help

Sean

Bawolff (talkcontribs)

It sounds like you are trying to use MW 1.35 extensions with MediaWiki 1.39. Try and ensure that all extensions have also been upgraded to the appropriate version.

Of special note - RenameUser extension functionality is now in MediaWiki core. The extension cannot be used with newer versions of MediaWiki and must be removed on mediawiki 1.39.

Seaniekaye (talkcontribs)

Brian, you have saved me so many hours over the years. This worked. Thank you so much for your help.

Bawolff (talkcontribs)

You're welcome. Glad it worked.

Reply to "Account creation & renaming errors"

1.42 breaks remote authentication

2
Cfschulte 314 (talkcontribs)

I have been using the PluggableAuth and Shibboleth extensions for account creation and logins for a while. Shibboleth has not been updated for a while so I switched to the Auth_remoteuser extension, which has been working very well.

Authentication with those broke when I tried to upgrade to MediaWiki 1.42.0. As an experiment on a development platform, I created two stripped down wikis called fix142 using MW 1.42 and check141 using MW 1.41. The 1.41 MW works perfectly. It creates accounts and logs users in. Access is controlled by SAML.

MW 1.42 gives me this:

MediaWiki is unable to load the extension Auth_remoteuser. Please check that the extension's name is correct and all of its files are properly installed.

Details:

Error reading /var/www/html/fix142/extensions/Auth_remoteuser/extension.json. filemtime(): stat failed for /var/www/html/fix142/extensions/Auth_remoteuser/extension.json.

#0 /var/www/html/fix142/includes/GlobalFunctions.php(53): ExtensionRegistry->queue()
#1 /var/www/html/fix142/LocalSettings.php(151): wfLoadExtension()
#2 /var/www/html/fix142/includes/Setup.php(215): require_once('...')
#3 /var/www/html/fix142/includes/WebStart.php(85): require_once('...')
#4 /var/www/html/fix142/index.php(50): require('...')
#5 {main}

Any ideas?

Thanks,

Chris

TheDJ (talkcontribs)

> filemtime(): stat failed

that generally means the file is not at that location, or not readable from that location (permissions or owner issue).

Reply to "1.42 breaks remote authentication"

wrong indentation after a : {{intl|

2
Wladek92 (talkcontribs)

how to reestablish correct indentation on translated page at Step 7 in -> https://www.mediawiki.org/wiki/Help:Growth/Tools/Add_a_link/fr#Comment_ajouter_des_liens after the message -> https://translatewiki.net/wiki/MediaWiki:Growthexperiments-addlink-onboarding-content-linking-guidelines-body/fr has been transcluded ?

':' seems to be disturbed by the 'li' but on other side indentation is correct on the EN page -> https://www.mediawiki.org/wiki/Help:Growth/Tools/Add_a_link#How_to_add_links,

so what is wrong ? Thanks. -- Christian 🇫🇷 FR ⛹🏽 Paris 2024🗼 (talk) 07:49, 17 July 2024 (UTC)

Wladek92 (talkcontribs)
Reply to "wrong indentation after a : {{intl|"

Missing pages, but data appear to be intact

25
Jonahgreenthal (talkcontribs)

My wiki is missing a bunch of pages. I think it's specifically the pages that only had one revision. Possibly only if that revision was very old.

Here's an example page: https://www.qbwiki.com/wiki/St._Anne%27s . It says there's no text in this page, but the page, revision, and text tables all seem to have the right data.

Other observations:

The revision #0 of the page named "St. Anne's" does not exist.
This is usually caused by following an outdated history link to a page that has been deleted. Details can be found in the deletion log.

(but the deletion log doesn't show anything)

  • When I try to save an edit, I am told there is an edit conflict ("Someone else has changed this page since you started editing it.")
  • I can delete the page and then re-create it
  • I fiddled around with the PHP code to see where the error text was coming from. It's Article.php line 436, in the fetchRevisionRecord() method:
// $this->mRevision might already be fetched by getOldIDFromRequest()
if ( !$this->mRevision ) {
	if ( !$oldid ) {
		$this->mRevision = $this->mPage->getRevision();

		if ( !$this->mRevision ) {
			wfDebug( __METHOD__ . " failed to find page data for title " .
				$this->getTitle()->getPrefixedText() . "\n" );

			// Just for sanity, output for this case is done by showMissingArticle().
			$this->fetchResult = Status::newFatal( 'noarticletext' );
			$this->applyContentOverride( $this->makeFetchErrorContent() );
			return null;
		}
	…

But I don't know enough about how MediaWiki works (or PHP in general, really) to figure out what's going wrong.

This problem likely started after an upgrade that I struggled with. Unfortunately, I didn't notice this problem until long after the upgrade, and when I finished the upgrade I had thought everything turned out okay, so I don't remember exactly what went wrong.

The upshot is that there are a bunch of pages (this was just one example) whose contents exist in the database but can't be accessed through the website. I'm not sure even how to systematically identify such pages. I suspect some rows or values are just missing from some table(s), but I have no clue which or how to find out.

Thoughts?

Nikerabbit (talkcontribs)

Do you have backups from before the upgrade?

It is most likely that either the actor or comments migration has gone wrong. MediaWiki does a LEFT JOIN on those tables so missing entries in there will cause those revisions/pages to appear as missing.

If it is about comments, see https://phabricator.wikimedia.org/T249904.

If it is about actors, I had the following trick:

  1. identify the user names for those revisions
  2. Create proper users for them, e.g. `User::newSystemUser( '...', [ 'steal' => true ] );`
  3. Run database queries UPDATE revision SET rev_user = 0 where rev_user_name = '...'; (and similar for all affected tables, mostly logging, archive and recentchanges)
  4. Run php maintenance/cleanupUsersWithNoId.php


But you need backups to do this in case the rev_user and equivalent fields are already dropped. I guess it's possible to do it afterwards by updating the rev_actor and equivalent fields too, but I have not done that myself.

Jonahgreenthal (talkcontribs)

I do have backups from before the upgrade, but the upgrade was about a year ago so restoring from the backup isn't viable.

Thanks for pointing me at revision_comment_temp and revision_actor_temp. It looks like the problem is the latter—this query returns 164 rows:

SELECT * FROM revision WHERE rev_id NOT IN (SELECT revactor_rev FROM revision_actor_temp)

Do you agree with that reasoning? (Some of the corresponding pages do exist, but the revisions seem to be missing when I view the history through the web interface.)

The rev_user_text column contains the username, so that should address your step 1, right? Are you able to elaborate on step 2 (how do I do that? what's the steal thing?) and 3 (which tables are affected?)? Thanks so much!

Nikerabbit (talkcontribs)

I'd suggest running `php maintenance/migrateActors.php --force` to observe if there are errors. If there is, you should get list of usernames that match the rev_user_text of those rows. You could try running cleanupUsersWithNoId.php first or maybe even findMissingActors.php (if you have it) to see if is sufficient.

But if they don't work, my step 2 basically creates and user and actor for the name. The issue may be that there is no used account for the name, so actor cannot be created. Step 3 removes broken references to user ids which do not exist, so that cleanupUsersWithNoId can process it. The relevant tables and names should be printed out by the migrateActors script.

Jonahgreenthal (talkcontribs)

Thanks. migrateActors produced a bunch of messages like this:

User name "X" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

cleanupUsersWithNoId produced a bunch of output but didn't seem to actually do anything.

I don't know how to actually do your step 2. It looks like PHP code I'm supposed to run, but I don't know how to run custom code within the MediaWiki environment.

I don't have findMissingActors.

Nikerabbit (talkcontribs)

There is shell.php and eval.php under maintenance, both allow you to run that code interactively.

Jonahgreenthal (talkcontribs)

Thanks. I had to fight with shell.php pretty hard to get PsySH to work, but I think everything works now, including the solution of my original problem. I appreciate your help.

81.174.133.236 (talkcontribs)

I had a very similar problem and this thread was very helpful, thank you. I was able to resolve with this SQL:

INSERT INTO revision_actor_temp (revactor_rev, revactor_actor, revactor_timestamp, revactor_page) SELECT rev_id, 1 as actor, rev_timestamp, rev_page FROM revision WHERE rev_id NOT IN (SELECT revactor_rev FROM revision_actor_temp);

I was not concerned with correctly matching up the actors (and indeed think this data is lost), so replaced all of them with actor 1 (Administrator on my wiki). All of the page revisions are now accessible again. The missing actors were old now non-existent users that must have been lost in the 1.31 to 1.35 migration somewhere.

81.174.133.236 (talkcontribs)

I should add I needed to run php maintenance/update.php afterwards as well.

Krabina (talkcontribs)

thank you for this! the sql statement saved my wiki :-)

YOUR1 (talkcontribs)

The SQL statement above also fixed issues on our wiki's.

Kghbln (talkcontribs)

The solution posted by 81.174.133.236 only works, however, on file pages the connection of the files to their pages is not reinstated. This means the files are not shown on the wiki. Reuploading with the same name is not possible either.

Note that I went from 1.25 to 1.31, to 1.32, to 1.33, 1.34 and now to 1.35. Needless to say that migrateActorswithNoId.php was useless to run. It detected the actors but did not clean them.

Going the rebuildImages.php path does not help, and neither the cleanupUsersWithNoId.php/migrateActors.php path.

I am clueless as to how to mitigate this. Looks to me like I may have run into this which I will still have to investigate. Edit: No, I do not think this is the issue.

Ciencia Al Poder (talkcontribs)
Kghbln (talkcontribs)

Thanks for the pointer to your patched version of the script "cleanupUsersWithNoId.php." You are a hero! In the case of the current wiki I worked on, it was a lifesaver. Let me share my experience:

Going directly from MW 1.31 to MW 1.35 and applying the script on MW 1.35 after running "update.php" did not work. The wiki was in a disastrous condition after the upgrade and is no longer usable. This outcome is expected since the script had nothing to work on in the MW 1.35 database.

Going from MW 1.31 to MW 1.32, then to MW 1.33, using the patched script you linked to on 1.33 after running "update.php," did work. For some reason, the wiki was still unusable in version MW 1.33; however, upgrading to MW 1.34 with "update.php" and from there to MW 1.35 with "update.php" mitigated the issues emerging on the wiki. As a result, the wiki is working fine as it appears to me (still pending user feedback). This way, I could prevent massive issues, including this one, from occurring if I used core software. I am still determining why the wiki is broken in version 1.33, but it is probably another story.

Directly going from MW 1.31 to MW 1.35 is not recommended for wikis, with issues surfacing after the upgrade. Do it branch by branch and apply the patched script to MW 1.33. Going from MW 1.31 via MW 1.32, MW 1.33, and MW 1.34 to MW 1.35 using the script "cleanupUsersWithNoId.php" provided by core will also not work. The result will be a disaster. On the way, "update.php" will complain for MW 1.33 to MW 1.35 that you need to run "cleanupUsersWithNoId.php," however, it will ultimately do nothing.

185.104.138.31 (talkcontribs)

Hi, I would like to share my experience here since I've been struggling with updating my MW from 1.31 onwards. Originally, I wanted to go from MW 1.31 to 1.32 and then 1.33 some time ago. As 1.33 broke my wiki due to the known actor nightmare (cleanupUsersWithNoId.php does not help), I decided to postpone the update.

Now, I gave everything another shot and followed the instructions posted by @Kghbln.

1) MW 1.31 to MW 1.32 using update.php

2) MW 1.32 to MW 1.33 using the enhanced version of cleanupUsersWithNoId.php by @Ciencia Al Poder first and only then executing update.php

3) MW 1.33 to MW 1.34 using update.php

4) MW 1.34 to MW 1.35 using update.php

Afterwards, my wiki was working fine on MW 1.35. As 1.39 is already out, I decided to continue the update process. To be on the safe side, I performed the update for each version separately (1.36 -> 1.37 -> 1.38 -> 1.39). Everything works fine now under PHP 7.4, my next step is going to push the PHP version to 8.1 but that's not related to this issue.

Btw, the query posted by 81.174.133.236 was not necessary as the enhanced script took care of everything.

Another issue I had facing this update was the removal of Manual:$wgDBmysql5. My database was still using latin1 collations and everything was working fine with $wgDBmysql5 = true; until this setting was removed in MW 1.33. Therefore, I had to adjust my DB accordingly to avoid encoding issues with special characters (some hints are given on the talk page of the setting, also see Topic:Wqktznc6b8nyc29g).

I really would like to thank @Ciencia Al Poder and @Kghbln and everyone involved for sharing the script and their paths for the update!

Want (talkcontribs)

No! I recommend wait to next stable version MW, because upgrade scipt must accept upgrade from PHP 7.x to 8.2 and some distributions as Debian for example, 8.0 and 8.1 skiped. But MW 1.42 with support PHP 8.2 not released. I know that is complication, but another choice isn't for now.

Medwards98020 (talkcontribs)

Say, I appear to have this issue in my wiki. However, I'm unable to use the above solution as my wiki has already been upgraded a few times (currently on 1.41), and I don't think I have access to the older versions anymore.

migrateActors.php --force shows 0 errors currently.

I also note that if I look at the history of a problematic page, I can see, for example, three users with edits. All appear in the list of users, and have other unaffected pages.

Any suggestions on how I might dig myself out of this?

YOUR1 (talkcontribs)

Did you try to run the above SQL statement? That worked for us.

Medwards98020 (talkcontribs)

Yes, it errors out as there is no "revision_actor_temp"

Ciencia Al Poder (talkcontribs)

There's no fix once your wiki database has been upgraded to later versions. The information of those old users is gone. Forever. There are only actor ids now. You'll have to manually select those actor ids and replace them by whatever other actor id that may be the best replacement for them.

Medwards98020 (talkcontribs)

Hmm, well, unfortunately I'm not even sure how to find the old actor IDs. Currently despite being able to see old revisions, I can't find the page in the database, but I may be not searching correctly. I'm certainly no expert on how the database is structured.

Medwards98020 (talkcontribs)

OK, so I think I have a better idea how to fix things now.

I did some reading up on the mediawiki manual that describes the structure of the database. It now made sense that I didn't have a "revision_actor_temp", as that was only around v1.3.1 – v1.3.8, and I've already upgraded past that.

I have been able to identify a few problem pages just by coming across them browsing my wiki. I'm using phpMyAdmn tool at part of the cPanel set up for my instance. Selecting my database and searching for an exmaple page title let me find the page record, and in that, find the page ID number.

The, searching the revision field only (by selecting it and using the search tool), I was able to search for all revision entries for that page ID number. The very last/latest revision had an rev_actor ID of "0". When I had been looking at the list of revisions in the wiki, it shows them up to that point.

After backing up my database (in case I mess things up), I edited the rev_actor ID for that one revision from "0" to "1" (the ID of the main admin account). Now that revision appears with the name of the main admin account as having done the revision, and the page appears normally in the wiki.

Now I certainly can just have folks report when they run into one of these pages, and fix them as I come across them. However, my question is: Is there a legitimate use of the rev_actor ID being "0", or is that most assuredly an indication of a problem with the page? I could easily find/replace them, but I see about 2.5K entries that have a rev_actor ID of "0" currently. The wiki doesn't have anonymous edits, by the way - or at least I though so, I can historically see some edits just have IP addresses, as I look at entries that contain the null ID.

Medwards98020 (talkcontribs)

Further searching (and some exporting and deduping search results) has given me a list of about 1000 pages/categories etc to check.

I'm finding in many cases there are pages that work, but have one or more rev_actor IDs in their edit history. These don't show in the history unless I modify it from "0", then I can see them. I'm assuming that aside from skipping steps in the view of the history, they would only be an issue if one were to attempt to revert to them (or possibly around them), but I'm probably going to fix them in any case.

Medwards98020 (talkcontribs)

So, would doing the following work?

UPDATE `revision`

SET `rev_actor` = 1

WHERE `rev_actor` = 0

Ciencia Al Poder (talkcontribs)

Yes, running that UPDATE would fix those page, but will attribute those edits to the actor "1", which may or may not be the same as the user id "1". The actor table defines which user account (or anon/external) relates to any given actor id.

Reply to "Missing pages, but data appear to be intact"

Fatal error. Initial Install.

2
Justrobfl (talkcontribs)

Fatal error: Uncaught Error: Call to undefined function putenv() in /home/<domain>/<user>/public_html/MediaWiki/includes/Setup.php:312 Stack trace: #0 /home/<domain>/<user>/public_html/MediaWiki/includes/WebStart.php(85): require_once() #1 /home/<domain>/<user>/public_html/MediaWiki/mw-config/index.php(41): require('/home/1301174.c...') #2 {main} thrown in /home/<domain>/<user>/public_html/MediaWiki/includes/Setup.php on line 312


Initial install on a cloud hosted Debian box with PHP 8.1

parts of the file paths have been redacted for reasons

Followed manual installation instructions per the instructions on mediawiki.org

When I navigate to domain/MediaWiki I get a page that says LocalSettings.php is not found click here to run the setup script.

I am redirected to /MediaWiki/mw-config/index.php with the error string listed at the top of the post. I do not know enough about PHP or how this code works to understand how to troubleshoot this further.

Please help.

Bawolff (talkcontribs)

Some hosts disable the putenv() php function. You could try commenting out thr putenv line in Setup.php. alternatively you could try a different hosting provider.

Reply to "Fatal error. Initial Install."