Recent Topics

1 Oct 30, 2008 19:29    

My b2evolution Version: 2.x

I tried to install the sticky Pluging and got this error while installiing

Fatal error: Call to a member function get_by_name() on a non-object in /home5/dallypos/public_html/blog/blogs/plugins/stickyannouncements_plugin/_stickyannouncements.plugin.php on line 144

So, I uninstalled the plugin and and tried the hack described in the FAQ forum. It did not work.

The hack said that I will have to do it another way if I use stub files. It also said that I would know if I were using them. Since I don't know I assume that I am not using stub files. I there a way that I can confirm this.

Lance

2 Nov 05, 2008 01:45

Hi dallypost,
The sticky plugin doesn't work because it's made for v1.10
In 2.x you want to follow this guide: http://forums.b2evolution.net/viewtopic.php?t=17036
If you don't know what stub files are chances are 99,99% you don't use them. In that case you want to put the code in index.php. The file that is in the root of the folder of your blog. You can check if you have have stub files set up in Blog settings -> URLs -> Blog base URL: -> relative to baseurl: http://b2evolution.net/blog1.php (blog1.php is the stub file for this blog).

Good luck

3 Nov 05, 2008 02:15

Thanks for the help, but the steps you suggest are the first thing I tried. It did not work. I have been writing php code for years so I am familiar with it and am quite sure that I followed the directions correctly.

I will check out stubs

4 Nov 05, 2008 02:21

LOL I never know who I am talking to. I answered the other question also. He / she did use stub files, so my estimate 99,99% is a tad lower.
Stub files are custom replacements for index.php where a few options for a blog can be set.

Good luck


Form is loading...