MediaWiki

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

= Issues =

MediaWiki does not function when magic quotes are enabled
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
 * 4) Save and refresh the installation/upgrade page
 * Magic quotes

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

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

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

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.

= References =