Bug Fatal Error

Dear Friends,

I am using latest version of elgg and with cool theme. 

I found out there is bug in Likes plugin. In the activity/ wire if we like something and press like works fine and we can unlike as well.

But if we change avatar or become friends with other users that time if we press like button we get Fatal Error by saying

mod/likes/actions/likes/add.php on line 44 

mod/likes/start.php (line 131)

Please how to fix this?


Likes button works for everything but when become friends and u like that does not work and also when a users changes avatar and we like that also does not work :(


OHHH I THINK I HAVE FOUND THE PROBLEM,

Friends when i turn back to my elgg default theme I can see there is no LIKE button in activity when someone changes avatar or become friends. But if we have cool theme or facebook theme then there is LIKE button in avtivity if someone becomes friends or changes avatar. That's why that Like button makes problem in cool theme and facebook theme, am not sure about other themes.

So how I can remove LIKE button in two places only so won't show in activity if someone changes avatar or become friends? 

 

Many thanks in advance,

Regards

Cheers