Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Numinix MediaWiki Demo
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Manual/Short URL
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Troubleshooting == <!--T:68--> === Ampersand (<tvar name=1>&</tvar>) problem === <!--T:69--> </translate> <translate><!--T:70--> The ampersand problem shows up when you have page titles with symbols in them (such as <tvar name=1></tvar>) which, despite being correctly encoded in the link, are not being passed correctly from <tvar name=2>mod_rewrite</tvar> to the script.</translate> <translate><!--T:71--> This manifests in 404 page-not-found errors, because the title gets cut off at the special character.</translate> <translate><!--T:72--> For example, clicking on a link to "John & Maria's page" gets a 404, because MediaWiki is looking for a page named "John ".</translate> <translate><!--T:73--> This is because ampersands in long-form names are treated as [[w:Query string|query string]] separators, and would never reach the PHP [[w:Run time (program lifecycle phase)|runtime environment]].</translate> <translate><!--T:74--> This is caused by an old and problematic <tvar name=1>mod_rewrite</tvar> bug.</translate><ref><translate><!--T:138--> [<tvar name=url>https://bz.apache.org/bugzilla/show_bug.cgi?id=34602</tvar> Bugzilla <tvar name=1>mod_rewrite</tvar> for ampersand bug], partially resolved for some users, but only after 13 years</translate></ref> <translate> <!--T:75--> '''Solution:''' </translate> <translate><!--T:76--> This issue is caused by the <tvar name=1><code>?title=$1</code></tvar> portion of rewrite rules like <tvar name=2><code>/index.php?title=$1</code></tvar> which is completely unnecessary and harmful.</translate> <translate><!--T:77--> MediaWiki parses paths directly from the <tvar name=1>REQUEST_URI</tvar>, so rewrite everything to <tvar name=2>/index.php</tvar>.</translate> <translate> === Purging cache === <!--T:84--> <!--T:85--> If you notice that your changes to <tvar name=1><code></code></tvar> in <tvar name=2><code>LocalSettings.php</code></tvar> are not being reflected in <tvar name=3><code>example.com/wiki/Main_Page</code></tvar>, it may be due to MediaWiki's caching of the links according to previous settings. <!--T:86--> Go to <tvar name=1><code>example.com/wiki/Main_Page?action=purge</code></tvar> to force MediaWiki to regenerate the cached links. <!--T:87--> Also you can: </translate> # <translate><!--T:88--> execute the MySQL query <tvar name=1><code>TRUNCATE objectcache;</code></tvar>, or</translate> # <translate><!--T:89--> Ensure <tvar name=2></tvar> is updated (if <tvar name=3></tvar> is enabled, all you have to do is edit <tvar name=1></tvar> to purge it)</translate> <translate>
Summary:
Please note that all contributions to Numinix MediaWiki Demo may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Project:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)