Project:Support desk

Jump to: navigation, search

About this board

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

There are also other places where to askCommunication: IRCCommunication#Chat, mailing listsMailing lists, Q&A etc.

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".
By clicking "Add topic", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 3.0 License and GFDL

Make certain pages exempt from Special:Random

3
Tribly (talkcontribs)

Is it possible to make certain pages exempt from showing up when someone clicks on the Special:Random button?

87.123.3.29 (talkcontribs)

Yes, it is. You can use the Extension:ExcludeRandom, which does exactly that.

If you don't want to use an extension, you can use the hook SpecialRandomGetRandomTitle to modify the criteria used to get a random page.

Tribly (talkcontribs)

Cool! Thanks!

Extension:Semantic Glossary plural variant

1
Koalopete (talkcontribs)

Hi, how do I get the plural variant of a term into the definition so that "website" and "websites" share the same definition? cheers

Reply to "Extension:Semantic Glossary plural variant"
2602:306:3AEE:2F60:79F7:D003:5B98:EFED (talkcontribs)

create an account

AKlapper (WMF) (talkcontribs)

Do you have a question? Could you elaborate please where to create an account exactly?

Reply to "talamantezjesse0"

Error creating thumbnail: Unable to save thumbnail to destination

2
Summary by AKlapper (WMF)

Resolved according to author

Kiwkius (talkcontribs)

MediaWiki 1.26.2

PHP 5.5.9-1ubuntu4.17 (apache2handler)

MySQL 5.5.49-0ubuntu0.14.04.1

ICU 52.1

https://kiwki.us/%EB%AF%B8%EB%9E%98%EC%9D%98_%EC%97%AC%EC%B9%9C%EB%8B%98%EC%9D%B4_%EB%82%98%EC%97%90%EA%B2%8C_%EC%9D%B8%EC%82%AC%EB%A5%BC_%EA%B1%B4%EB%84%A4%EC%99%94%EB%8B%A4

Kiwkius (talkcontribs)

It has been resolved.

Kiwkius (talkcontribs)

MediaWiki 1.26.2

PHP 5.5.9-1ubuntu4.17 (apache2handler)

MySQL 5.5.49-0ubuntu0.14.04.1

ICU 52.1

https://kiwki.us/%ED%86%A0%EB%A1%A0:Example

AKlapper (WMF) (talkcontribs)

Does Extension:VisualEditor#Troubleshooting help? If not, could you elaborate?

Reply to "VisualEditor Not Working"

Session Hijacking error after Update 1.19.14

7
194.138.39.53 (talkcontribs)

Hello,

after updating my Intranet-Wiki to Mediawiki 1.19.14 I receive an error on every Password Reset. This can be reproduced by all users: There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Go back to the previous page, reload that page and then try again.

I already tried different things, but can't find a solutiong. My /tmp is writeable. I am using Mediawiki 1.19.14, PHP 5.3.10, MySQL 5.5.35 on an Ubuntu 12.04 LTS. Can anybody please help on this issue?

Thanks in Advance.

AKlapper (WMF) (talkcontribs)

Who triggers that error? MediaWiki itself? Your browser?

194.138.39.53 (talkcontribs)

The error ist triggered by Mediawiki. I commented out the Diffs which came with MW 1.19.14 to includes/special/SpecialChangePassword.php and the errors dissapear.

AKlapper (WMF) (talkcontribs)

https://www.mediawiki.org/wiki/Release_notes/1.19#Changes_since_1.19.13 lists bugzilla:62497 as the culprit. You might want to provide browser information and bring it up there.

Grunny (talkcontribs)

This was a mistake in the backport to MW 1.19.14. I already sent a patch for it to Markus to see if we can get the fix released. If you want to fix it in the mean time, open up includes/specials/SpecialChangePassword.php go to line 154 which should be:

			$loginOnChangeToken = LoginForm::getLoginToken();

And change it to:

			$loginOnChangeToken = Html::hidden( 'wpLoginOnChangeToken', LoginForm::getLoginToken() );
