Last modified: 2013-10-23 18:17:38 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T36099, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 34099 - MediaWiki is unable to send emails: "SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE"
MediaWiki is unable to send emails: "SAFE MODE Restriction in effect. The fif...
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.18.x
All Linux
: Unprioritized major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-31 17:41 UTC by Uwe Kaminski
Modified: 2013-10-23 18:17 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Uwe Kaminski 2012-01-31 17:41:28 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
Comment 1 Uwe Kaminski 2012-01-31 17:41:50 UTC
Maybe this issue is related to bug 664 ?
Comment 2 Max Semenik 2012-01-31 17:57:12 UTC
Already fixed in trunk.
Comment 3 Uwe Kaminski 2012-02-01 07:56:41 UTC
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.
---

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links