Re: Call to a member function on a non-object



Remove the 'global $s..' line and replace it with: 'global $template'.
As the previous replier already stated, importing global var with the
same name as arguments is not a smart thing to do. Furthermore, as
$template isn't defined within sidebar() I assume it is globally
defined.
I hope this helps.

.