194.138.39.53 (talkcontribs)

This fix works, thank you very much!

117.193.4.10 (talkcontribs)

The error here occurred in a MediaWiki v1.16.5 install in BlueOnyx server. The Apache error log exceeded 3.2GB was corrected by purging it with:

>/var/log/httpd/error_log
Reply to "Session Hijacking error after Update 1.19.14"
TraaBBIT (talkcontribs)

Hello.

I have MW version 1.26

I installed WikiEditor but it is not displayed.

wfLoadExtension( 'WikiEditor' );

# Enables use of WikiEditor by default but still allows users to disable it in preferences

$wgDefaultUserOptions['usebetatoolbar'] = 1;

# Enables link and table wizards by default but still allows users to disable them in preferences

$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;

# Displays the Preview and Changes tabs

$wgDefaultUserOptions['wikieditor-preview'] = 1;

# Displays the Publish and Cancel buttons on the top right side

$wgDefaultUserOptions['wikieditor-publish'] = 1;

AhmadF.Cheema (talkcontribs)

Can you verify that this extension shows up in your Wiki's Special:Version page?

Ciencia Al Poder (talkcontribs)
  • Check Special:Version on your wiki and see if it's listed as an installed extension
  • Be sure you have the Enable enhanced editing toolbar preference turned on (save your preferences just in case)
  • Open the error console of your browser to see if there's any JavaScript error. You can open it usually hitting F12. If other parts of the site that require JavaScript aren't also working (search suggestions, collapsible sections) this may be the problem.
TraaBBIT (talkcontribs)

Versions:

MediaWiki - 1.26.3

PHP - 5.5.33 (cgi-fcgi)

MySQL - 5.6.28

IUC - 52.1

WikiEditor - 0.5.0

I restore my preferences to default.

In error console I have that:

(Firefox)

Internal error

Internal error

Problematic modules: {"startup":"error"} load.php:8:39

<anonimowa> load.php:8

(Chrome)

index.php:373 Uncaught ReferenceError: $ is not defined

pagead2.googlesyndication.com/pagead/js/adsbygoogle.js:9 Uncaught TagError: adsbygoogle.push() error: No slot size for availableWidth=119

index.php?title=Eddard_Stark&action=edit:1 Refused to execute script from 'http://westeros.com.pl/load.php?debug=false&lang=pl&modules=startup&only=scripts&skin=vector' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

https://analytics.example.com/tracking.js Failed to load resource: net::ERR_TUNNEL_CONNECTION_FAILED

Enabler.js:100  [  0.007s] [studio.sdk]

Enabler.js:100  [  0.010s] [studio.sdk]

2Enabler.js:100  [  0.045s] [studio.sdk] Asset properties have been set by host.

2Enabler.js:100  [  0.045s] [Enabler] ad visible

https://encrypted-tbn1.gstatic.com/favicon?q=tbn:ANd9GcRTxIKNDC9iwEZTMiUT201cv6uMsqFBhOjjtaH190-grIcQZ9DX8EOIiVdayj0gVg3HcdPanvJ4R1Cb1NWNljwX Failed to load resource: the server responded with a status of 404 ()

2Enabler.js:100  [  1.053s] [studio.sdk] Using default ad parameters in test environment. Simulating local events.

My webpage is westeros.com.pl

If You can please register there and check it by Yourself.

Ciencia Al Poder (talkcontribs)

http://westeros.com.pl/load.php?debug=false&lang=pl&modules=startup&only=scripts&skin=vector

It says: Fatal error: Class 'ResourceLoaderSchemaModule' not found in /home/budrysl2/domains/westeros.com.pl/public_html/includes/resourceloader/ResourceLoader.php on line 563

I'm wondering if you did an upgrade from older version, and some files failed to overwrite new ones? (that shouldn't happen if you follow instructions of Manual:Upgrading

87.123.37.79 (talkcontribs)

See also Topic:T6f0rvawtv3ktjnk.

I think the problem behind both of these issues is the same: The upgrade has been done incorrectly. The dependencies are missing.

