• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Likes received page throws error message in debug mode

Affected version
2.0 DP10

Xon

Well-known member
#1
The error:
Code:
Template public:account_likes: Accessed unknown getter 'action' on XF:LikedContent[7] (src/XF/Mvc/Entity/Entity.php:181)
The cause:
Code:
public function render(LikedContent $like, Entity $content = null)
{
...

$action = $like->action;
XF\Entity\LikedContent doesn't have an 'action' property/field.