# 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 ask: IRC, mailing lists, Q&A etc.

## 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

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

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.

Cool! Thanks!

## Extension:Semantic Glossary plural variant

1

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"

## talamantezjesse0

2

create an account

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

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

It has been resolved.

## VisualEditor Not Working

2

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

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

Reply to "VisualEditor Not Working"

## Session Hijacking error after Update 1.19.14

7

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.

Who triggers that error? MediaWiki itself? Your browser?

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.

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.

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() );
```

This fix works, thank you very much!

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"

## WikiEditor is not displayed

9

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;

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

• 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.

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.

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

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?

Yes, I followed the Upgrade guide.

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

WikiEditor is still not displayed

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

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

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.

Thank you. I believe detecting the cycles regularly (annually or monthly) is expensive (roughly ${\displaystyle O(V)}$ 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.

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?"

## MediaWiki:Vector.css error

9

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?

You need to run composer install in geshi's directory

OK.

So I need to install composer in GeSHi folder?

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.

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)

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

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

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

## Skin

2

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

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"