Last modified: 2013-04-22 16:17:24 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 T47006, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45006 - global $wgOut missing in updateUser()
global $wgOut missing in updateUser()
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
OpenID (Other open bugs)
master
All All
: Normal normal (vote)
: ---
Assigned To: T. Gries
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-14 16:00 UTC by Dima
Modified: 2013-04-22 16:17 UTC (History)
4 users (show)

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


Attachments

Description Dima 2013-02-14 16:00:32 UTC
Error:
Fatal error: Call to a member function addWikiMsg() on a non-object in C:\Work\Projects\pro\wiki-simpat\Sites\wiki.simpat.test\extensions\OpenID\SpecialOpenIDLogin.body.php on line 534

Fix:
function updateUser( $user, $sreg, $ax, $force = false ) {
    global $wgAllowRealName, $wgEmailAuthentication, $wgOpenIDTrustEmailAddress;
   +global $wgOut;
Comment 1 Alex Monk 2013-02-14 16:07:24 UTC
This should probably use $this->getOutput() instead of $wgOut.
Comment 2 T. Gries 2013-02-14 16:15:15 UTC
@Dima

... how to reproduce your case ?

Please can you specify the 

- condition(s) when you see this error-
- your mediawiki version and 
- the OpenID version ?

See Special:Version
Comment 4 Max Semenik 2013-02-14 16:30:25 UTC
(In reply to comment #2)
> @Dima
> 
> ... how to reproduce your case ?

Isn't it obvious from the source that this global is indeed not imported?
Comment 5 T. Gries 2013-02-14 16:47:08 UTC
@Max I admit, it is. 

I only wonder why I never saw this error in my log files, and wanted to be able to strictly reproduce it. And then to fix it.

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


Navigation
Links