OK the ParserBeforeInternalParse code seems to be there, and the system works to an extent I' getting:-
Warning: end(): Passed variable is not an array or object in <b>/home/users/web6411/html/3jays.me.uk/adults_policies/extensions/StableVersion.php</b> on line <b>349</b><br />
Warning: Invalid argument supplied for foreach() in <b>/home/users/web6411/html/3jays.me.uk/adults_policies/includes/Parser.php</b> on line <b>534</b><br />
when I click on the This is the stable version of this article. Click here http://3jays.me.uk/adults_policies/index.php?title=Special:StableVersion&id=1369&mode=reset&revision=1381&oldid=1381 to remove this as stable version! or You are looking at a draft version of this article; there is no stable version of this article yet. Click here http://3jays.me.uk/adults_policies/index.php?title=Special:StableVersion&id=1369&mode=set&revision=1381&oldid=1381 to set this as stable version!
And *Fatal error*: Call to a member function on a non-object in */home/users/web6411/html/3jays.me.uk/adults_policies/includes/SkinTemplate.php* on line *306
when I try to open the Special:StableVersion page
But it does seem to be working.
Is there anyway to suppress the
*'This is the stable version of this article. Click here http://3jays.me.uk/adults_policies/index.php?title=Special:StableVersion&id=1369&mode=reset&revision=1381&oldid=1381 to remove this as stable version!' messaage from appearing for no editor logins ?
Thanks
John
Lane, Ryan wrote:
I'm wondering about you query over ParserBeforeInternalParse hook ?
How can I check if it's there and if not what do I need to add
Check for the hook in Parser.php. If that string doesn't show up in the file, it doesn't exist. If it isn't there, go look in svn and copy the code snippet from svn into your file at the right location.
V/r,
Ryan Lane
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l