How to edit a 500’d page on Mediawiki

Putting this up on my site because I’d like not to have to research this again. Ad rem: If a page is throwing a 500 error, but other pages on the wiki are otherwise available, chances are something in the code is causing the MediaWiki to misbehave. So, API time:

  1. Retrieve the wikitext through API: https://zelda.fandom.com/index.php?title=Wind_Temple&action=raw
  2. Save that text somewhere or just keep the page open.
  3. Open a working page then paste a fragment of the wikitext and hit preview.
  4. The goal here is to check which part of the wikitext is causing the error.
  5. Once you’ve isolated the error, fix it. In my case, the error was a bad template call.
  6. The 500’d page is likely not editable through normal means, so that means more API time Mr Frodo!
  7. To submit an edit through API, use the edit function together with your CSRF token.
  8. I strongly recommend using Special:APISandbox to make this merely tedious, not rage inducing.
  9. Lather, rinse, repeat.

At least, that’s how it worked for this particular issue.

Leave a Reply

Your email address will not be published. Required fields are marked *