Closed GoogleCodeExporter closed 8 years ago
Original comment by ian.homer@gmail.com
on 4 Jan 2010 at 11:52
Interesting problem. I've just upgraded our MediaWiki to 1.15.1 and
BugzillaReports
renders OK for me.
Thanks for that debug analysis. Kind of pointing towards a failure for
$wgParser->setFunctionHook( 'bugzilla', 'efBugzillaReportsRender' ) to register
the
hook correctly. Do you have any other parser extensions installed such as
http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions. These use a
similar
technique and if these fail as well it would indicate something more
fundamental is
up. If ParserFunctions does work then I can see if I can isolate the
difference.
Also what version of PHP are you on?
Original comment by ian.homer@gmail.com
on 5 Jan 2010 at 12:09
My PHP version is: 5.3.1.
The ParserFunctions extension works fine, I've tested a few of its functions
and they
work as expected.
If I go to my "Special:Version" page I see the following:
PARSER HOOKS:
BugzillaReports (Version 1.1) Provide bugzilla reports Ian Homer
ParserFunctions (Version 1.1.1) Enhance parser with logical functions Tim
Starling
EXTENSION FUNCTIONS
efBugzillaReportsSetup and wfSetupParserFunctions
PARSER EXTENSION TAGS
<pre>
PARSER FUNCTION HOOKS
anchorencode, basepagename, basepagenamee, bugzilla, defaultsort, displaytitle,
expr,
filepath, formatdate, formatnum, fullpagename, fullpagenamee, fullurl, fullurle,
gender, grammar, if, ifeq, iferror, ifexist, ifexpr, int, language, lc, lcfirst,
localurl, localurle, namespace, namespacee, ns, numberingroup,
numberofactiveusers,
numberofadmins, numberofarticles, numberofedits, numberoffiles, numberofpages,
numberofusers, numberofviews, padleft, padright, pagename, pagenamee,
pagesincategory, pagesize, plural, protectionlevel, rel2abs, special,
subjectpagename, subjectpagenamee, subjectspace, subjectspacee, subpagename,
subpagenamee, switch, tag, talkpagename, talkpagenamee, talkspace, talkspacee,
time,
timel, titleparts, uc, ucfirst and urlencode
The "bugzilla" parser hooks seems to be installed, but is not being invoked for
some
reason...
Original comment by jethroborsje
on 5 Jan 2010 at 8:45
Sorry - but still not been able to isolate the issue. I've created a local
install
PHP 5.3.1 and MediaWiki 1.15.1 and can't reproduce.
The ParserFunctions initialises the functions in a slightly different way to
BugzillaReports - see
http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/ParserFunctions/Parse
rFunctions.php?view=markup
although BugzillaReports does follow that laid out in the MediaWiki Manual - see
http://www.mediawiki.org/wiki/Manual:Extensions and
http://www.mediawiki.org/wiki/Manual:Parser_functions.
I'll probably update BugzillaReports initialisation to the way that
ParserFunctions
does (since ParserFunctions is a great example to follow) - however I'm always
cautious unless I can actually reproduce the problem you're seeing.
Is there any related output in the apache error log?
Do you have any MediaWiki / PHP initialisation configuration changes of note?
If you
can share your LocalSettings.php and php.ini file then that'd be appreciated.
Thanks,
Ian
Original comment by ian.homer@gmail.com
on 5 Jan 2010 at 1:58
I've updated BugzillaReports.php to be in line with ParserFunctions usage. See
http://code.google.com/p/bugzillareports/source/browse/trunk/BugzillaReports.php
If you get a chance could you try replace BugzillaReports.php with this version
on
your install and see if it makes any difference.
As mentioned earlier I haven't reproduced your error, however this new works OK
on my
install and seems to be more in line with the new approach.
Original comment by ian.homer@gmail.com
on 5 Jan 2010 at 9:21
The new BugzillaReports.php solves my problem! Thanks for fixing this issue.
Original comment by jethroborsje
on 6 Jan 2010 at 9:07
Great news ... and ... phew!
Original comment by ian.homer@gmail.com
on 6 Jan 2010 at 9:10
Original comment by ian.homer@gmail.com
on 6 Jan 2010 at 9:10
After a long searching this made the extension working on my installation too
:-) (MediaWiki 1.15.4, PHP 5.3.2, MySQL 5.1.46, ParserFunctions 1.1.1).
Original comment by radek....@gmail.com
on 8 May 2011 at 4:16
Original issue reported on code.google.com by
jethroborsje
on 4 Jan 2010 at 9:51