This is not the first issue of that kind in the last days - Trabbit, have you followed the Upgrade guide?

TraaBBIT (talkcontribs)

Yes, I followed the Upgrade guide.

Maybe I should upload MW files again and run update.php again?

TraaBBIT (talkcontribs)

WikiEditor is still not displayed

Ciencia Al Poder (talkcontribs)

And the error message in load.php is still present

ResourceLoaderSchemaModule class is provided by Extension:EventLogging. This extension is required by Extension:GettingStarted, which you have installed, but you don't have EventLogging

Reply to "WikiEditor is not displayed"

Is it possible to have loop in category hierarchy?

4
Franklin Yu (talkcontribs)

For example, category A < category B < category C < category A (where "<" means "is sub-category of"). If possible, how do we prevent/detect that?

Ciencia Al Poder (talkcontribs)

It is possible, and there's no way to prevent that AFAIK. The operation to find such a loop may be expensive, imagine traversing the chain of thousands of categories on Wikipedia... Doing this may require a Maintenance script, or a bot that would download all categories and constructing the tree client-side. I've done a quick search to see if Pywikibot has a script to do this but I haven't found it.

Franklin Yu (talkcontribs)

Thank you. I believe detecting the cycles regularly (annually or monthly) is expensive (roughly time and memory each time, since in most Wikipedia it is a sparse graph). However, I am wondering whether it would be less expensive to detect once, and monitor for change? Categories does not get changed frequently.

Ciencia Al Poder (talkcontribs)

Well, it depends on how long a chain of categories can be, because the code would need to perform a query for each step of the chain to find the parent one, because there's no way to retrieve the entire chain on a single query, unless a new table is created tracking all subcategories of a given category recursively.

This check can also be triggered more often than you think, for example, adding/changing a category on a template used on a lot of pages.

Anyway, feel free to request such a feature on phabricator

Reply to "Is it possible to have loop in category hierarchy?"
TraaBBIT (talkcontribs)

Hello.

After upgrading MW to 1.26 when I want to go to MediaWiki:Vector.css I grt error:

Fatal error: Class 'Symfony\Component\Process\ProcessBuilder' not found in /home/budrysl2/domains/westeros.com.pl/public_html/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php on line 286

Could anybody help me with that?

87.123.37.79 (talkcontribs)

You need to run composer install in geshi's directory

TraaBBIT (talkcontribs)

OK.

So I need to install composer in GeSHi folder?

87.123.3.29 (talkcontribs)

Yes, you need to run the command composer install in that folder. Once that finished successfully, you can delete the composer file again.

The other option is that you take the files from the tarball. For the tarball, which contains the extensions (it is the bigger one on releases.wikimedia.org), this tarball will already contain the things, so that you do not have to use composer at all.

TraaBBIT (talkcontribs)

So it is from this site:

https://releases.wikimedia.org/mediawiki/1.26/

and this file:

mediawiki-1.26.3.tar.gz  

?

This comment was hidden by 87.123.3.29 (history)
87.123.3.29 (talkcontribs)

Exactly, the file mediawiki-1.26.3.tar.gz will contain what you need.

TraaBBIT (talkcontribs)

I deleted all from SyntaxHighlight_GeSHi catalog and upload files from mediawiki-1.26.3.tar.gz.

Still have this error:

Fatal error: Class 'Symfony\Component\Process\ProcessBuilder' not found in /home/budrysl2/domains/westeros.com.pl/public_html/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php on line 286

TraaBBIT (talkcontribs)

I fixed that.

I go to SyntaxHighlight_GeSHi catalog.

There instal again composer and then run:

php composer.phar require symfony/finder

to instal Symphony

Nobita931 (talkcontribs)

Hello. I want install the wikia skin on my wiki. I can install the wikia skin in my wiki?

AhmadF.Cheema (talkcontribs)

I don't know if things have changed or not, but this was the case two years ago: Thread:Project:Support desk/Wikia's Oasis Skin

Reply to "Skin"