Last modified: 2013-09-04 11:48:16 UTC
I recently upgraded mediawiki of site www.DeurneWiki.nl from MW 1.16.5 to MW1.17.0. After upgrade the user e-mail function did not work anymore. The message you get when emailing is: "SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE " Now, I know this is related to php being in safe mode, this however worked ok in MW 1.16.5 also with PHP in safe mode. hence: something has been broken... Joost de Haan (SysOp DeurneWiki)
introduced in https://bugzilla.wikimedia.org/show_bug.cgi?id=27862 ?
safe mode is not supported. From http://php.net/manual/en/features.safe-mode.php: "This feature has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged." so, if this is causing problems and you want to work around it w/o disabling safe-mode, you can edit UserMailer.php to remove the 5th parameter or switch to using the Pear::Mail module.
(In reply to comment #2) > safe mode is not supported. From > http://php.net/manual/en/features.safe-mode.php: "This feature has been > DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged." > so, if this is causing problems and you want to work around it w/o disabling > safe-mode, you can edit UserMailer.php to remove the 5th parameter or switch to > using the Pear::Mail module. Thanx for your quick reply. Sorry for the slow response :( I am not in favor in changing the code, that will make updgrades to newer mediawiki's slower... What I found strange is that it works well in MW 1.16.5. Is there an explenation for that?
Maybe a change of parameter calls, maybe not. safe mode has been discouraged for use in MediaWiki for a long time http://www.mediawiki.org/wiki/Safe_mode