Last modified: 2013-09-04 11:48:16 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 T31980, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29980 - user email broken after upgrade from MW1.16.5 to MW1.17.0
user email broken after upgrade from MW1.16.5 to MW1.17.0
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Email (Other open bugs)
1.17.x
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-07-20 12:44 UTC by gjtokkel
Modified: 2013-09-04 11:48 UTC (History)
2 users (show)

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


Attachments

Description gjtokkel 2011-07-20 12:44:51 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)
Comment 1 gjtokkel 2011-07-20 12:58:51 UTC
introduced in https://bugzilla.wikimedia.org/show_bug.cgi?id=27862 ?
Comment 2 Mark A. Hershberger 2011-07-25 22:39:52 UTC
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.
Comment 3 gjtokkel 2011-08-08 19:15:12 UTC
(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?
Comment 4 Sam Reed (reedy) 2011-08-08 19:50:41 UTC
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

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


Navigation
Links