Last modified: 2013-10-23 18:17:38 UTC
I'm running a MediaWiki in version 1.18.1 on a server running Debian 5.0.9. Every time an action is performed which needs to send an email I am getting the error message: "Fehler beim Senden der E-Mail: SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE" You can reproduce this issue if you try to register an new account on my page: http://n9wiki.de or if you are using the password recovery function there. This did not happen in older version (around 1.14) of mediawiki on the same server. Do you need more information? If yes tell me what exactly. Thanks, Uwe
Maybe this issue is related to bug 664 ?
Already fixed in trunk.
This comment may be obsolete but I wrote it before the bug was closed and it may help anyway: --- A friend of mine was able to help me: In /includes/UserMailer.php we have in line 233: $sent = mail( $recip->toString(), self::quotedPrintable( $subject ), body, $headers, $wgAdditionalMailParams ); I set this to: $sent = mail( $recip->toString(), self::quotedPrintable( $subject ), body, $headers ); and it solves my problem for now. The last parameter: $wgAdditionalMailParams is defined in /includes/DefaultSettings.php $wgAdditionalMailParams is set to null there so it's needles - at least in my case. There is also a comment: /** * Additional email parameters, will be passed as the last argument to mail() call. * If using safe_mode this has no effect */ I don't know where the safe mode detection happens but it seems not to work. If somebody is able to specify where this happens it may be a good idea to open a separate bug. ---