solved NO_LANG_FOR_ID error with Like feature

Holly Dilatush
Holly Dilatush
@holly-dilatush
8 years ago
212 posts
Hello all,

Hoping this is a simple thing.

Errors like the one shown in the attached screenshot are appearing in our home page latest activity stream whenever someone 'likes' a profile page.

[However, when Joanna and I use our non-admin/normal user accounts and test 'liking' another profile page, nothing shows up in the latest activity (but the like does 'take'). An example here: http://lewwwp.com/holly

If you scroll to the bottom you'll see that 2 folks have 'liked' my Holly profile page. One of them is Joanna. Bijan's like did show in our latest activity with the NO_LANG_FOR_ID error, but Joanna's like never appeared in the latest activity. Though I did receive an email notification telling me she had liked my profile.]

--Note: I have been deleting these entries from the Latest Activity stream to avoid confusion for our members. If you need us to replicate so that you can check something, let us know and 'Squirr' can 'like' another profile.

Any clue as to what we messed up to make this happen, and how to repair it?

Thanks,
updated by @holly-dilatush: 03/11/17 04:16:12AM
brian
@brian
8 years ago
10,148 posts
Likes are normally only for "items" that belong to a profile - NOT for an entire profile, and it's why you're getting this error - is that something custom you added to your skin?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
joanna
@joanna
8 years ago
88 posts
Hi Brian :)

I don't recall adding anything to our skin.
A few days ago we only changed Ningja skin to the new Ninja skin.

We also added a part of a code to the jrCore to form_editor.tpl template. That's all what we did.

When I visit my liked items ( http://lewwwp.com/like/liked_items) as one of the tabs is 'Profiles'.

I'll send you logins for our site in a ticket if you want to check what's wrong, if you cannot replicate it.

Thanks,
Joanna.
brian
@brian
8 years ago
10,148 posts
This has been fixed in version 1.4.9 of the Like It module - root cause is that there needed to be a special check for "liking" a profile, since normally likes only happen on an item that belongs to a profile.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Holly Dilatush
Holly Dilatush
@holly-dilatush
8 years ago
212 posts
thanks!

Tags