# Project:Support desk

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

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

## Monospaced font in 1.26 wikieditor

5

Ever since I updated to MW 1.26, when editing pages my monospaced font on the edit page is gone (however not on pages edit via the semantic forms extension ("edit with form"). Do you know how I can restore the monospaced font? Thanks a lot,

Hans

Go to Special:Preferences#mw-prefsection-editing.

Thanks, and sorry I forgot to mention that this setting does not seem to have any effect. Neither does setting the number of columns to e.g. 55. However setting a smaller number of rows, e.g. 5, does work. Puzzling, isn't it?

Maybe you have Universal Language Selector installed? This was happening some time ago because of a bug on that extension

No, Universal Selector is not installed. - The wrong font also appears in the "old" editor window, i.e. when WikiEditor extension is disabled. However the monospaced font correctly appears when editing the page content (free text area) using the Semantic Forms extension.

Reply to "Monospaced font in 1.26 wikieditor"

## Category not showing his pages.

5
Some time ago , the category pages displayed their indexed articles . But now , category pages show only the old pages indexed but the new pages are not displayed even if I create a new category and index some pages to this category pages are not shown . There is another error may be related : can not exclude any categories. Trying rebuildall give me back a error:

INSERT IGNORE INTO categorylinks (cl_from,cl_to,cl_sortkey,cl_timestamp,cl_sortkey_prefix,cl_collation,cl_type) VALUES ('28','Normativa_Interna','PORTARIA NORMATIVA Nº 49, DE 27 DE AGOSTO DE 2015','20160526211606','','uppercase','page')

Erro: 1305 PROCEDURE dbwikiprf.do_insert_category_closure_catlinks does not exist.

Versions:

MediaWiki 1.26.2

PHP 5.4.16 (apache2handler)

ICU 50.1.2

Elasticsearch 2.3.1

Extensions:

CategoryTree

CiteThisPage

Interwiki

Nuke

CategoryTree

Cite

ImageMap

InputBox

ParserFunctions

PDFEmbed

Poem

SyntaxHighlight

Apparently you have a database trigger on the categorylinks table, but MediaWiki does not use triggers... And that trigger is broken.

I've searched for "do_insert_category_closure_catlinks" but I haven't found anything. Maybe you or somebody else added custom triggers to MediaWiki database? You should find out what triggers are on the database and fix or delete them

Thanks, but excepting the trigger have you ever seen a error about not working to put pages on categories or denied to delete categories? I'm suspecting is some error on database but, it' s weird.

You probably don't get the error on normal edits because the update on categories is delayed on the Job queue, and if an error happens there it won't be shown. But the error is caused by the trigger. The categorylinks table is what tracks what pages are on each category, and if the trigger is making updates on that table to fail, categories will stop tracking changes on them.

Thanks one more time , but, if I don't find any trigger on my database (I'll check it tomorrow - not access at now), I should to do another thing else?

Reply to "Category not showing his pages."

## Find my draft article

5

New to Wiki. I create a draft using the "article creation wizard." I signed out of Wiki and came back in. This novice can no longer find the draft of the article created.

What is the "article creation wizard"? Some third-party extension? Is that a public wiki that you refer to? Any link to it?

It was something that I stumbled on, through Wiki, that had a stage progression in creating a new article. I have since found where "Draft:" articles are located. My opinion, is that "article creations" by novices, such as myself, is NOT an easy process.

Here it is: https://en.wikipedia.org/wiki/Draft:Coach_Steve_C._Tucker I found it by viewing your global contributions.

Thank you! I just recently discovered how to find articles by going to the "Contributions" tab. However, I sincerely thank you for your efforts!

## db query error when moving pages

4

I've enabled php and sql errors and this is what Im getting.

# Database error

A database query error has occurred. This may indicate a bug in the software.

• Query: SELECT /*! STRAIGHT_JOIN */ page_namespace,page_title,page_id FROM mw_pagelinks,mw_page WHERE pl_namespace = '2' AND pl_title = 'PAGE_SOURCE' AND (page_id=pl_from) ORDER BY pl_from LIMIT 100
• Function: BacklinkCache::queryLinks
• Error: 2006 MySQL server has gone away (localhost)

This is the error im getting when moving pages. It happens so far in all pages I've tested. Could someone help me with it?

