We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Friends plugin error??? | Forum

Marcus
Marcus Nov 27 '19

Hi folks before I spend time on trying to figure out that casing this error I wonder if someone knows some about this error:


Call to a member function setStatus() on null in /ow_plugins/friends/bol/friendship_dao.php on line 216



P.S. I was getting this error ever since I started with oxwall!!!

The Forum post is edited by Marcus Nov 27 '19
Ebenezer from Bluetide Webs
Hi, Marcus.


How can I reproduce the same error on my installation?

Patricia Zorrilla Leader
Patricia Zorrilla Nov 27 '19

That is because one of the two users no longer exists.Write this on line 215 and solved.


if ($dto == array () || $dto == null) return;

Marcus
Marcus Dec 2 '19
Thanks Patricia I don't have a chance to look into the code but your fix will do thanks again. 
Marcus
Marcus Dec 2 '19
If (empty($dto)) return;


Marcus
Marcus Dec 2 '19
Or maybe

If (count($dto)==0) return;
The Forum post is edited by Marcus Dec 2 '19