MediaWiki

From iFixWiki
Jump to: navigation, search

MediaWiki is a free and open-source wiki software that is the backbone of this website. It is also what powers Wikipedia.

Issues[edit]

MediaWiki does not function when magic quotes are enabled[edit]

When installing or upgrading wikipedia an error comes up that says MediaWiki does not function when magic quotes are enabled. This can be resolved easily by adding a few lines of code to a file in the MediaWiki directory.

Solution 1

  1. Navigate to your site's home directory (the directory in which MediaWiki is installed)
  2. Open or create a new file called php.ini
  3. Copy and paste the code below [1]
  4. Save and refresh the installation/upgrade page
; Magic quotes
;

; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = Off

; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
magic_quotes_runtime = Off

; Use Sybase-style magic quotes (escape ' with '' instead of \').
magic_quotes_sybase = Off

Solution 2

Sometimes Solution 1 does not work and the error persists. In this case, make sure the file php.ini is in the home directory and has the correct code. Copy and paste the php.ini file to all the folders in the home directory, just the home directory you do not need to copy and paste it into the subfolders.[2]

References[edit]

  1. http://php.net/manual/en/security.magicquotes.disabling.php
  2. https://www.mediawiki.org/w/index.php?title=Topic:Sdpbmy9q9e0ttp6k&topic_showPostId=sdqynq3665q16mov#flow-post-sdqynq3665q16mov