Recent Topics

1 Jul 13, 2005 18:12    

I belive that this is a bug just because it happens on all the b2evolution blogs I have visited. The same error message comes up I figured that Evo would come to a post remove page instead of just dieing like it does.
1. version: b2evo v 0.9.0.11
2. problem:if a post is removed and some one has linked to it you get the following error

Fatal error: Call to a member function on a non-object in /home/hblogger/domains/hairyblogger.mozcal.org/public_html/b2evocore/_functions_bposts.php on line 676

Example: if you go to http://hairyblogger.mozcal.org/index.php/2005/07/12/common_email_hoax
The link works fine but if someone entered the permalink wrong or the blog poster removed the link then you get the error. Like this
http://hairyblogger.mozcal.org/index.php/2005/07/12/common_email_

3. hacks or modifications: the XML_RPC update
4. anything that might have changed:no I have noticed this on all b2Evolution sites
5. host/website/etc: Nothing odd here

3 Jul 17, 2005 07:15

Hey great so what did you do to get that to come up?

Also I noted at the bottom of your page the following

MySQL error!

Can't open file: 'b2hitlog.MYI'. (errno: 145)(Errno=1016)

Your query:
INSERT INTO b2hitlog( visitTime, visitURL, hit_ignore, referingURL, baseDomain, hit_blog_ID, hit_remote_addr, hit_user_agent ) VALUES( FROM_UNIXTIME(1121577074), '/Blog/devblog/2008/01/01/no_error_i_think', 'no', 'http://forums.b2evolution.net/viewtopic.php?p=22487', 'forums.b2evolution.net', 3, '64.19.117.88', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4')

4 Jul 17, 2005 14:01

My blog does the same as Francois' one. I've not done any hacks, it's the default behaviour.

5 Jul 17, 2005 17:10

So could this be a skin problem?

Well no it cant because I just checked your site and it is using Kubrick also So what could be different ? Where should I start looking?

6 Jul 17, 2005 17:42

Possibly. What skin are you using?

7 Jul 17, 2005 21:10

It may well be a skin problem. Probably one of the now-deprecated functions that didnt' take into consideration when there was no post to display.

What's on /home/hblogger/domains/hairyblogger.mozcal.org/public_html/b2evocore/_functions_bposts.php on line 676?

What function is that in?

Get that info, and we can go from there. :)

9 Jul 18, 2005 20:15

Well then, it's not the skin unless you've hacked it, because my site is based on Kubrick. If you answer isaac's other question, we might be able to help more.

10 Jul 18, 2005 21:36

I'm guessing that it's single_post_title(). Is this line 676?

$disp_title = $Item->get('title');

If so, replace it with:


if(!$Item) $disp_title = 'No post to Display';
else $disp_title = $Item->get('title');

If I'm wrong, then ignore what I just said. :)

11 Jul 18, 2005 22:18

What's on /home/hblogger/domains/hairyblogger.mozcal.org/public_html/b2evocore/_functions_bposts.php on line 676?

What function is that in?

I have the following

		$disp_title = $Item->get('title');


and this is what is in the whole expression line 673 to 677


elseif( !empty( $title ) )
	{
		$Item = Item_get_by_title( $title ); // TODO: use cache
		$disp_title = $Item->get('title');
	}

So you are suggesting that I make it look like this then


elseif( !empty( $title ) )
	{
		$Item = Item_get_by_title( $title ); // TODO: use cache
		if(!$Item) $disp_title = 'No post to Display';
                else $disp_title = $Item->get('title');
	}


Form is loading...