Project:Support desk

(Redirected from Project:Support)
Jump to: navigation, search
vde   This page is for questions relating to the MediaWiki software.

Welcome to's Support desk, the central on-wiki place to ask MediaWiki questions!

The greater purpose of this page is to make our Manual and other available help so good that you do not have to come here to ask questions, or making them easier to find.

There are other ways for of communication as well (IRC, mailing lists etc.). Read more here.

Before you post

Post a new question

  1. To help us answer your questions, please always indicate which versions you are using:
    • MediaWiki (reported by your wiki's Special:Version page)
    • PHP (likewise)
    • Database (likewise, e.g. MySQL 5.5)
  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 discussion".

Archiving topics

Topics are automatically archived when they have been inactive for three weeks. If a question you have asked is approaching this limit and still has not been answered, please 'bump' it to prevent it being archived. However do not 'bump' for other reasons.

Start a new discussion
First page
First page
Previous page
Previous page
Last page
Last page

Easy way to add media (photos, audio, video) when creating an article?

I have searched the extensions and have not found an easy way for users to add a photo or other media and files to articles.

Does anyone know a way to accomplish this? Is there an extension I have not found?

Thank you!

Mpjbay (talk)18:19, 28 July 2014

Page error

Good morning.

My page is

I don't know but now it is not working. There is some error. Could somebody help me?

Thank You

TraaBBIT (talk)18:19, 28 July 2014

How do I change the logo hover/tooltip text "Visit the main page"

I am redirecting back to the home page of my wesbite and need to know how to change the default hover or tooltip text.

Thank you in advanced :)

Mpjbay (talk)06:18, 28 July 2014

Did you search the content of the files for the string shown in the tooltip text already?

AKlapper (WMF) (talk)09:09, 28 July 2014

This is the text, which is shown when you hover your wiki's logo and this text is coming from the page MediaWiki:Tooltip-p-logo. Change this page to change the text!, 28 July 2014

Perfect thank you. I am still learning how everything works.

Mpjbay (talk)18:15, 28 July 2014

Can't delete image uploads. "Error deleting file: Could not create directory 'mwstore://local-backend/local-deleted/a/x/b'."

Product Version
MediaWiki 1.23.1
PHP 5.5.9-1ubuntu4.3 (apache2handler)
MySQL 5.5.38-0ubuntu0.14.04.1

Ubuntu Server is running on a Virtual Machine. My /var/www/html/mediawiki/images directory is mounted to my storage drive as the boot drive is only for the OS. The Wiki is private.

LocalSettings.php does not have $wgUploadDirectory or $wgUploadPath set, so those are the default. $wgDeletedDirectory is a mount on another file server which has the same permissions as the images directory. 755 & www-data as both owner & group.

Directory: /var/www/html/mediawiki/images (mounted to a different drive than the rest of /var/www/html/mediawiki) /mnt/fileserver/deletedwikifiles

php.ini has file_uploads set to on and my version means that safe_mode isn't the issue. I read about a bug regarding upgrading MediaWiki from 1.22 to 1.23 causing file uploads to be broken, but that was traced back to shared hosts and this server isn't shared.

Any help is appreciated.

TremorAcePV (talk)16:39, 28 July 2014

Jobs won't run, templates not updating.

My wiki is not running jobs by itself - they collect but I have to run runJobs.php to complete them. And even after completing them, a template does not update.

Also, I've had five jobs which haven't completed for months now. see this graph:

This is really annoying me now, any help is greatly appreciated. This is the job count:, 28 July 2014


The issue that jobs generally do not run automatically was a problem in MediaWiki 1.22. It should have been solved in MediaWiki 1.23 (which you are running currently).

That jobs do just not do anything at all can happen sometimes. Reasons for this may vary, e.g. the page, which should be indexed by the job may have been deleted in the meantime or another job already did, what this job is about to do. In this case it is save to go to the database table jobs and to manually delete the according rows., 28 July 2014

File uploads aren't working correctly. Image not found after upload.

My Wiki is private, otherwise I'd link it. I'm using ImageMagick. It's version 6.7.7 installed via "sudo apt-get install mediawiki" yesterday.

Product Version
MediaWiki 1.23.1
PHP 5.5.9-1ubuntu4.3 (apache2handler)
MySQL 5.5.38-0ubuntu0.14.04.1

