User talk:Kphunter
From ChekMate Security Group
[edit]
blog problems
Hi,
I think there have been some significant changes between 1.5.5 and 1.6.5, that may bee the root of the error message "Call to non-object..." on line 306 of SkinTemplate.php. The site I'm administering, http://www.sciteam.ubc.ca would be an ideal place for a personal blog and although I'm not proficient at coding, I have been able to modify a few things to suit our needs. I'm interested in finding out if there's a way to modify your blog extension to work with the 1.6.5 implementation...
Kphunter 01:12, 7 July 2006 (MDT)
- Ok - I am goin to set up a VMWare session and see how it works on 1.6.5 and what I need to do to make it work properly. Give me a couple days though to complete this. (smcnaught)
- OK, I have been able to reproduce the problem.
- [client 192.168.1.X] PHP Fatal error: Call to a member function on a non-object in /var/www/html/wiki/includes/SkinTemplate.php on line 306, referer: http://192.168.1.X/wiki/index.php?title=Special:Userlogin&action=submitlogin&type=login&returnto=Main_Page
- Now I will see if I can resolve the issue. (smcnaught) 23:02, 8 July 2006 (MDT)
RESOLVED:
Within both pages: "SpecialPageSubPages.php" and "SpecialPagesAllBlogs.php", Under the following code:
function execute( $parent = null ) {
global $wgRequest, $wgOut, $wgUser;
Add this line:
$wgOut->setArticleRelated( false );
This should resolve the issue. As it tells the template this page is not an article page.
- --- (smcnaught) 23:16, 8 July 2006 (MDT)




