Project:Support desk

Jump to navigation Jump to search

About this board

Welcome to the MediaWiki Support desk, where you can ask MediaWiki questions!

(Read this message in a different language)

See also

Other places to ask for help:

Before you post

Post a new question

  1. To help us answer your questions, please indicate which versions you are using, as found on your wiki's Special:Version page:
    • MediaWiki version
    • PHP version
    • Database type and version
  2. 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.
  3. To start a new thread, click "Start a new topic".

External links icon does not show up

6
Summary last edited by Lakejason0 00:13, 14 June 2021 10 minutes ago

Resolved in Phabricator.

Lakejason0 (talkcontribs)

e.g. https://lakeus.xyz/wiki/Template:Translation_category

the CSS is weird; it contains double slashes thus becoming a invalid path. (had to write a hotfix for now)

Basically all skins are affected, unless skins like Vector which replaces the default external icon with the icons in skin files.

.mw-parser-output a.external, .link-https {

background-image: url(//resources/src/mediawiki.skinning/images/external-ltr.svg?59558);

background-position: center right;

background-repeat: no-repeat;padding-right: 13px;

}

Bawolff (talkcontribs)

What do you have $wgServer, $wgCanonicalServer, $wgScriptPath and $wgResourceBasePath set to in LocalSettings.php? (Its ok if you don't have all of those set)

Lakejason0 (talkcontribs)

$wgServer is "https://lakeus.xyz"; $wgScriptPath is ""; Resource path is made equal to script path in LocalSettings.php.

Lakejason0 (talkcontribs)

$wgServer is "https://lakeus.xyz"; $wgScriptPath is ""; Resource path is made equal to script path in LocalSettings.php.

Bawolff (talkcontribs)

its probably something wrong with $wgResourceBasePath, but what you describe sounds fine (if its value was a single '/' it might cause what you're describing.


You could experiment making it a full url: $wgResourceBasePath = 'https://lakeus.xyz/'; . Not sure if that will work, but worth a try.

Ciencia Al Poder (talkcontribs)

I've tested setting $wgResourceBasePath to $wgServer, but it doesn't help. It's being ignored in the generated CSS apparently, which makes sense since it would be used for load.php URLs and then all resources referenced by them won't require the hostname, because they would be loaded relative to the load.php URL

Mainpage Editor Disable Help

2
78.191.60.127 (talkcontribs)

Do you know how we can disable it?


/index.php/Main_Page?veaction=edit


Editor disable Commands ?

Jonathan3 (talkcontribs)
Reply to "Mainpage Editor Disable Help"

how can i add a google translate button in my wiki?

2
Wikedneeded (talkcontribs)

how can i add a google translate button in my wiki? I have tried all of the secure html programs but it still does not work

Jonathan3 (talkcontribs)

Which extensions have you tried?

Reply to "how can i add a google translate button in my wiki?"

How to hide or remove "This page was last edited on " date

2
103.6.156.188 (talkcontribs)
Jonathan3 (talkcontribs)
Reply to "How to hide or remove "This page was last edited on " date"
151.198.1.34 (talkcontribs)

A wikitia page was created from a draft wikipedia page of mine. Is there a way to delete the wikitia page as we ended up deleting the wikipedia draft.

thank you

TheDJ (talkcontribs)

Have you tried contacting wikitia ? While they might run MediaWiki, the MediaWiki software, nor Wikipedia are affiliated in any sort of way with wikitia.

151.198.1.34 (talkcontribs)

Thanks. Let me try. I haven't been able to figure out how to contact them.

Michellelobin (talkcontribs)

Just don’t..why would you have to?

Reply to "Delete Page"

How do I redirect a MediaWiki page to a folder with html?

2
Wikedneeded (talkcontribs)
Malyacko (talkcontribs)

@Wikedneeded That extension does not require redirecting some MediaWiki page to make that extension work. What makes you think so?

Reply to "How do I redirect a MediaWiki page to a folder with html?"

Upgrading to 1.36 leads to several "Deprecated: Premature access to service ..." issues.

8
Rasputin1493 (talkcontribs)

Hello, I've encountered an issue that I'm not getting solved on my own after upgrading from 1.35.2 to 1.36. Following text can be seen on the background of any page on the whole wiki:

Deprecated: Premature access to service container [Called from ConfigFactory::getDefaultInstance in /www/w/includes/config/ConfigFactory.php at line 52] in /www/w/includes/debug/MWDebug.php on line 376

Deprecated: Premature access to service 'HookContainer' [Called from MediaWiki\MediaWikiServices::getInstance in /www/w/includes/MediaWikiServices.php at line 252] in /www/w/includes/debug/MWDebug.php on line 376

Deprecated: Premature access to service 'ObjectFactory' [Called from Wikimedia\Services\ServiceContainer::{closure} in /www/w/includes/ServiceWiring.php at line 535] in /www/w/includes/debug/MWDebug.php on line 376

Deprecated: Premature access to service 'ConfigFactory' [Called from ConfigFactory::getDefaultInstance in /www/w/includes/config/ConfigFactory.php at line 52] in /www/w/includes/debug/MWDebug.php on line 376

Deprecated: Premature access to service 'BootstrapConfig' [Called from Wikimedia\Services\ServiceContainer::{closure} in /www/w/includes/ServiceWiring.php at line 277] in /www/w/includes/debug/MWDebug.php on line 376

Deprecated: Use of $wgParser was deprecated in MediaWiki 1.32. [Called from require_once in /www/w/includes/Setup.php at line 838] in /www/w/includes/debug/MWDebug.php on line 376

https://rammwiki.net/wiki/Special:Version

MediaWiki 1.36.0
PHP 7.4.13 (cgi-fcgi)
MariaDB 10.3.23-MariaDB-0+deb10u1
Rasputin1493 (talkcontribs)

Okay, so typing in error_reporting( 0 ); in my LocalSettings.php right underneath <?php solved it.

Rasputin1493 (talkcontribs)

However, these errors are obviously not gone and affect the functionality of the wiki big time.

So how to fix that?

Tenbergen (talkcontribs)

Having lots of deprecated errors like that in my logs as well after updating to 1.36.0. Did you end up getting a solution, Rasputin1493?

TiltedCerebellum (talkcontribs)

Per the sidebar on this wiki page, you might need to turn on detailed debugging and give more complete error messages with stack trace for folks to be able to help you determine what's going wrong. Usually the full stack trace gives them much more info.

Manual:How to debug

78.60.90.53 (talkcontribs)

Same here, we just started using MediaWiki 1.36.0 fresh install

Tonynando (talkcontribs)

I experienced it trying to use Monobook, Timeless and Splash skins, but it seems this bug happens in a lot of situations.

  • Here it was related to EmbedVideo extension.
  • Here the bug happened using ArticleRatings extension
Tenbergen (talkcontribs)

That's interesting. I am using Monobook exclusively as well. And now that you say it... I tried to download a beta version a few weeks ago and had to disable Monobook to make it work at all. Didn't have time to fuss with it further then, so never installed it on my test system.

Reply to "Upgrading to 1.36 leads to several "Deprecated: Premature access to service ..." issues."

MediaWiki Installation Shows Only Random Alphanumeric Characters

3
JamesGreenWY (talkcontribs)

My installation of MediaWiki 1.36 shows only random alphanumeric characters on every page whenever I access any page.


I saw this topic with the same problem Topic:W1n42n5jvaahw9wy but it seems like there wasn't a solution referenced on this page.


$wgDisableOutputCompression was suggested as having something to do with it, but I've tried every version of this comment multiple times and it doesn't change anything.


I have rechecked my local settings.php file multiple times, reinstalled MediaWiki (trying different versions such as 1.31 besides 1.36 but I'm still getting the same problem.


Could it be something to do with my PHP installation or with Namecheap hosting?


Link to what I see here https://encyclopedia.irkutskicetruckers.com/ or image of it https://i.imgur.com/0TGNy3T.jpg


Thanks,


James

Malyacko (talkcontribs)

Works without a problem in Firefox, so this is indeed $wgDisableOutputCompression. What does "every version of this comment multiple times" mean? What exactly *did* you do and where, without paraphrasing?

Bswenson2 (talkcontribs)

I'm getting the same problem and I've tried setting it to both true and false

$wgDisableOutputCompression = true;

Reply to "MediaWiki Installation Shows Only Random Alphanumeric Characters"

Accessing the wiki with ZeroTier

6
Magibon-san (talkcontribs)

I am trying to access my wiki running on XAMPP with ZeroTier. I have changed its address $wgServer in LocalSettings.php from localhost to the address ZeroTier gave me, but the wiki's main page still seems to be running on localhost. Some pages point to the IP address but ultimately time out. How should I proceed?

Tanbirzx (talkcontribs)

What is the main problem of your wiki's main page? Please notify that.

Magibon-san (talkcontribs)

Currently, the wiki opens up as normal at localhost (although the ZeroTier address is set). Sometimes a setup.php error appears on the main page but I can't reproduce it at the moment. Interestingly, when I click "Printable version" in the sidebar, on the very bottom of the print preview it shows the proper address.

Bawolff (talkcontribs)

Is apache (or whatever web server) setup to listen on the zerotier ip? Can you verify that your computer is actually accessible from that ip?

Magibon-san (talkcontribs)

Yes. It still does not work. Wiki just times out. Any other server I create using that IP works just fine.

Bawolff (talkcontribs)

to me this sounds like something wrong on a layer below mediawiki. Try and see if the tcp connection actually is succesfully established.

Reply to "Accessing the wiki with ZeroTier"
NGC 54 (talkcontribs)

I try to install MediaWiki 1.36.0, and I receive this error:

MediaWiki 1.36 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:

Malyacko (talkcontribs)

What is unclear with the error message and its instructions?

NGC 54 (talkcontribs)

What instructions? I have already installed MediaWiki 1.35.0 and 1.35.1, and I did not received this error.

Majavah (talkcontribs)

As noted in the MediaWiki 1.36 upgrade notes, 1.36 and newer require the php intl extension. What instructions? "You are missing a required extension to PHP that MediaWiki requires to run. Please install: intl".

NGC 54 (talkcontribs)
Malyacko (talkcontribs)

Which exact operating system is running on that machine?

NGC 54 (talkcontribs)

MediaWiki files are installed on my computer, that uses a version of Windows 10.

NGC 54 (talkcontribs)
Jonathan3 (talkcontribs)

This is from my notes of setting up an Ubuntu 18.04 Digital Ocean VPS recently:

sudo apt install php-intl

I think after that you need:

sudo systemctl restart apache2

71.9.94.49 (talkcontribs)

Similar issue here, intl is installed, but WikiMedia does not recognize it as such. Extension is enabled in php.ini, extension dir is set correctly, other extension prerequisites that wikimedia reported run fine, but intl does not.

71.9.94.49 (talkcontribs)

Even though intl is installed, wikimedia reports the extension as missing. Does it need a default_locale?


intl

Internationalization support => enabled

ICU version => 68.1

ICU Data version => 68.1

ICU Unicode version => 13.0

Directive => Local Value => Master Value

intl.default_locale => no value => no value

intl.error_level => 2 => 2

intl.use_exceptions => Off => Off

Bawolff (talkcontribs)

check if its enabled on the webserver. Whether intl is enabled in commandline php is separate from if its enabled on the webserver.

Reply to "intl"