Last modified: 2006-10-04 07:38:06 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 6803 - Call to undefined function wfDie() in profileinfo.php
Call to undefined function wfDie() in profileinfo.php
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.8.x
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-07-24 09:42 UTC by Nick Jenkins
Modified: 2006-10-04 07:38 UTC (History)
0 users

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


Attachments
Include globalfunctions so that wfDie() is defined. (408 bytes, patch)
2006-07-25 08:31 UTC, Nick Jenkins
Details

Description Nick Jenkins 2006-07-24 09:42:52 UTC
Opening page like so on a test wiki: http://192.168.0.64/wiki/profileinfo.php
Fatal error: Call to undefined function wfDie() in
/var/www/hosts/mediawiki/phase3/profileinfo.php on line 54

Also when "$wgEnableProfileInfo = true;" in AdminSettings.php:
Fatal error: Call to undefined function wfDie() in
/var/www/hosts/mediawiki/phase3/profileinfo.php on line 159
Comment 1 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-07-24 18:47:43 UTC
Try adding 

require_once( './includes/GlobalFunctions.php' );

before line 50 of profileinfo.php.  It seems that it's not being loaded because
Setup.php (which includes GlobalFunctions.php) is only loaded by WebStart.php if
MW_NO_SETUP is undefined, but profileinfo does in fact define that.  Note that
this is a relatively uninformed hack, since I don't know why the various files
are or are not included in various places (presumably performance), but it
should work nonetheless.

Of course, if wfDie() is being called there was going to have been a fatal error
anyway, specifically a MySQL error of some sort if the call is on line 159.
Comment 2 Nick Jenkins 2006-07-25 08:31:53 UTC
Created attachment 2148 [details]
Include globalfunctions so that wfDie() is defined.

> Try adding require_once( './includes/GlobalFunctions.php' );

Thank you, that stopped the error, so I'm attaching a diff with your change.

> Of course, if wfDie() is being called there was going to have been a fatal
error
> anyway, specifically a MySQL error of some sort if the call is on line 159.

Seems there's no "profiling" table in the database - I haven't looked further
into this yet (presumably there's some script that can be run to create it, and
if there's not then perhaps profileinfo.php is obsolete and should be deleted).
Comment 3 Nick Jenkins 2006-10-04 07:38:06 UTC
Fixed by TimS in r16782 ; marking closed.

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


Navigation
Links