Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki

From iFixWiki
Revision as of 01:21, 27 September 2015 by Ifixadmin (talk | contribs) (Created page with "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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 [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