Error I see in thumbnail for newly uploaded file:

Error creating thumbnail: /bin/bash: /w/extensions/ImageMagick: No such file or directory
Error code: 127

When I click the file, it says "Not found". The directory has 775 permissions and is owned by www-data. I'm not sure what the issue is. :/ Google and other people's solutions haven't helped.

TremorAcePV (talk)17:02, 25 July 2014

Are you sure, that ImageMagick is installed in extensions folder? Please notice, that the install of MediaWiki using apt isn't supported at all.

Florianschmidtwelzow (talk)14:39, 26 July 2014

Thank you for the reply.

I installed MediaWiki by downloading the .tar.gz from the download page here. It's ImageMagick that is getting to me as it's a bit more complicated to compile and such.

I uninstalled ImageMagick via "sudo apt-get remove ImageMagick" and manually compiled it within /var/www/html/w/extensions/ImageMagick.

I am still having the "Not found" issue as well as thumbnails being broken. That'd be ImageMagick 6.8.9, the latest version.

I am guessing that it is user error because when I remove $wgUploadDirectory & $wgUploadPath from LocalSettings.php, uploading files works almost entirely fine.

If I change $wgUploadDirectory & $wgUploadPath, this is what causes it to break. I suppose my issue is somewhat resolved, but I'd like to figure out why it was failing.

I was trying $wgUploadDirectory = "$IP/images/public";. Path was the same. Then I tried "$wgScriptPath/images/public", but both produced this error on top of "Error deleting file" or "Error creating directory". Permissions never changed though.

Anyway, I'm going to make a new ticket because now the issue is different. "Error deleting file: Could not create directory "mwstore://local-backend/local-deleted/t/l/p"

TremorAcePV (talk)14:04, 28 July 2014

Help with skin

Hi how can I add options in skin that allows me to lets the user choose the default logo or use there own because I doint know how to add options in skins., 27 July 2014

Skins should only get options, saved for the user, not set some. In your skin template you can use $this->getUser()->getOption() to get an Option (e.g. "skin" to get the skin name).

With an Extension you can add Useroptions to save some values you want.

Florianschmidtwelzow (talk)05:30, 28 July 2014

Ok. How do I add options like they are in default setting.php but just for the skin., 28 July 2014


not in DefaultSettings.php :) You need to create a new extension, which handles this. It can add options to a User with $user->setOption() and the skin can (while initialisation) read this values with $user->getOption(). The functions (and all other) is documented here:

How you can develop an Extension, you can read here:

Florianschmidtwelzow (talk)12:21, 28 July 2014

database is suffering from InnoDB corruption, specifically in the mw_objectcache table.

Edited by another user.
Last edit: 09:33, 28 July 2014

I've been having some MySQL issues, and it appears to be stemming from the mediawiki db. Below the message I received from my server support, thoughts? The mediawiki db is patjk_wikidb.

I've checked for CREATE DATABASE statements for each of the affected databases:

root@host [~/support/462326]# zcat databases_with_innodb.sql.gz | grep 'CREATE DATABASE'
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `horde` /*!40100 DEFAULT CHARACTER SET latin1 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `patjk_gallery2` /*!40100 DEFAULT CHARACTER SET latin1 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `patjk_magen` /*!40100 DEFAULT CHARACTER SET latin1 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `patjk_vbdb` /*!40100 DEFAULT CHARACTER SET latin1 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `patjk_wikidb` /*!40100 DEFAULT CHARACTER SET latin1 */;

Unfortunately, it looks like the roundcube database is not present, and the patjk_wikidb is likely to be truncated. Here are the errors that occurred:

root@host [~/support/462326]# cat mysqldump_error.log 
Warning: option 'max_allowed_packet': unsigned value 1331691520000 adjusted to 2147483648
mysqldump: Error 2013: Lost connection to MySQL server during query when dumping table `mw_objectcache` at row: 1697279

According to MySQL's internal uptime clock the database was started roughly 48 minutes ago, which was just before I noticed that the dump was no longer running:

| Uptime | 2915 |

Here are the MySQL error log messages that coincided with the apparent failure:

