Trying to get the static front plugin working

0 views
Skip to first unread message

eternal243

unread,
Jul 8, 2010, 9:34:18 AM7/8/10
to habari-users
Hello, when browsing the plugin directory i found the "staticfront"
plugin and realized that it was one of the plugins i want to use on my
new website, but after trying it out it seems to be broken. I have
tried both the 0.6 branch and the trunk branch of the plugin.

The 0.6 version didn't work on either 0.6.2 or on 0.6.4 version of
habari core, the plugin had some fault that made it impossible to load
from the admin control panel. The trunk version did load for me using
Habari 0.7-alpha r4226 but it does not create a static front from my
selected page as described and when i got to the first page of the
blog i get the following error message:

Warning: Parameter 2 to StaticFront::filter_theme_act_display_home()
expected to be a reference, value given in system\classes\plugins.php
line 104

My coding skills are a bit limited and I don't really understand whats
going on, i'm going to try to look into it a bit more and see if i can
solve it, but i have a feeling that someone might know exactly how to
get it working so thats why i'm starting this thread. Any help would
be greatly appreciated.

I'm using the k2 theme with some minor tweaks atm.

Philip Buckley

unread,
Jul 8, 2010, 9:49:53 AM7/8/10
to habari...@googlegroups.com
I had the same problem. I solved it by changing 2 lines in the plugin
code.

The original lines are:
public function filter_theme_act_display_home( $handled, &
$theme )
public function filter_theme_act_display_blog_home( $handled,
&$theme )
In both lines I removed the ampersand before "$theme", so the lines
read:
public function filter_theme_act_display_home( $handled,
$theme )
public function filter_theme_act_display_blog_home( $handled,
$theme )
Colin Seymour identified the problem as being caused by how PHP
handles referencing (which has changed). The discussion we had about
it is here:

<http://groups.google.com/group/habari-users/browse_thread/thread/b107f36763f39da0#
>

Hope that helps

Philip


This is the link to the thread

> --
> To post to this group, send email to habari...@googlegroups.com
> To unsubscribe from this group, send email to habari-users...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/habari-users

Colin

unread,
Jul 8, 2010, 9:58:50 AM7/8/10
to habari...@googlegroups.com
Whooops. Looks like something's gone wrong with the pkging of the trunk download as this has been rectified in trunk, though the download seems to still have this issue (think it may have something to do with the invalid 0.7 branch).  

I'll fix this now and at the same time make this fix in the 0.6.x branch.


On Thu, Jul 8, 2010 at 2:49 PM, Philip Buckley <phi...@languageflow.com> wrote:
I had the same problem. I solved it by changing 2 lines in the plugin code.

The original lines are:
       public function filter_theme_act_display_home( $handled, &$theme )



--
Colin Seymour
Blog: http://colinseymour.co.uk
Tech Stuff: http://lildude.co.uk
Barefoot Running: http://barefootrunner.co.uk
IRC: lildude #habari

eternal243

unread,
Jul 8, 2010, 10:04:14 AM7/8/10
to habari-users
Thanks for the quick answer, i'll give it a try and see what it
does! :)

On 8 Juli, 15:49, Philip Buckley <phi...@languageflow.com> wrote:
> I had the same problem. I solved it by changing 2 lines in the plugin  
> code.
>
> The original lines are:
>          public function filter_theme_act_display_home( $handled, &
> $theme )
>          public function filter_theme_act_display_blog_home( $handled,  
> &$theme )
> In both lines I removed the ampersand before "$theme", so the lines
> read:
>          public function filter_theme_act_display_home( $handled,  
> $theme )
>          public function filter_theme_act_display_blog_home( $handled,  
> $theme )
> Colin Seymour identified the problem as being caused by how PHP  
> handles referencing (which has changed). The discussion we had about  
> it is here:
>
> <http://groups.google.com/group/habari-users/browse_thread/thread/b107...

eternal243

unread,
Jul 8, 2010, 10:07:10 AM7/8/10
to habari-users
Colin, thanks for fixing the downloads, i will redownload once the new
versions are up!

On 8 Juli, 15:58, Colin <lild...@gmail.com> wrote:
> Whooops. Looks like something's gone wrong with the pkging of the trunk
> download as this has been rectified in trunk, though the download seems to
> still have this issue (think it may have something to do with the invalid
> 0.7 branch).
>
> I'll fix this now and at the same time make this fix in the 0.6.x branch.
>
> On Thu, Jul 8, 2010 at 2:49 PM, Philip Buckley <phi...@languageflow.com>wrote:
>
>
>
> > I had the same problem. I solved it by changing 2 lines in the plugin code.
>
> > The original lines are:
> >        public function filter_theme_act_display_home( $handled, &$theme )
> >        public function filter_theme_act_display_blog_home( $handled,
> > &$theme )
> > In both lines I removed the ampersand before "$theme", so the lines
> > read:
> >        public function filter_theme_act_display_home( $handled, $theme )
> >        public function filter_theme_act_display_blog_home( $handled, $theme
> > )
> > Colin Seymour identified the problem as being caused by how PHP handles
> > referencing (which has changed). The discussion we had about it is here:
>
> > <
> >http://groups.google.com/group/habari-users/browse_thread/thread/b107...

Colin

unread,
Jul 8, 2010, 10:19:57 AM7/8/10
to habari...@googlegroups.com
Ok, the 0.6 download (0.6-0.3) should work now.  There seems to be a problem with the bundling of the trunk zip file as it's pulling old versions of files for some reason.  Will see if I can get one of the other guys with access to fix that.

eternal243

unread,
Jul 8, 2010, 11:43:14 AM7/8/10
to habari-users
Big thanks, the 0.6.4 version of the plugin seems to work great now.
=)
Reply all
Reply to author
Forward
0 new messages