{"id":629,"date":"2025-09-16T14:18:49","date_gmt":"2025-09-16T14:18:49","guid":{"rendered":"https:\/\/tagaziel.net\/?p=629"},"modified":"2026-03-24T16:08:17","modified_gmt":"2026-03-24T16:08:17","slug":"how-to-edit-a-500d-page-on-mediawiki","status":"publish","type":"post","link":"https:\/\/tagaziel.net\/?p=629","title":{"rendered":"How to edit a 500&#8217;d page on Mediawiki"},"content":{"rendered":"\n<p>Putting this up on my site because I&#8217;d like <em>not<\/em> 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: <\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Retrieve the wikitext through API: <a href=\"https:\/\/zelda.fandom.com\/index.php?title=Wind_Temple&amp;action=raw\"><code>https:\/\/zelda.fandom.com\/index.php?title=Wind_Temple&amp;action=raw<\/code><\/a><\/li>\n\n\n\n<li>Save that text somewhere or just keep the page open. <\/li>\n\n\n\n<li>Open a working page then paste a fragment of the wikitext and hit preview. <\/li>\n\n\n\n<li>The goal here is to check which part of the wikitext is causing the error. <\/li>\n\n\n\n<li>Once you&#8217;ve isolated the error, fix it. In my case, the error was <a href=\"https:\/\/zelda.fandom.com\/wiki\/Wind_Temple?diff=1004345&amp;oldid=986894\">a bad template call<\/a>.<\/li>\n\n\n\n<li>The 500&#8217;d page is likely not editable through normal means, so that means <em>more API time<\/em> Mr Frodo!<\/li>\n\n\n\n<li>To submit an edit through API, use the <a href=\"https:\/\/www.mediawiki.org\/wiki\/API:Edit\">edit function<\/a> together with your CSRF token.<\/li>\n\n\n\n<li>I strongly recommend using <a href=\"https:\/\/zelda.fandom.com\/wiki\/Special:ApiSandbox\">Special:APISandbox<\/a> to make this merely tedious, not rage inducing.<\/li>\n\n\n\n<li>Lather, rinse, repeat. <\/li>\n<\/ol>\n\n\n\n<p>At least, that&#8217;s how it worked for this particular issue. <\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Putting this up on my site because I&#8217;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: At least, that&#8217;s how it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[36,37,35],"class_list":["post-629","post","type-post","status-publish","format-standard","hentry","category-ramblings","tag-api","tag-it-crimes","tag-mediawiki"],"_links":{"self":[{"href":"https:\/\/tagaziel.net\/index.php?rest_route=\/wp\/v2\/posts\/629","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tagaziel.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tagaziel.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tagaziel.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tagaziel.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=629"}],"version-history":[{"count":1,"href":"https:\/\/tagaziel.net\/index.php?rest_route=\/wp\/v2\/posts\/629\/revisions"}],"predecessor-version":[{"id":630,"href":"https:\/\/tagaziel.net\/index.php?rest_route=\/wp\/v2\/posts\/629\/revisions\/630"}],"wp:attachment":[{"href":"https:\/\/tagaziel.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tagaziel.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=629"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tagaziel.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}