From iFixWiki

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


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]

Google Workspace SMTP Relay does not work[edit]

When trying to setup Google Workspace SMTP Relay using TLS encryption, sending a test email through Special:Emailuser might yield the following error:

  Failed to connect to tls:// [SMTP: Failed to connect socket: (code: -1,


Use SSL encryption instead. Gmail will still send the emails through TLS encryption. Replace domain with your site's domain name.

  $wgSMTP = [
    'host'      => 'ssl://',
    'IDHost'    => '',
    'localhost' => '',
    'port'      => 465,