2014-07-27 05:30:43 29972 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.6.16' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server (GPL)
2014-07-27 06:46:57 76670b90 InnoDB: Assertion failure in thread 1986464656 in file line 432
InnoDB: Failing assertion: btr_page_get_prev(next_page, mtr) == buf_block_get_page_no(btr_pcur_get_block(cursor))
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: about forcing recovery.
10:46:57 UTC - mysqld got signal 6 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed, 
something is definitely wrong and this may fail.

It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 1975685 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x77452f00
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 76670358 thread_stack 0x30000

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (b7fed08): SELECT /*!40001 SQL_NO_CACHE */ * FROM `mw_objectcache`
Connection ID (thread ID): 3089

The manual page at contains
information that should help you find out what is causing the crash.
140727 06:46:58 mysqld_safe Number of processes running now: 0
140727 06:46:58 mysqld_safe mysqld restarted
2014-07-27 06:47:00 0 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
2014-07-27 06:47:00 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2014-07-27 06:47:00 30625 [Note] Plugin 'FEDERATED' is disabled.
2014-07-27 06:47:00 30625 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2014-07-27 06:47:00 30625 [Note] InnoDB: The InnoDB memory heap is disabled
2014-07-27 06:47:00 30625 [Note] InnoDB: Mutexes and rw_locks use InnoDB's own implementation
2014-07-27 06:47:00 30625 [Note] InnoDB: Compressed tables use zlib 1.2.3
2014-07-27 06:47:00 30625 [Note] InnoDB: Using Linux native AIO
2014-07-27 06:47:00 30625 [Note] InnoDB: Not using CPU crc32 instructions
2014-07-27 06:47:00 30625 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2014-07-27 06:47:00 30625 [Note] InnoDB: Completed initialization of buffer pool
2014-07-27 06:47:00 30625 [Note] InnoDB: Highest supported file format is Barracuda.
2014-07-27 06:47:00 30625 [Note] InnoDB: The log sequence numbers 133808751880 and 133808751880 in ibdata files do not match the log sequence number 133810301875 in the ib_logfiles!
2014-07-27 06:47:00 30625 [Note] InnoDB: Database was not shutdown normally!
2014-07-27 06:47:00 30625 [Note] InnoDB: Starting crash recovery.
2014-07-27 06:47:00 30625 [Note] InnoDB: Reading tablespace information from the .ibd files...
2014-07-27 06:47:06 30625 [Note] InnoDB: Restoring possible half-written data pages 
2014-07-27 06:47:06 30625 [Note] InnoDB: from the doublewrite buffer...
InnoDB: Last MySQL binlog file position 0 344931686, file name ./mysql-bin.000030
2014-07-27 06:47:09 30625 [Note] InnoDB: 128 rollback segment(s) are active.
2014-07-27 06:47:09 30625 [Note] InnoDB: Waiting for purge to start
2014-07-27 06:47:09 30625 [Note] InnoDB: 5.6.16 started; log sequence number 133810301875
2014-07-27 06:47:09 30625 [Note] Server hostname (bind-address): '*'; port: 3306
2014-07-27 06:47:09 30625 [Note] IPv6 is available.
2014-07-27 06:47:09 30625 [Note] - '::' resolves to '::';
2014-07-27 06:47:09 30625 [Note] Server socket created on IP: '::'.
2014-07-27 06:47:10 30625 [Note] Event Scheduler: Loaded 0 events
2014-07-27 06:47:10 30625 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.6.16' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server (GPL)

Based on these symptoms and messages, I believe your patjk_wikidb database is suffering from InnoDB corruption, specifically in the mw_objectcache table.

If this were a MyISAM able, we could probably recover it with mysqlcheck or myisamrepsair. However, mysqlcheck can only repair InnoDB tables by dumping and rebuilding them, which is the same procedure we just attempted, so this is certain to fail as well.

We could attempt to recover the database with the innodb_force_recovery option. However, this is risky. It can cause even worse damage. Additionally, your VPS does not have enough free space to make an up-to-date raw copy of the InnoDB tablespaces before attempting this.

I'm not familiar with the wiki software you are using, so I'm not sure how vital the mw_objectcache table is to its operation, or if it can be replaced or regenerated easily. Discarding this table might be a more viable option if a repair using the gentlest settings of innodb_force_recovery do not succeed.

Another option which you might consider is consulting a developer or DBA with experience recovering InnoDB tables.

