Project:Support desk

About this board

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

(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 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".

Where do I go to report images that are inappropriate?

2
2601:58B:C681:3810:69A9:74EA:1F54:D05 (talkcontribs)

Where do I go to report images that are inappropriate?

TheDJ (talkcontribs)

Not here. This is a software project support forum.

Reply to "Where do I go to report images that are inappropriate?"

Request for translating a page

2
Dyolf77 (WMF) (talkcontribs)
Ammarpad (talkcontribs)
Reply to "Request for translating a page"

digital archive/ database of photographs

1
2.36.45.33 (talkcontribs)

Hi, I am interested in creating a digital archive/ database of photographs taken by anyone around the world. The images will require specific content criteria. The uploading / collection of the images needs to be as easy as possible. once collected the images will need some cataloguing references and possibly have a geographic location. Do you have any service or suggestion which can help my case/ project? Thank you very much for the help. Best regards, C.

Reply to "digital archive/ database of photographs"

class option of image doesn't work

4
Senxiu (talkcontribs)

Wikitext:

[[File:....png|class="ImageClass"]]


Instead of setting the class of the <img> element,

the codes above generated something like this:

<span class="mw-default-size ImageClass" typeof="mw:File"><a href="....png" class="mw-file-description"><img src="....png" decoding="async" width="512" height="512" class="mw-file-element"></a></span>


And I can't change the size of the image by css

Bawolff (talkcontribs)

That sounds like its working as intended.

Senxiu (talkcontribs)

Thank you very much.

So does this mean that I cannot change the class of the generated img element by specifying it in the wiki link?

Perhaps I've misunderstood, but the page Help:Images - MediaWiki said that:

  • class={html class} — (MediaWiki 1.20+) Defines classes (maps to the HTML attribute class="..." of the generated ‎<img /> element).


I've also tried use .ImageClass img but it was the same. I guess it's because the span tag.

Senxiu (talkcontribs)

! I find that mediawiki support div tag so now it's solved

Thank you

Josolilop (talkcontribs)

Hi! I am making an MediaWiki for a project for a school project. When i upload an image, it doesn't show. It says "Error: Could not load image from (location of the file). When i click the link, it shows an Apache error saying "Not found", but the file is on the folder

Screenshots

I am using Ubuntu, running Apache (PHP 8.1) and MariaDB as database


Thanks everyone!

Reply to "Problems with images"

Wiki v1.39.4 allow visit all wiki content pages without establish SSO login

4
SanjayKSahu (talkcontribs)

HI,

we're currently upgrading from existing Wiki v1.35.3 (LTS ) to following new Wiki v1.39.4(LTS)

Ideally it should display login page until unless we configure LDAPAuthentication setup.

But, we don't see the login page anymore and this new wiki version allow us to visit any of pages. Please guide us on same.


Installed software

Product Version

MediaWiki 1.39.4

PHP 8.0.25 (apache2handler)

MySQL 8.0.26

ICU 71.1

Lua 5.1.5

Pygments 2.11.2

Elasticsearch 7.10.2

Osnard (talkcontribs)

Are there any additional extensions enabled? Maybe leftovers from the old installation?

SanjayKSahu (talkcontribs)

yes only the default extensions coming with the mediawiki package. Even i have disabled kerberos/SSO for this newly installed instance. but, I could see same result after apache restart.

We do use LDAPAuthentication extension with the existing Wiki 1.35.3 version . So pls help us the detailed steps to configure with the new LDAPAuthentication2.

Osnard (talkcontribs)
Reply to "Wiki v1.39.4 allow visit all wiki content pages without establish SSO login"
67.83.34.193 (talkcontribs)

Someone is spamming me deliberately and has locked the page, how can this be fixed?

Bawolff (talkcontribs)

there is not enough info here (what page? Who are you? What website?) to say anything.

However it is probably an off topic question.

Reply to "spamming"

Internal Error: Fatal exception of type "LogicException"

14
2A00:20:B058:1051:8817:4E77:DBAD:B770 (talkcontribs)

Hi! For the past month, I've been using 'Memcached' and since then, occasionally when retrieving an article, the error message 'Internal Error: Fatal exception of type "LogicException" appears. When I reload the page, the error disappears. What could be causing this? The error seems to occur arbitrarily, whether it's an article, special page, or image. Through analytics, I've seen that the error appears maybe once in every 1000 retrievals.

Software Version
MediaWiki 1.39.0
PHP 8.1.14 (fpm-fcgi)
MariaDB 10.6.11-MariaDB-1:10.6.11+maria~ubu1804
ICU 60.2
Pygments 2.11.2
2A00:20:B058:1051:8817:4E77:DBAD:B770 (talkcontribs)

and I am not seeing the cause in the logs. Now I set $wgShowExceptionDetails to true. Perhaps someone already has an idea... Or could it be due to PHP 8? Thanks!

Bawolff (talkcontribs)

Its unlikely to be due to php8. It would really help to know the full details of the exception

Ciencia Al Poder (talkcontribs)

I don't know if this may be the same issue, but the "LogicException" appears occasionally on several wikis running different versions (1.35, 1.37, 1.38...) and all report sporadic random errors with the message "LogicException: Process cache for 'en' should be set by now", which is reported as phab:T258860.

2003:C5:FF43:45FD:1CB7:1093:84CD:F168 (talkcontribs)

This is the ShowExceptionDetails


LogicException: Process cache for 'de' should be set by now.


Backtrace:

from /var/www/vhosts/EXAMPLE-wiki.de/MediaWiki/includes/language/MessageCache.php(440)

#0 /var/www/vhosts/EXAMPLE-wiki.de/MediaWiki/includes/language/MessageCache.php(318): MessageCache->loadUnguarded()

#1 /var/www/vhosts/EXAMPLE-wiki.de/MediaWiki/includes/language/MessageCache.php(1162): MessageCache->load()

#2 /var/www/vhosts/EXAMPLE-wiki.de/MediaWiki/includes/language/MessageCache.php(1089): MessageCache->getMsgFromNamespace()

#3 /var/www/vhosts/EXAMPLE-wiki.de/MediaWiki/includes/language/MessageCache.php(1060): MessageCache->getMessageForLang()

#4 /var/www/vhosts/EXAMPLE-wiki.de/MediaWiki/includes/language/MessageCache.php(1002): MessageCache->getMessageFromFallbackChain()

#5 /var/www/vhosts/EXAMPLE-wiki.de/MediaWiki/includes/language/Message.php(1473): MessageCache->get()

#6 /var/www/vhosts/EXAMPLE-wiki.de/MediaWiki/includes/language/Message.php(970): Message->fetchMessage()

#7 /var/www/vhosts/EXAMPLE-wiki.de/MediaWiki/includes/language/Message.php(1053): Message->format()

#8 /var/www/vhosts/EXAMPLE-wiki.de/MediaWiki/includes/specialpage/SpecialPage.php(787): Message->text()

#9 /var/www/vhosts/EXAMPLE-wiki.de/MediaWiki/includes/specialpage/SpecialPage.php(676): SpecialPage->getDescription()

#10 /var/www/vhosts/EXAMPLE-wiki.de/MediaWiki/extensions/RottenLinks/includes/SpecialRottenLinks.php(8): SpecialPage->setHeaders()

#11 /var/www/vhosts/EXAMPLE-wiki.de/MediaWiki/includes/specialpage/SpecialPage.php(701): SpecialRottenLinks->execute()

#12 /var/www/vhosts/EXAMPLE-wiki.de/MediaWiki/includes/specialpage/SpecialPageFactory.php(1428): SpecialPage->run()

#13 /var/www/vhosts/EXAMPLE-wiki.de/MediaWiki/includes/MediaWiki.php(316): MediaWiki\SpecialPage\SpecialPageFactory->executePath()

#14 /var/www/vhosts/EXAMPLE-wiki.de/MediaWiki/includes/MediaWiki.php(904): MediaWiki->performRequest()

#15 /var/www/vhosts/EXAMPLE-wiki.de/MediaWiki/includes/MediaWiki.php(562): MediaWiki->main()

#16 /var/www/vhosts/EXAMPLE-wiki.de/MediaWiki/index.php(50): MediaWiki->run()

#17 /var/www/vhosts/EXAMPLE-wiki.de/MediaWiki/index.php(46): wfIndexMain()

#18 {main}

2003:C5:FF0B:4531:5D6C:4559:3E66:E937 (talkcontribs)

Any idea? Memcached problem?

Bawolff (talkcontribs)

Sometimes this is caused by extensions trying to initialize stuff before mediawiki is ready.

Do you have any non default config set for localisation cache in LocalSettings.php?

109.42.240.206 (talkcontribs)

@Bawolff: My memory settings


$wgMainCacheType = CACHE_MEMCACHED;

$wgParserCacheType = CACHE_MEMCACHED; // optional

$wgMessageCacheType = CACHE_MEMCACHED; // optional

$wgMemCachedServers = [ '127.0.0.1:11211' ];

$wgSessionCacheType = CACHE_MEMCACHED; // optional

$wgPHPSessionHandling = 'enable';

$wgCachePages = true;

 

$wgCacheEpoch = '20030516000000';

$wgRevisionCacheExpiry = 86400 * 7;

$wgParserCacheExpireTime = 2592000;

$wgResourceLoaderMaxage = [];

$wgDiff = '/usr/bin/diff';

$wgDiff3 = '/usr/bin/diff3';

$wgMemoryLimit = "50M";


$wgCacheDirectory = "$IP/cache";

$wgEnableSidebarCache = true;

Bawolff (talkcontribs)

Those look pretty normal. (50 mb is a really small memory limit, but that wouldn't cause this problem)

If you disable all extensions does it still happen?

2A01:CB19:8434:A200:2038:E7C3:33E1:A6DB (talkcontribs)

While me, I try going to Rarewiki but all it shows is : [708b7b0f69dcf049da7804f9] 2023-09-02 08:37:15: Fatal exception of type "LogicException". Do you think it will be fixed later or do we have to wait for a few days, weeks, months or years until the issue is resolved ?

Ciencia Al Poder (talkcontribs)

Rarewiki works for me.

2A01:CB19:8434:A200:C83C:794C:2D34:1CF6 (talkcontribs)

4 weeks later : [5b4bd19c4cdc454c8dbbeea8] 2023-09-30 17:41:32: Fatal exception of type "LogicException". It's happening again in Rarewiki

Ciencia Al Poder (talkcontribs)

Fatal exception of type "LogicException" is completely useless for us. See Manual:How to debug to get a more descriptive error message.

Bawolff (talkcontribs)

On some versions of mediawiki (not the latest) if memcache wasn't reachable over the network a logic exception related to process cache would be issued. (But like Ciencia said, please include full exception details)

Reply to "Internal Error: Fatal exception of type "LogicException""
Funny giggles (talkcontribs)

I would like to know how to delete an old account that i don't need and/or use anymore

Malyacko (talkcontribs)

Account on which website (full URL)?

Reply to "Help"
बडा काजी (talkcontribs)

How does one make a sitenotice appear on mobile phone. We're doing a edit-a-thon like event in Nepali Wiki and majority of our users use mobile. It would be useful to this notice to them.

Ammarpad (talkcontribs)

You can request for it to be enabled on Nepali wiki. See sample request at phab:T299529

Reply to "Sitenotice"