Project:Support desk

Jump to navigation Jump to search

About this board

Welcome to MediaWiki.org's Support desk, where you can ask MediaWiki questions!

There are also other places where to ask :

Before you post

Post a new question

  1. To help us answer your questions, please always indicate which versions you are using (reported by your wiki's Special:Version page):
    • MediaWiki
    • PHP
    • Database
  2. Please include the URL of your wiki unless you absolutely can't. It's often a lot easier for us to identify the source of the problem if we can look for ourselves.
  3. To start a new thread, click "Start a new topic".
Previous page history was archived for backup purposes at Project:Support_desk/old on 2015-07-30.
Other languages: English  العربية čeština Esperanto français 日本語 中文

How to disable cache for specific extension in 1.33

3
Chan15tw (talkcontribs)

I wrote a extension for one wiki page to connect to some outside url, I just put <changelog /> in that artcile, it will hook to my extension to call Changelog.php to execute Changelog::getLog()

getLog method will do curl connect to my outside url to get json content and re-format it to html string and return, they work perfectly in 1.27, but after I upgrade to 1.33, it still get the content I want, but it cached the result, when outside url changes content it won't go with it, I need to edit article and save to get new content again, I try to add


$cache = new CacheHelper();

$cache->setCacheEnabled(false);


in getLog function was not change anything, how to disable cache on the page which use this extension

Bawolff (talkcontribs)

You should probably not touch the CacheHelper class.

In your extension, call $parser->disableCache();

Chan15tw (talkcontribs)

* @deprecated since 1.28; use getOutput()->updateCacheExpiry()


it's deprecated, and I tried both $parser->getOutput()->updateCacheExpiry(0); and $parser->disableCache(); in my method still got old content

Reply to "How to disable cache for specific extension in 1.33"

How to get Installed Software on Special:Version. E.g., Elasticsearch

2
128.125.52.100 (talkcontribs)

Hi, I'm new to MediaWiki. On Special:Version, there are "Installed Software". How do we install additional software on Mediawiki? For example, I managed to get 'Elastica' and 'CirrusSearch' to show up on the Special:Version of the wiki I'm trying to build, but I don't get 'Elasticsearch' listed under Installed Software. What do I need to do in order for my Special:Version to show Elasticsearch under installed Software?

AhmadF.Cheema (talkcontribs)
Reply to "How to get Installed Software on Special:Version. E.g., Elasticsearch"

the left side of vuze does not show up

2
2602:306:3B33:9400:149D:5EBA:F657:3B6C (talkcontribs)

the left side of vuze does not show up so therefore I can not copy a dvd

AhmadF.Cheema (talkcontribs)

Wrong support forum.😕

Reply to "the left side of vuze does not show up"

Apply style to a column in a table

8
維基小霸王 (talkcontribs)

How to apply style to a column in a table? I have added the desired style in the first few rows in the table. Do I must repeat the styles in every row?

SolidBlock (talkcontribs)

I have heard of an html tag named col, but it does not seem to work in mediawiki.

217.91.3.31 (talkcontribs)

If you want the same style on every row of the table, you just need to set all styles in the head of the table.


Example:

{| class="wikitable" style="text-align: center; color: green;"

|Orange |Apple |12,333.00 |- |Bread|Cake|500.00 |- |Butter|Ice Creme|1.00 |}


In this table every row will have the color green

SolidBlock (talkcontribs)

a specific column, not an entire table or a row

Jonathan3 (talkcontribs)
維基小霸王 (talkcontribs)

So there is no way. I can only repeat the style in every row.

Jonathan3 (talkcontribs)

Maybe you could create a template to call for each row. The template would contain the CSS style. This could look neater and be easier to change.

維基小霸王 (talkcontribs)

Yes. This is exactly what I did.

How to sync content between two Mediawiki installations?

3
79.110.95.2 (talkcontribs)

Is there a reliable way to sync (copy and merge) the content of two different Mediawiki installations?

I have an internal installation where we work on most the time, but some external contractors won't get access to the internal installation, so we are thinking about getting them their own installation and mirror parts of the content to that installation. Problem is, doing this manually will be a pain, so I'm looking for a way to automate this procedure.

Sync should be in both directions, as both parties can create and update content.

I hoped there would be an extension for that, but couldn't find one yet.

213.47.13.4 (talkcontribs)
Reply to "How to sync content between two Mediawiki installations?"

merging a wikimedia account, and a donor account

1
Yvonus (talkcontribs)

Good afternoon.

I've been donating from time to time to Wikimedia Foundation, thus giving one email address, with which I'm contacted for further donations.

I thought it meant I did have a plain Wikipedia account, which does not seem the case.

Is there a point of linking both, simply to avoid double-time "please donate" notifications ?

Thanks

Reply to "merging a wikimedia account, and a donor account"
38.104.169.18 (talkcontribs)

Currently in a process of moving our mediawiki site to sharepoint, What will be the best way to do this ?

Reply to "move mediawiki site to sharepoint"

Internal error after updating to MW 1.33

1
Summary by Hessentotal

Fixed.

Hessentotal (talkcontribs)

Patroller Extension not work at all.

4
Adrianevs (talkcontribs)

Hello Everyone, I just install Patroller Extension but the special page do not work.

Error:

[d44cb3b3a9530efc09215f79] /index.php/Special:Patroller Wikimedia\Rdbms\DBUnexpectedError from line 2385 of /var/sentora/hostdata/zadmin/public_html/dotwikis_com/includes/libs/rdbms/database/Database.php: Invalid non-numeric limit passed to limitResult()

Backtrace:

#0 /var/sentora/hostdata/zadmin/public_html/dotwikis_com/includes/libs/rdbms/database/Database.php(1321): Wikimedia\Rdbms\Database->limitResult(string, string, boolean)

#1 /var/sentora/hostdata/zadmin/public_html/dotwikis_com/includes/libs/rdbms/database/Database.php(1267): Wikimedia\Rdbms\Database->selectSQLText(array, string, array, string, array, array)

#2 /var/sentora/hostdata/zadmin/public_html/dotwikis_com/extensions/Patroller/SpecialPatroller.php(253): Wikimedia\Rdbms\Database->select(array, string, array, string, array, array)

#3 /var/sentora/hostdata/zadmin/public_html/dotwikis_com/extensions/Patroller/SpecialPatroller.php(97): SpecialPatroller->fetchChange(User)

#4 /var/sentora/hostdata/zadmin/public_html/dotwikis_com/includes/specialpage/SpecialPage.php(522): SpecialPatroller->execute(NULL)

#5 /var/sentora/hostdata/zadmin/public_html/dotwikis_com/includes/specialpage/SpecialPageFactory.php(578): SpecialPage->run(NULL)

#6 /var/sentora/hostdata/zadmin/public_html/dotwikis_com/includes/MediaWiki.php(287): SpecialPageFactory::executePath(Title, RequestContext)

#7 /var/sentora/hostdata/zadmin/public_html/dotwikis_com/includes/MediaWiki.php(862): MediaWiki->performRequest()

#8 /var/sentora/hostdata/zadmin/public_html/dotwikis_com/includes/MediaWiki.php(523): MediaWiki->main()

#9 /var/sentora/hostdata/zadmin/public_html/dotwikis_com/index.php(43): MediaWiki->run()

#10 {main}

24.217.122.132 (talkcontribs)

Will this ever be fixed?

Postprefix (talkcontribs)

I am also having this problem.

AKlapper (WMF) (talkcontribs)
Reply to "Patroller Extension not work at all."
Johnywhy (talkcontribs)

Extension:Patroller gives error, on browsing to Special:Patroller .

Reported here and here.

MW v1.30

[WsAfET-@jcqxiKxPT0bRjQAAAUk] /index.php/Special:Patroller Wikimedia\Rdbms\DBUnexpectedError from line 2479 of /home/my_username/public_html/includes/libs/rdbms/database/Database.php: Invalid non-numeric limit passed to limitResult()
Backtrace:

#0 /home/my_username/public_html/includes/libs/rdbms/database/Database.php(1395): Wikimedia\Rdbms\Database->limitResult(string, string, boolean)
#1 /home/my_username/public_html/includes/libs/rdbms/database/Database.php(1341): Wikimedia\Rdbms\Database->selectSQLText(array, string, string, string, array, array)
#2 /home/my_username/public_html/extensions/Patroller/SpecialPatroller.php(246): Wikimedia\Rdbms\Database->select(array, string, array, string, array, array)
#3 /home/my_username/public_html/extensions/Patroller/SpecialPatroller.php(97): SpecialPatroller->fetchChange(User)
#4 /home/my_username/public_html/includes/specialpage/SpecialPage.php(522): SpecialPatroller->execute(NULL)
#5 /home/my_username/public_html/includes/specialpage/SpecialPageFactory.php(578): SpecialPage->run(NULL)
#6 /home/my_username/public_html/includes/MediaWiki.php(287): SpecialPageFactory::executePath(Title, RequestContext)
#7 /home/my_username/public_html/includes/MediaWiki.php(851): MediaWiki->performRequest()
#8 /home/my_username/public_html/includes/MediaWiki.php(523): MediaWiki->main()
#9 /home/my_username/public_html/index.php(43): MediaWiki->run()
#10 {main}

PS, i noticed my username appears in this error message, visible in this error message (obscured above). Might that be a security vulnerability?

thx

This post was hidden by AhmadF.Cheema (history)
Reezanahamed (talkcontribs)

Same problem, I do have same error, Try using Extension:PageTriage. I think it is better than Patroller

Bawolff (talkcontribs)

>PS, i noticed my username appears in this error message, visible in this error message (obscured above). Might that be a security vulnerability?

That's why we generally reccomend people don't enable detailed error reports on production wikis (That said, its not really a vulnerability per se)

Johnywhy (talkcontribs)

not a production site yet :)

it's my ftp username, so that seems a bit unsafe.

AKlapper (WMF) (talkcontribs)
Reply to "Bug? Patroller Error"