MediaWiki Troubleshooting & FAQ — 50+ Common Problems Solved
In this tutorial, you'll find solutions to the most common MediaWiki problems. This is Lesson 10 of our project: Build Your Own Documentation Wiki — your problem-solving reference.
What You'll Find Here
- 50+ common errors organized by category
- Step-by-step solutions for each
- FAQ covering topics from every lesson
- Quick-reference commands and fixes
Bookmark this page. When something breaks, come here first.
Installation Errors
"Error connecting to database"
Why: MySQL is not running, wrong credentials, or the database doesn't exist.
Fix:
- Start MySQL (XAMPP Control Panel → MySQL → Start)
- Wait 10 seconds, refresh the page
- If it still fails, check your database name in LocalSettings.php:
- Look for
$wgDBname— it should be the database you created
- Look for
- Verify MySQL credentials:
- Default XAMPP: user =
root, password = (empty) - If you changed it, update
$wgDBpasswordin LocalSettings.php
- Default XAMPP: user =
"LocalSettings.php not found"
Why: You ran the installer but didn't download and place LocalSettings.php in the wiki folder.
Fix:
- Re-run the installer by visiting
http://localhost/mediawiki - At the end, download LocalSettings.php
- Move it to the
mediawikifolder (same directory asindex.php)
White screen (blank page) after installation
Why: PHP error, missing extension, whitespace in LocalSettings.php.
Fix:
- Open LocalSettings.php in a text editor
- Make sure there are NO characters (not even spaces) before
<?phpon the first line - Make sure there is NO
?>at the end of the file (it's optional and causes issues) - Check PHP error log:
- XAMPP:
C:\xampp\php\logs\php_error_log - Linux:
/opt/lampp/logs/php_error_log
- XAMPP:
- Enable
mbstringinphp.ini: uncommentextension=mbstring
"The file you uploaded is corrupt or has an incorrect extension"
Why: File upload is disabled or file size is too large.
Fix:
- In LocalSettings.php, add:
$wgEnableUploads = true; $wgMaxUploadSize = 1024 * 1024 * 10; // 10 MB
- In
php.ini, increase these values:upload_max_filesize = 10M post_max_size = 10M
Editing Errors
Red link stays red even after creating the page
Why: Browser cache or page cache.
Fix:
- Hard refresh:
Ctrl+F5(Windows/Linux) orCmd+Shift+R(Mac) - Purge the page: append
?action=purgeto the URL
"You do not have permission to edit this page"
Why: User group restrictions or page protection.
Fix:
- Are you logged in? If not, log in
- Is your account new? It might not be autoconfirmed yet (24-hour wait)
- Is the page protected? Look for a lock icon. Only admins can edit protected pages
- Check LocalSettings.php for permission settings
Wiki markup displays as raw text (not rendered)
Why: The page uses <nowiki> tags, or there's a syntax error.
Fix:
- Check for
<nowiki>or<pre>tags around your text - Make sure you're not editing inside a
<code>block - Preview before saving — raw markup in preview means the syntax is wrong
"Edit" tab is missing
Why: You're not logged in, or the page is in a read-only namespace.
Fix:
- Log in
- Check if the page is in the Special: namespace (it can't be edited)
- Some extensions hide the edit tab for non-admins
Edit conflicts
Why: Two users edited the same page at the same time.
Fix:
- You'll see a diff showing your version and the other user's version
- Manually merge the changes into one page
- Avoid by editing less busy pages, or coordinate with your team
Permission Errors
"This action has been automatically identified as harmful"
Why: AbuseFilter or anti-spam measures triggered.
Fix:
- You might be adding external links too quickly
- If you're an admin, you can bypass the filter
- Adjust
$wgCaptchaTriggersin LocalSettings.php to be less strict
Users can register but can't edit
Why: Autoconfirmed requirement or email verification.
Fix:
- By default, users must wait 24 hours before editing (autoconfirmed)
- Reduce the wait:
$wgAutoConfirmAge = 3600;(1 hour) - Or remove it:
$wgAutoConfirmAge = 0; - If email verification is required, users must verify their email first
"Your IP address has been blocked"
Why: You were blocked by an admin, or your IP was caught in a range block.
Fix:
- If you know the admin, contact them and ask to be unblocked
- If this is your own wiki, log in as the admin and go to Special:Unblock
- If you can't log in as admin, you can unblock via the command line:
php /opt/lampp/htdocs/mediawiki/maintenance/unblock.php --unblock YourUsername
Extension Errors
"The requested extension does not exist"
Why: Wrong extension name in wfLoadExtension().
Fix:
- Check the folder name in
extensions/ - The name in
wfLoadExtension('Name')must match the folder name exactly - Example:
extensions/VisualEditor/→wfLoadExtension('VisualEditor')
VisualEditor shows "Error contacting the Parsoid server"
Why: Parsoid is not running or not configured.
Fix:
- MediaWiki 1.42+ bundles Parsoid. Run from the mediawiki directory:
composer install --no-dev
- For older versions, you need to run Parsoid as a separate service (see the VisualEditor documentation)
Scribunto: "Lua error: ..."
Why: Your Lua code has a bug.
Fix:
- The error message includes the line number
- Common mistakes:
- Missing
endstatement os.date()used but not returned- Using
frame.args[1]when the parameter is named differently - Module function not returning a string
- Missing
Performance Errors
Wiki is very slow
Why: No caching, large database, too many extensions.
Fix:
- Enable file cache:
$wgUseFileCache = true; - Enable APCu:
$wgMainCacheType = CACHE_ACCEL; - Disable unused extensions
- Optimize MySQL: run
OPTIMIZE TABLEon wiki tables - Check if a specific page loads slowly (might have too many template calls)
Pages take a long time to save
Why: Large templates, complex parser functions, or slow database.
Fix:
- Limit template nesting depth:
$wgMaxPPNodeCount = 10000;(default is higher) - Reduce the number of templates on a single page
- Check MySQL performance
Search & Navigation Errors
Search returns no results
Why: Search index needs to be rebuilt.
Fix:
php /opt/lampp/htdocs/mediawiki/maintenance/rebuildall.php
Or use the CirrusSearch extension (much better search).
"The page you requested doesn't exist"
Why: Wrong URL or the page was deleted.
Fix:
- Check the URL for typos
- Search for the page title
- If the page was deleted, only admins can see it in Special:DeletedPages
FAQ
Is MediaWiki free?
Yes, completely free and open source (GPL v2). No paid versions, no premium features, no hidden costs.
Can I use MediaWiki for a commercial website?
Yes. The GPL license allows commercial use. Many companies use MediaWiki for internal documentation and customer-facing wikis.
What's the difference between MediaWiki and WikiMedia?
This is the most common confusion:
- MediaWiki = the software (what you installed)
- Wikimedia = the organization that runs Wikipedia
- Wikipedia = the encyclopedia website
Think of it like: WordPress (the software) vs Automattic (the company) vs a blog (the website).
How do I change my wiki's logo?
Upload a logo image (140x140 pixels recommended) and add to LocalSettings.php:
$wgLogos = [
'1x' => "$wgResourceBasePath/resources/assets/logo.png",
'icon' => "$wgResourceBasePath/resources/assets/logo.png",
];
Or simpler: upload the image to your wiki and set:
$wgLogo = "$wgServer$wgScriptPath/images/your-logo.png";
How do I change the site name?
Edit the $wgSitename variable in LocalSettings.php:
$wgSitename = "My New Wiki Name";
The site name appears in the page title and in search results.
Can I import content from another wiki?
Yes. Use Special:Import to upload an XML file from another MediaWiki wiki. You can also use the importDump.php maintenance script for large imports:
php maintenance/importDump.php --conf ../LocalSettings.php < dump.xml
How do I reset my admin password?
If you can't log in, reset via the command line:
php /opt/lampp/htdocs/mediawiki/maintenance/changePassword.php --user=YourUsername --password=NewPassword
If you don't have command line access, reset through the database:
UPDATE user SET user_password = CONCAT(':B:1234567890:NewPasswordHash')
WHERE user_name = 'YourUsername';
But this requires knowing how to generate the password hash. The command line method is easier.
How do I move a wiki to a different server?
- Back up the database (mysqldump)
- Back up the files (tar/zip)
- Copy both to the new server
- Install MediaWiki on the new server (same version)
- Restore the database
- Restore the files
- Update
$wgServerand$wgDB*settings in LocalSettings.php - Run
php maintenance/update.php
MediaWiki is hard. Is there an easier wiki?
Alternatives:
- DokuWiki: No database, flat-file storage, simpler markup. Great for small wikis.
- BookStack: Beautiful interface, more modern than MediaWiki. Good for documentation.
- Wiki.js: Node.js-based, modern, supports multiple editors.
Each has tradeoffs. MediaWiki is the most powerful but has the steepest learning curve. Choose based on your needs.
Where can I get help?
- MediaWiki.org — Official documentation
- MediaWiki FAQ — More questions and answers
- MediaWiki mailing list — Ask the community
- Stack Exchange — Q&A site
Final Words
You've completed all 10 lessons. You started with your first Wikipedia edit and ended with a fully functional, backed-up, extended wiki.
Here's what you built:
| Lesson | What You Did |
|---|---|
| 1 | Made your first wiki edit on Wikipedia |
| 2 | Installed MediaWiki with XAMPP |
| 3 | Created your Main Page with wikitext |
| 4 | Built 3 linked pages with categories |
| 5 | Created reusable templates and an infobox |
| 6 | Set up user pages, talk pages, and help pages |
| 7 | Configured user permissions and security |
| 8 | Installed VisualEditor, Scribunto, and more |
| 9 | Backed up everything and set up caching |
| 10 | Learned how to fix common problems |
Your documentation wiki is ready. Add more pages, invite your team, and keep learning. Every expert was once a beginner — and you're no longer a beginner.
Built by the developers of DodaTech
Doda Browser, DodaZIP & Durga Antivirus Pro