Also I'm getting a php error which Im not too sure it's related to the problem above which is:

I have nginx set up incorrectly apparently and all the edits even from different users are showing the same ip (which is the server ip), I haven't been able to solve that yet , not sure if it helps or has anything to do with the error above.

http://dev.mysql.com/doc/refman/5.7/en/gone-away.html has information about this error, which seems a problem in mysql configuration. If saving/moving a page takes too long (30 seconds or more), it could be a timeout, caused by mysql server very busy or similar. If it happens almost instantly, it could be a serious bug of mysql server which killed the thread executing your query.

About the wrong IP, you must set $wgSquidServers Regarding the Move issue, it's instantaneous, and it didn't use to happen, it started happening out of nothing. So I dont think ive changed anything in the mysql configuration. bump? Reply to "db query error when moving pages" ## Random Navbox Behavior 1 Getting some random behaviour on my Navboxes. http://jurassicoutpost.com/encyclopedia/index.php?title=Main_Page#The_Franchise Odd </tr> appearing. Strange column behaviour. I've updated all of the templates as well as Common.css Thoughts? Reply to "Random Navbox Behavior" ## 403 forbidden error when editing page 2 Only noticed this today so I don't know how long it has been like this. The wiki returns a 403 forbidden error when I try to edit, view history, delete etc one page. Is this a sign of a larger problem? I was worried because somebody created an account and uploaded a random picture earlier today, which I thought was suspicious. The page is http://coasterpedia.net/wiki/Star_Jet_%28Casino_Pier%29 I would really appreciate some advice on what to do. Maybe unrelated to your problem, but you should upgrade the wiki to version 1.25.6. This will close open security holes, which you are currently having. Such 403 errors are often caused by mod_security, which disallows the according requests. Reply to "403 forbidden error when editing page" ## Editing perrmision 2 I want to remove permission to editing articles on my Wiki for all users except me (I'm administrator). Is that enought: $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['user']['edit'] = false;$wgGroupPermissions['sysop']['edit'] = false;

If your users are not member of other groups, of which at least one does have the edit right, then this is enough. By default, users belong to the "*" and to the "user" group only and depending on settings they might become member of the "autoconfirmed" group after time/edits.

$wgGroupPermissions['sysop']['edit'] = false; removes edit permissions from administrators. You want to set that permission to true, instead. Reply to "Editing perrmision" ## 500 error when uploading/viewing images 5 I recently install mediawiki and have not had any issues creating and editing wiki pages until I attempted to upload a new image to the wiki server. I used the upload file page, after I browsed to my 60k image I selected upload file. After that I received a 500 error. I also get this on any page that attempt to view the image. Gallery of new files, File lists.. etc. Error: 500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed. I've check my permission on the following files to try and fix the issue. C:\php\ IUSR Permission Full Control C:\inetpub\wwwroot\wiki\images IUSR Permission Full Control I can also see the image in C:\inetpub\wwwroot\wiki\images\e\e5 Any ideas of how to fix this issue. System Information: MediaWiki: 1.19.2 PHP Version: 5.4.6 MySQL: 5.5.27 OS: Windows Server 2012 Enterprise Web Server: IIS 8 LocalSettings.php $wgUseImageMagick = true; $wgImageMagickConvertCommand = 'C:\Program Files (x86)\ImageMagick-6.7.9-Q16\convert.exe';$wgEnableUploads = true; $wgFileExtensions = array('png', 'gif', 'jpg', 'jpeg', 'doc', 'xls', 'mpp', 'pdf', 'ppt', 'tiff', 'bmp', 'docx', 'xlsx', 'pptx', 'ps');$wgMimeDetectorCommand = "file -bi"; $wgHashedUploadDirectory = false;$wgCacheDirectory = "$IP/cache";  I also created an error log by adding show exceptions and debuglogfile option. $wgShowExceptionDetails = true;
$wgDebugLogFile = 'C:\inetpub\wwwroot\wiki\error-debug_log.txt';  I'm not seeing a smoking gun in the log, so would this mean a permission issue? Here's the log output from when I tried to upload a new image. Start request POST /wiki/index.php?title=Special:Upload HTTP HEADERS: CONTENT-TYPE: multipart/form-data; boundary=---------------------------7dc8b2a70ed0 CONTENT-LENGTH: 73599 DNT: 1 USER-AGENT: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; WOW64; Trident/6.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729; Zune 4.7) REFERER: http://myhost/wiki/index.php?title=Special:Upload HOST: myhost COOKIE: mywikiUserID=2; mywikiUserName=ebm; mywikiToken=6dc05764f1653a44f083e819d21ade4c; mywiki_session=c6b16529aa3a5585d958146bb2bc1550 ACCEPT-LANGUAGE: en-US,en;q=0.8,ja;q=0.7,ko;q=0.5,zh-Hant;q=0.3,zh-Hans;q=0.2 ACCEPT-ENCODING: gzip, deflate ACCEPT: image/jpeg, application/x-ms-application, image/gif, application/xaml+xml, image/pjpeg, application/x-ms-xbap, */* CONNECTION: Keep-Alive CACHE-CONTROL: no-cache CACHES: EmptyBagOStuff[main] SqlBagOStuff[message] SqlBagOStuff[parser] session_set_cookie_params: "0", "/", "", "", "1" LocalisationCache: using store LCStore_CDB Warning: no dba extension found, using emulation. User: cache miss for user 2 Connecting to localhost mywiki... Profiler::instance called without$wgProfiler['class'] set, falling back to ProfilerStub for safety
Connected to localhost mywiki.
Connecting to localhost mywiki...
Connected to localhost mywiki.
User: logged in from session
Fully initialised
User: cache miss for user 2
User: logged in from session
Unstubbing $wgParser on call of$wgParser::firstCallInit from unknown
Parser: using preprocessor: Preprocessor_DOM
Unstubbing $wgLang on call of$wgLang::_unstub from unknown
User::getBlockedStatus: checking...
FSFile::getProps: Getting file info for C:\php\uploadtemp\phpD270.tmp
MimeMagic::doGuessMimeType: getimagesize detected C:\php\uploadtemp\phpD270.tmp as image/jpeg
MimeMagic::guessMimeType: guessed mime type of C:\php\uploadtemp\phpD270.tmp: image/jpeg
MimeMagic::improveTypeFromExtension: improved mime type for .jpg: image/jpeg

