Last modified: 2010-05-15 16:02:53 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 T17270, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15270 - Special:Version logs Object could not be convered to int
Special:Version logs Object could not be convered to int
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
1.13.x
Other Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-08-22 16:46 UTC by Dan Barrett
Modified: 2010-05-15 16:02 UTC (History)
1 user (show)

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


Attachments

Description Dan Barrett 2008-08-22 16:46:22 UTC
[Tue Aug 19 12:11:55 2008] [error] [client 10.95.30.102] PHP Notice:  Object of class FooExtension could not be converted to int in ../includes/specials/SpecialVersion.php on line 313, referer: http://mywiki.com/wiki/Special:SpecialPages.

This error is being thrown on Special:Version for parser tag extensions under 1.13.0 but it did not happen under 1.12.0.  The extensions, which all work, follow this pattern:

/* FooExtension.php */
<?php
$wgExtensionCredits['parserhook'][] = array(
  'name' => 'FooExtension',
  'author' =>'My Name',
  'url' => 'http://foo',
  'description' => 'docs here',
  'version' => '1.0');

require_once('FooExtension_body.php');

# Set up the hook
$wgExtensionFunctions[] = array(new FooExtension, 'setup');

# Autoload system messages
$wgExtensionMessagesFiles['FooExtension'] = dirname(__FILE__) . '/FooExtension.i18n.php';

This is with PHP 5.1.6 on CentOS 5 Linux.
Comment 1 Antoine "hashar" Musso (WMF) 2008-08-31 19:10:51 UTC
$wgExtensionFunctions is an array of function name. You should not feed it
with an object !

http://www.mediawiki.org/wiki/Manual:$wgExtensionFunctions

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


Navigation
Links