I wish I had better news for you. I'm afraid there is not going to be a good way to get rid of this overly large InnoDB tablespace without losing at least some of your patjk_wikidb data. Again, we can attempt innodb_force_recovery if you request it, but this poses the risk of more data loss., 27 July 2014


First of all this seems not to be a MediaWiki, but a MySQL problem.

A complete MediaWiki DB contains the tables listed on DB.

If you think that your objectcache table is corrupted, you can truncate it any time - MediaWiki will rebuild its contents.

The content of other tables however, cannot be rebuilt that easily: E.g. the content in the tables text, pages and revision is unique and is required for MediaWiki to function properly. Should these tables be corrupted as well, you should use a working backup to restore them (and with them the whole DB)., 27 July 2014

Thanks for the info. How do you recommend I proceed with this? I'm not too familiar with this stuff. I'd be willing to hire someone to see if they can resolve this (please email me if interested *pj*kca*rds at gmail dot com [remove *'s]). The ibdata1 file on my server is huge now too, and needs to be cleaned., 28 July 2014


You can truncate the objectcache table. This will keep the table structure, but remove all its content thus making this table smaller (close to 0kb). However, MediaWiki should automatically do some kind of garbage collection in that table anyway; if you have a big wiki, this table will (automatically) become big again. And this will not solve the following problem:

Try to create a full backup of all the databases in your MySQL server (using the mysqldump tool), but with the error message you get, I don't know, if using mysqldump is still possible.

As far as I know the InnoDB ibdata1 file will never shrink and there also is no easy way to make it smaller again. A force recovery can give you a chance to get to your data. Be patient and use the lowest value possible to get the server started so you can make a backup of as much data as possible.

Another question: Do you have a current backup of the database? If so, that would make things way easier! Is it only your stuff in this MySQL server is it a shared MySQL server? If it's only your stuff on the server, you could try the following:

If you have a backup, then stop MySQL and remove all the databases, ib_logfile* and ibdata* files. When you start MySQL again it will create a new fresh shared tablespace. This table space will then not be corrupted, hopefully solving your initial issue. Then, import your database dump again.

If there are any underlying hardware issues, those need to be addressed first., 28 July 2014

$wgMaxImageArea using GD results in WSOD

Sorry. Forgot the following.

Mediawiki 1.23.1 PHP 5.3.24 MySQL 5.1.70 ImageMagick 6.5.4-7 iMagick module 3.0.1


(For the record, I tried searching the threads before posting, but the request keeps timing out).

We cannot use ImageMagick on our shared server due to proc_open() being disabled for security reasons.

I changed the $wgUseImageMagick = false to use the GD library as a test. When I do this, I get this message: 'Error creating thumbnail: Invalid thumbnail parameters'.

I've read in the manual that sometimes setting $wgMaxImageArea higher solves this problem (I currently have it set at 5000*5000), but when I do, it results in a WSOD. Commenting it out allows the page to display normally. I've double checked all the usual culprits (forgetting some syntax, etc).

Debugging (as per the manual) does not produce any clues or even output. There is nothing in the error log.

I have 'memory_limit' set to 64 in the LocalSettings.php file.

Any help appreciated.

Mitzzzz (talk)15:22, 26 July 2014

To get the error message of the WSOD, look at Manual:How to debug. That's usually caused by a fatal PHP error, which is usually logged in the apache error_log file.

If your image is huge, the problem may be an "out of memory". You may try increasing memory_limit to something higher (128M or even 256M).

Ciencia Al Poder (talk)09:38, 28 July 2014

Liquid thread version 3

Does anyone have source codes for liquid thread version 3.0 I would like to try it even though it haven't been updated and is no longer being developed., 27 July 2014

The source code of Extension:LiquidThreads is in the Git repository as linked on Extension:LiquidThreads. What you find there is what has been developed., 27 July 2014

Hi what about source code for liquid thread version 3 which was developed outside of git., 27 July 2014

Outside git? You obviously know more than I do. Where should that be? The official Git repo is the one linked on the page., 27 July 2014

Ok but wikimedia can develop extensions in private before releasing it in the public., 27 July 2014

Sure and how do you want to get hold of private data? I mean: If you know the devs, write them and ask. But I would not expect much from that., 27 July 2014

Now is the question: The info comes from where? I don't know software projects of Wikimedia developed in private. And LiquidThreads version 3 was cancelled, like the infoboxon the Extensionpage say:

> Development of Version 3.0 was cancelled, too.

Florianschmidtwelzow (talk)05:24, 28 July 2014

Delete unused images

Hello, I am trying to delete unused images from my wiki. I found the following code on a forum somewhere but I cannot get it to work:

lynx -dump http://wiki_site/wiki/index.php/Special:UnusedFiles | grep "/File:" | gawk '{print $2}' | sort | uniq | gawk -F\File '{print "File"$2}' > ./delete_files
php /var/www/html/wiki/maintenance/deleteBatch.php ./delete_files

It keeps saying that "lynx" and "gawk" commands were nto found. I get how to use the deleteBatch.php script. What I really need is an easy way to get a list of all the files that show up in "Special:UnusedFiles".

Any help is appreciated.

Zackmann08 (talk)19:43, 6 September 2012

I would try something simpler. For example I would start with the following.

wget -q -O - http://localhost/wiki/index.php/Special:UnusedFiles | grep "/File:" - > ./delete_files && gedit ./delete_files

Then use gedit to clean things up before using the deleteBatch.php script. I think that "gawk '{print $2}'" should be "gawk '{print $2}' -- -", and "sort | uniq" should be "sort -u -" etc. but I don't use the gawk command very much so you need someone more familiar with it to help you.

Allen4names (talk)05:17, 7 September 2012

First off, thank you very much for the help! I was actually able to get SOMETHING to run using that. The file (./delete_files) is turning up with tons of extra information though. Is there any easy way to isolate the file names? For example, in the following line (which represents a single file):

<div class="thumb" style="width: 150px;"><div style="margin:15px auto;"><a href="/wiki/File:WIP.jpg" class="image"><img alt="WIP.jpg" src="/images/thumb/b/b0/WIP.jpg/119px-WIP.jpg" width="119" height="120" /></a></div></div>
<a href="/wiki/File:WIP.jpg" title="File:WIP.jpg">WIP.jpg</a><br />

I would like to just have:

Any quick and easy way to do that?

Zackmann08 (talk)14:34, 7 September 2012

You could try the following.

cp -n delete_files delete_files.bak | replace 'href=\"/wiki/' '
' '\" class' '
' -- delete_files && cat delete_files | grep 'File' - | sort -u - > delete_files_sorted

Copy and paste this as a single line. Please let me know if this works.

Allen4names (talk)16:49, 7 September 2012

Not quite... I get the following. (I limited it to only include 2 of the many files listed)


                        <div class="thumb" style="width: 150px;"><div style="margin:34.5px auto;"><a File:ISR.jpg="image"><img alt="ISR.jpg" src="/images/thumb/2/2e/ISR.jpg/120px-ISR.jpg" width="120" height="81" /></a></div></div>
<a File:ISR.jpg" title="File:ISR.jpg">ISR.jpg</a><br />
                        <div class="thumb" style="width: 150px;"><div style="margin:36.5px auto;"><a File:ITA.jpg="image"><img alt="ITA.jpg" src="/images/thumb/1/1f/ITA.jpg/120px-ITA.jpg" width="120" height="77" /></a></div></div>
<a File:ITA.jpg" title="File:ITA.jpg">ITA.jpg</a><br />


<a File:ISR.jpg" title="File:ISR.jpg">ISR.jpg</a><br />
<a File:ITA.jpg" title="File:ITA.jpg">ITA.jpg</a><br />
                        <div class="thumb" style="width: 150px;"><div style="margin:34.5px auto;"><a File:ISR.jpg="image"><img alt="ISR.jpg" src="/images/thumb/2/2e/ISR.jpg/120px-ISR.jpg" width="120" height="81" /></a></div></div>
                        <div class="thumb" style="width: 150px;"><div style="margin:36.5px auto;"><a File:ITA.jpg="image"><img alt="ITA.jpg" src="/images/thumb/1/1f/ITA.jpg/120px-ITA.jpg" width="120" height="77" /></a></div></div>

Thank you SO MUCH for your help!

Zackmann08 (talk)17:20, 7 September 2012

By "as a single line" I meant that you should enter the code so that it looks like the three lines below.

$ cp -n delete_files delete_files.bak | replace 'href=\"/wiki/' '
> ' '\" class' '
> ' -- delete_files && cat delete_files | grep 'File' - | sort -u - > delete_files_sorted

I am sorry if my mistake caused you to missunderstand what I meant.

Allen4names (talk)03:15, 8 September 2012

Thanks for working on this script, but please do not use HTML output as an API. This can and will break when you least expect it, nor is it very reliable or stable.

We have an API for this, check API:Querypage. For example:

When you parse the JSON, you'll find the title property in the query.querypage.results array. Aside from JSON, there are many other API:Formats available.

Krinkle (talk)22:15, 22 September 2012

#tagging, can we do this and if so how?

  1. tagging, can we do this and if so how?

Thank you in advanced!

Mpjbay (talk)06:58, 28 July 2014

Hello! Can you give mor einformation about what you want to do? "Tag" can have more then one meaning: Tags

Florianschmidtwelzow (talk)07:28, 28 July 2014

Tag that be display results if clicked. Similar to old IRC #tags or more recent Twitter or Instagram.

So if people have tagged a location, if someone clicks that tag everything with the location tag will display on a result screen.

Mpjbay (talk)08:17, 28 July 2014

I think there isn't the same function, but a similar called categories. You can add Categories to each page and open the category page to list all pages of the category.

Florianschmidtwelzow (talk)08:22, 28 July 2014

I have created categories. The problem I foresee is that the articles under the categories will eventually be large i number so I thought having a way to tag will help if someone is looking for said article in a specific location easier to sort.

It may make more sense if you have a look at the wiki I chucked together today.

I tried to strip down the wiki to users navigate using the categories in the side bar. After a category is clicked they can then add a new article into that category. The issue down the road will be there will be a lot of articles for different geographical locations and someone may want to only view articles related to their area.

Mpjbay (talk)08:28, 28 July 2014

i am trying to figure out the best way to set up groups or categories. please read...

I have a lifetime of tech experience but I am a newb with MediaWiki.

I have started a project which you can find here

I installed MediaWiki which was a piece of cake but I am having difficulties figuring out how to start the configuring it to fit my needs.

I believe what I need is pretty straight forward. If you can help please respond.

I would like a home page with several categories that a user can click to view or search. (If I have the terminology wrong please correct me. Ex: Do I need groups, categories, something else?)

The top level categories are

artist dj promoter party event venue and/or location set recorders lighting visuals

Once I have these categories set up I would like to add the ability for users to comment on a page in each category as well as edit or create their own pages in each category.

Any help would be greatly appreciated.



Mpjbay (talk)23:46, 12 September 2013

I realize this may have already been covered in the past but I searched through support posts and did not find what I was looking for.

Mpjbay (talk)00:00, 13 September 2013

Categories are your best shot, I think, but you may also want to look at Semantic MediaWiki and check out the SMW Community.

MarkAHershberger(talk)16:05, 13 September 2013

Great thank you Mark.

Another question I have, I know this will be nothing to most of you, but how do I add categories from the admin account?


Mpjbay (talk)18:46, 13 September 2013

There isn't anything to add from the admin account. Once you specify a category in the wikitext of a page, it is created.

MarkAHershberger(talk)16:24, 15 September 2013

Hi Mark,

I finally decided to tackle this project. I found a very simple solution. I edited the Sidebar to fit my needs. I spent the day messing with this today and was able to get pretty close to something that will suit my needs. You can see what I have done here

Thank you for your emails.

Mpjbay (talk)06:30, 28 July 2014

Auto suggest not working

I've installed several Wikis and never had a problem with Auto Suggest in the search box. It's not working on my current wiki. I've tried suggestions found elsewhere using the different variables to no avail:


This stuff always works; what could be different about this wiki?

MediaWiki  1.19.13
PHP     5.2.17 (cgi-fcgi)
MySQL   5.1.73-cll
Timneu22 (talk)13:52, 27 July 2014

Maybe the problem is that the wiki requires login? When I am not allowed to see the pages, it's only logical that I also may not get them displayed in the search results., 27 July 2014

I can disable that but the issue persists. (I just disabled.)

I've used all the same permissions schemes on other wikis and Auto Suggest had no problems.

Timneu22 (talk)14:26, 27 July 2014

Hi why not try to update php to 5.3 or higher and then upgrade to latest mediawiki version which is 1.23.1 and see if that fixes the issue because if the results is not showing it could mean javascript not working properly., 27 July 2014

I am stuck on 1.19 because of the PHP version. That's a non-starter.

Timneu22 (talk)16:36, 27 July 2014

Ah, it looks like the issue is that some PHP 5.3 code is in this version.

                $text = preg_replace_callback( '#<a .*?</a>#', function ( $matches ) use ( &$masked ) {
                        $sha = sha1( $matches[0] );
                        $masked[$sha] = $matches[0];
                        return "<$sha>";
                }, $text );
PHP Parse error:  syntax error, unexpected T_FUNCTION in {path}/wiki/includes/api/ApiFormatBase.php on line 279

How can I rewrite this for my PHP version? "use" is 5.3-specific.

Timneu22 (talk)16:53, 27 July 2014

Is that really exactly what you have in your LocalSettings.php? If yes, then try the following:

$wgUseAjax = true;
$wgEnableMWSuggest = true;
$wgVectorUseSimpleSearch = true;
Florianschmidtwelzow (talk)05:32, 28 July 2014

How do you make edit notices?

How do you make edit notices on your own wiki?

Cregavitch (talk)01:27, 28 July 2014

You mean?

Florianschmidtwelzow (talk)05:21, 28 July 2014

Help with .vertical-gradient: (#fff, #f6f6f6, 50%, 100%);

Hi how can I set

.vertical-gradient: (#fff, #f6f6f6, 50%, 100%);

in css codes because I would like to convert it from .less to .css please. I am updating a skin I am currently changing., 27 July 2014

What you have there is a less mixin. This one is defined in resources/mediawiki.less/mediawiki.mixins.less where you will see, to which CSS this code is equivalent., 27 July 2014

Ok how do I convert it to css or do I have to use .less instead of .css., 27 July 2014

The values inside .vertical-gradient: (); are variables for the mixin as you find it in resources/mediawiki.less/mediawiki.mixins.less., 27 July 2014

Errors on load.php in Apache logfile

Edited by another user.
Last edit: 15:03, 24 July 2014

Dear sir/madam,

Since I'm using MediaWiki 1.23.1, I have a lot of times that the CSS file for the application is not loading when I open a page. When I refresh the page, it loads and my page looks fine. This happends multiple times each day. When I was looking in the Apache Error log for the MediaWiki site, I found the following line on the times of the error I receive:

Fatal error:  Call to a member function checkUrlExtension() on a non-object in /var/www/load.php on line 37, referer:

When looking through the load.php file, I noticed the $wgRequest object isn't defined before calling the checkUrlExtension method:

  1. wfProfileIn( 'load.php' );
  3. // URL safety checks
  4. if ( !$wgRequest->checkUrlExtension() ) {
  5.         return;
  6. }

I cannot find anyone else on the Internet with the same issue and cannot find anything on the MediaWiki site, so I'm almost 100% sure it has to do with my settings. Can anyone give me a pointer to the reason of this strange behaviour?

Wiki-url: (ignore the certificate warning, the certificate is not signed by any third party CA's)

Application versions:

  • MediaWiki: 1.23.1
  • PHP: 5.4.4
  • MySQL: 5.5.37

Installed module:

  • CategoryTree – (b879dbd) 19:58, 24 June 2014
  • SyntaxHighlight -
  • MobileFrontend – (f4fabf4) 19:32, 26 June 2014

Kind regards, Daryl Stark, 24 July 2014


$wgRequest will be defined and initialized when the class WebRequest is created the first time, normally in the process of WebStart (require __DIR__ . '/includes/WebStart.php';), so it's right, that load.php uses it.

I can reproduce this error for some loads on your page, but if i open the requested URL directly i can't. Are you sure, that the fatal error is related to your problem?! Are there any other erros before/after?

Florianschmidtwelzow (talk)17:07, 24 July 2014

It's absolutly related to the issue since I always check the logs when it happends and the timestamp is always the same, so it have to be. I also notice my plugins sometimes don't get loaded, in which cases the error also popups.

I have the same with the direct requests, but I think that mainly has to do with the caching.

DaSt1986 (talk)19:27, 24 July 2014

I installed MediaWiki in a new directory, created a new database and a new virtual host on the same server and I still have the same errors and behaviour. Should be something with the serverconfig or a mistake in the MediaWiki code.

DaSt1986 (talk)19:35, 27 July 2014

I see search results page instead of article

I've recently upgraded from MediaWiki 1.22 to 1.23, and I notice now that when I type in a search term, I always see a search results page, even if there is an article that matches the name.

  • Before, if I typed "XYZ" and if there is an article named "XYZ", the system displayed that article right away.
  • Now, I get a results page that says "There is a page named XYZ on this wiki", lists that page and then a bunch of other pages that link to it.

Is there a setting that's changed that I'm not aware of? Can somebody point me in the right direction?


Supasaru (talk)19:09, 25 July 2014

I have the same behaviour, I find it annoying, but since it worked before and there anyway are obviously no efforts to change this, I fear some people might even think that's intended., 25 July 2014

In my opinion that's the best way to handle this (but, like i said, that's my personal opinion). What is, if i want to search for the string "XYZ" in other articles? There is only one button "search", not like in past a button for "full article" and "search".

Florianschmidtwelzow (talk)14:36, 26 July 2014

Click on "containing XYZ" and you will be brought to the search page. The fact that hitting enter opens the search, although a page with exactly this name is present, is really confusing. Afterwards I always have to click the page name as if MediaWiki was asking me, if I really meant my search serious. This change lowers user experience. Or is there an option, which I could set to work around that bug?, 26 July 2014

Wikipedia, the biggest user of the MediaWiki software (if I'm not mistaken) continues to bring you directly to page XYZ, and not a search results page.

This leads me to believe there's a setting somewhere, but where? Anybody have an idea?

Supasaru (talk)23:48, 26 July 2014

I could not believe that, but you are right: While on Wikipedia this works correctly, it is broken e.g. on a system of mine (running MW 1.23.1). I also want to know, how I can fix this for my system!

There is no fitting documentation at Manual:Configuration_settings#Search, 27 July 2014

Ähm, yeah :) I have tested it now with Vector skin on my private wiki (which is running 1.24wmf12), and if i search for a page which exist, i will be redirected to this, not to the search result page. In my custom skin i will be redirected to the search result page ever, so do you use a custom skin? Then you must change the search button from fulltext to go :)

Florianschmidtwelzow (talk)12:58, 27 July 2014

Yes, I do use a custom skin. I still remember how I put a comment in my skin file at the place, where the MediaWiki devs changed the display of the search buttons, because I couldn't get it to work properly for me: The display of the buttons alwaysgot messed up, so I decided to leave them both for now. But does that (the presence of two instead of one button) also influence what happens when I hit enter (because that is where I see the problem and where it annoys me most)?, 27 July 2014

I'm using Vector with no custom skinning, so I don't understand what's causing a search results page to appear.

Supāsaru14:57, 27 July 2014

$wgLogo is working on the Desktop PC, but not on mobile.

Hi! I've finally (about) figured out MediaWiki's setup (it was extremely hard, but I can now use template infoboxes among other things) but I am still lost when it comes to certain things. The main problem I've been having is that my logo (as defined by $wgLogo) works on the desktop computer, but not on mobile devices. I have MediaWiki 1.21 installed, and my logo appears fine on each and every page that is pulled up on the Desktop PC. When any page is viewed on mobile, however, the standard Wikipedia logo is displayed. I have tried editing both LocalSettings.php and DefaultSettings.php. I have even overwritten the main wiki.png file with my own image. The Wikipedia logo isn't stored on my server, rather, it is being linked to off of the Wikipedia server. How can I keep this logo from being displayed when my page is loaded on mobile devices? Bttfvgo (talk) 01:07, 27 July 2014 (UTC)

Bttfvgo (talk)01:07, 27 July 2014

Hello, is MobileFrontend installed? Which version? Can you give us the link to your site?

Florianschmidtwelzow (talk)12:44, 27 July 2014

Help css code

Hi I am having a problem with this

div#content {
  margin-left: 10em;
  /* @embed */
  background-image: url(images/border.png);
  background-position: top left;
  background-repeat: repeat-y;
  background-color: white;
  color: black;
  direction: ltr;
  -webkit-overflow-scrolling: touch;

Code because it is causing the content to be squized together if there is just a little content. it causes everthing to be put to the right and have big grey space to right if there is no content or if there are little words. I think the cause of the problem is


but I am using that code to allow the top bar and siebar to slide when the user scrolls. please help., 27 July 2014
First page
First page
Previous page
Previous page
Last page
Last page