Toggle search
Search
Toggle menu
notifications
Toggle personal menu
Editing
MediaWiki
From iFixWiki
Views
Read
Edit
View history
associated-pages
Page
Discussion
More actions
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!
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''' # Navigate to your site's home directory (the directory in which MediaWiki is installed) # Open or create a new file called ''php.ini'' # Copy and paste the code below <ref>http://php.net/manual/en/security.magicquotes.disabling.php</ref> # Save and refresh the installation/upgrade page <pre> ; 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 </pre> <hr> '''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.<ref>https://www.mediawiki.org/w/index.php?title=Topic:Sdpbmy9q9e0ttp6k&topic_showPostId=sdqynq3665q16mov#flow-post-sdqynq3665q16mov</ref> == Google Workspace SMTP Relay does not work == 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-relay.gmail.com:587 [SMTP: Failed to connect socket: (code: -1, '''Solution''' Use SSL encryption instead. Gmail will still send the emails through TLS encryption. Replace '''domain''' with your site's domain name. $wgSMTP = [ 'host' => 'ssl://smtp-relay.gmail.com', 'IDHost' => 'domain.com', 'localhost' => 'domain.com', 'port' => 465, ]; = References =
Summary:
Please note that all contributions to iFixWiki are considered to be released under the Creative Commons Attribution Share Alike (see
IFixWiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, 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.
Do not submit copyrighted work without permission!
To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:
Cancel
Editing help
(opens in new window)