mime: <image/jpeg> extension: <jpg>

UploadBase::verifyExtension: mime type image/jpeg matches extension jpg, passing file
UploadBase::detectScript: checking for embedded scripts and HTML stuff
ZipDirectoryReader: Fatal error: zip file lacks EOCDR signature. It probably isn't a zip file.
ForeignAPIRepo: HTTP GET: http://commons.wikimedia.org/w/api.php?aisha1base36=cupt8rlsj0ezk8 grtpenzmfhxwsire3&aiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata%7 Cmime&list=allimages&format=json&action=query&redirects=true
FSFileBackend::getFileListInternal() given directory does not  exist: 'C:\inetpub\wwwroot\wiki/images/thumb/Testebm.jpg'
LocalFile::purgeThumbList: array ()
DatabaseBase::query: Writes done: INSERT IGNORE INTO image  (img_name,img_size,img_width,img_height,img_bits,img_media_type,img_major_mime,img_minor_mime,img_timestamp,img_description,img_user,img_user_text,img_metadata,img_sha1) VALUES ('Testebm.jpg','72611','720','480','8','BITMAP','image','jpeg','20120927234345','test','2','Redmond\\emarq','a:2:{s:8:\"Software\";s:50:\"Microsoft Windows Live Photo Gallery 15.4.3555.308\";s:22:\"MEDIAWIKI_EXIF_VERSION\";i:2;}','cupt8rlsj0ezk8grtpenzmfhxwsire3')
IP: 172.19.41.60
WikiPage::doEditUpdates: No vary-revision, using prepared edit...
Saved in parser cache with key mywiki:pcache:idhash:37-0!*!*!*!*!*!* and timestamp  20120927234345
DatabaseBase::query: Writes done: REPLACE INTO objectcache (keyname,value,exptime) VALUES  ('mywiki:pcache:idhash:37-0!*!*!*!*!*!*','uTÛnâ0 ís¾ÂÍãJ”\\ l\rª´BÝ ‰K$Ðî³Ifƒ—Ä¶l§@«þûzÂ¥¶ð€tÎØsæÌ1s\ZFÔO˜6 ç•U•õi ÑWC»Ô/—°³~ßÐ8èQ - ë\rÚêÑ Ü¶ZÄ›Á6IHÁKn‰ %µõ ÷«e\nÆHM„Ì€¤² –’° õÇK¤±-Ø)&2ÂEZT®Èð$hGÁC/ìFdµw½¼%”ª  ÓyU‚°_Ô=í  ÃŸ¨z ò· ©åRœš ØÜkµ ½ƒò { l~ªOYº ²åvM6°\'\0é–o8U5Ny¶ffMã^+¸ýöþ%8€å¥3…•ŠDAèTE½(îÄ.Áfè]ØqFN˜È+–Ã„‹ñûŒ ôõÍq¡ã†nÀ\\j M\"@÷¹-à´‚ðžú?y téÚÁª¼û§rÄïñö«[ëÃGëšxÔÀÇYƒqÛ-Ç¥Ó×¬þî@ì¸\0¦Óõ\\¡ŸM çzÚYÐ‚ ×\n0<cá8´ñ³¡]r P¯Èï¯hÐ?ž ñ >¡p ™üÅŠ ôþ   ËÆ ÊÆý¨{*³ª€kµ t‘j®l“‹ß9»¿<Ö=SS é+‡ÐÏÃ£ IÙ ñÁ ˜ \\äWèq²kŸŸ2nÔRn\0ù \rûG³ - h{‘ <µœ GËé cà¼ðûçÜ #yŠße2 \\lnš¯þÆ­+ƒ]\" žî  ÆÁ‡Â )¾nÈ>$%ý mêÍÕ áÝý]ç¬kˆ Å}­«¶´®sOšã®gˆb>‡RXÆ…™ Ù”å<=Äàí?','20120928234345') BacklinkCache::getLinks: from DB BacklinkCache::partition: got from database BacklinkCache::getLinks: from DB BacklinkCache::getLinks: from DB OutputPage::sendCacheControl: private caching; ** Request ended normally Start request GET /wiki/index.php?title=File:Testebm.jpg HTTP HEADERS: CONTENT-TYPE: CONTENT-LENGTH: 0 DNT: 1 USER-AGENT: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; WOW64; Trident/6.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729; Zune 4.7) REFERER: http://myhost/wiki/index.php?title=Special:Upload HOST: myhost COOKIE: mywikiUserID=2; mywikiUserName=ebm; mywikiToken=6dc05764f1653a44f083e819d21ade4c; mywiki_session=c6b16529aa3a5585d958146bb2bc1550 ACCEPT-LANGUAGE: en-US,en;q=0.8,ja;q=0.7,ko;q=0.5,zh-Hant;q=0.3,zh-Hans;q=0.2 ACCEPT-ENCODING: gzip, deflate ACCEPT: image/jpeg, application/x-ms-application, image/gif, application/xaml+xml, image/pjpeg, application/x-ms-xbap, */* CONNECTION: Keep-Alive CACHE-CONTROL: no-cache CACHES: EmptyBagOStuff[main] SqlBagOStuff[message] SqlBagOStuff[parser] session_set_cookie_params: "0", "/", "", "", "1" LocalisationCache: using store LCStore_CDB Warning: no dba extension found, using emulation. User: cache miss for user 2 Connecting to localhost mywiki... Profiler::instance called without$wgProfiler['class'] set, falling back to ProfilerStub for safety
Connected to localhost mywiki.
Connecting to localhost mywiki...
Connected to localhost mywiki.
User: logged in from session
Fully initialised
User: cache miss for user 2
User: logged in from session
RepoGroup::findFile: got File:Testebm.jpg from process cache
Unstubbing $wgLang on call of$wgLang::getCode from unknown
Unstubbing $wgParser on call of$wgParser::firstCallInit from unknown
Parser: using preprocessor: Preprocessor_DOM
File::transform: Doing stat for mwstore://local-backend/local-thumb/Testebm.jpg/720px- Testebm.jpg
RepoGroup::findFile: got File:Testebm.jpg from process cache
Title::getRestrictionTypes: applicable restrictions to [[File:Testebm.jpg]] are  {edit,move,upload}
OutputPage::checkLastModified: client did not send If-Modified-Since header
Article::view using parser cache: yes
Parser cache options found.
ParserOutput cache found.
Article::view: showing parser cache contents
ContextSource::getContext (ImageHistoryPseudoPager): called and $context is null. Using RequestContext::getMain() for sanity File::transform: Doing stat for mwstore://local-backend/local-thumb/Testebm.jpg/120px-Testebm.jpg ForeignAPIRepo: HTTP GET: http://commons.wikimedia.org/w/api.php?aisha1base36=cupt8rlsj0ezk8grtpenzmfhxwsire3&aiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata%7Cmime&list=allimages&format=json&action=query&redirects=true Class PEAR_Error not found; skipped loading Class SkinVector not found; skipped loading RepoGroup::findFile: got File:Testebm.jpg from process cache DatabaseBase::query: Writes done: UPDATE user SET user_touched = '20120927234353' WHERE user_id = '2' User: cache miss for user 2 User: loading options for user 2 from database. RepoGroup::findFile: got File:Testebm.jpg from process cache RepoGroup::findFile: got File:Testebm.jpg from process cache Title::getRestrictionTypes: applicable restrictions to [[File:Testebm.jpg]] are {edit,move,upload} User: cache miss for user 2 User: loading options for user 2 from database. Title::getRestrictionTypes: applicable restrictions to [[File:Testebm.jpg]] are {edit,move,upload} OutputPage::sendCacheControl: private caching; Thu, 27 Sep 2012 23:43:50 GMT ** Request ended normally ` I was able to figure out what the problem was. The problem in my case was related to how IIS was configured for FastCGI. In the FastCGI settings section of IIS I noticed that the Max Instances was set to 0. I increased the value to 4 and it worked. I'll need to adjust this setting more to find the sweet spot. Hi, I have the same problem. I uploaded a file and it encountered the 500 - Internal sever problem. I can see the image which is within the link of the file (e.g. /roots/images/3/image.png) However, I cannot view the "File:image.png" and it return 500 - Internal sever problem! It is very frustrated. Could you please tell me is it similar to your problem? Thanks, Make sure you grant Modify rights to the upload folder for the IISUser account. Reply to "500 error when uploading/viewing images" ## How to edit menu's 2 Hi all, I like to know how I can edit menu's. I've searched for it for a while now, and are only able to find howto edit the navigation menu. But can't find it for the toolbox, user and edit menu's. We want move and remove some of the menu items. MediaWiki 1.26.3, 10.0.23-MariaDB-0+deb8u1-log (10.0) , PHP 5.6.20-0+deb8u1 (fpm-fcgi) . https://permanentfuturelab.wiki/wiki/Permanent_Future_Lab_Wiki Thanks, Jurjen Hi Jurjen, these or at least most of these menus should be configurable using hooks. E.g. PersonalUrls can be used to modify personal user menu or SkinTemplateNavigation to change the tabs. Reply to "How to edit menu's" ## Parsoid installation? 4 Hi, I want to use VisualEditor extension on my wiki. VisualEditor extension needs to Parsoid. So, i must install Parsoid. I am using Digital Ocean VPS with Serverpilot. Do you know better guide for that? And if i install to Parsoid, must i install NodeJS? Thank you for answers. I installed Parsoid and NodeJS. I have error: "parsoidserver http 0" require_once "$IP/extensions/VisualEditor/VisualEditor.php";

Localsettings.php

// Enable by default for everybody

$wgDefaultUserOptions['visualeditor-enable'] = 1; // Don't allow users to disable it$wgHiddenPrefs[] = 'visualeditor-enable';

$wgVisualEditorParsoidURL = 'http://localhost:8142';$wgVirtualRestConfig['modules']['parsoid'] = array(

// URL to the Parsoid instance

// Use port 8142 if you use the Debian package

'url' => 'http://localhost:8142',

// Parsoid "domain", see below (optional)

'domain' => 'localhost',

// Parsoid "prefix", see below (optional)

'prefix' => 'localhost'

);

Settings.js

parsoidConfig.setMwApi({ prefix: 'localhost', uri: 'http://viki.gameofthronestr.com/api.php' });

See Parsoid for installation instructions. If you run into errors, feel free to post the exact error message and steps how to get the error message. (In the last comment I have no idea what is copied from some file and what is some output and what is some comment text, due to missing text formatting)

Hi Malyacko,

When i click edit link i get an error. This is the error:

"parsoidserver-http: HTTP 0 problem"

How i fix it?