phpMyFAQ notice [8]: Trying to get property of non-object in

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Thorsten
Posts: 15744
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: phpMyFAQ notice [8]: Trying to get property of non-object in

Post by Thorsten »

Hi,
notset4life wrote:Any thoughts on what happened here?
not really because I couldn't reproduce your issue... But I still investigate this.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
crisguille
Posts: 1
Joined: Thu Aug 19, 2010 3:31 pm

Re: phpMyFAQ notice [8]: Trying to get property of non-object in

Post by crisguille »

$result is a mysqli_result object, I patch the code doing this:

if($result !== false)
$num_rows = mysqli_num_rows($result);
else
$num_rows = 0;


This is on /inc/PMF_DB/Mysqli.php line 176. So

public function num_rows($result)
{
if($result !== false)
$num_rows = mysqli_num_rows($result);
else
$num_rows = 0;

return $num_rows;
}
Thorsten
Posts: 15744
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: phpMyFAQ notice [8]: Trying to get property of non-object in

Post by Thorsten »

Hi,

I already fixed this in another file.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
notset4life
Posts: 30
Joined: Tue Oct 18, 2005 2:02 pm

Re: phpMyFAQ notice [8]: Trying to get property of non-object in

Post by notset4life »

I'm sorry Thorsten, is there an update I missed somewhere? You said you "already fixed this" in another file.
Where is that?

thanks
Thorsten
Posts: 15744
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: phpMyFAQ notice [8]: Trying to get property of non-object in

Post by Thorsten »

Hi,

you already have the fix... there are plenty of fixes, just follow (if you like) my git commits on github. 2.6.8 should be out next week.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply