in progress Missing item titles in search results

Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
Some items returned by searches are missing titles. This is replicable in the sense that other searches display the same lack.

Third item down.
https://www.thechocolatelife.com/search/results/all/1/10?search_string=toak

Fifth item in Forum Topics.
https://www.thechocolatelife.com/search/results/all/1/10?search_string=nutritional

MissingTitle.jpg
MissingTitle.jpg  •  95KB


updated by @claygordon: 03/28/15 05:28:03PM
brian
@brian
9 years ago
10,148 posts
This sounds like the item is missing its title - can you verify the item actually has a title?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
It is the member's profile photo.

Plus - there may be a formatting bug in one of the updated images module templates.
updated by @claygordon: 02/25/15 11:31:59AM
brian
@brian
9 years ago
10,148 posts
thechocolatelife:
It is the member's profile photo.

Plus - there may be a bug on the updated images module template.

Is there a profile that has "toak" in it?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
9 years ago
10,148 posts
thechocolatelife:
It is the member's profile photo.

Plus - there may be a formatting bug in one of the updated images module templates.

You need to update to the new templates OR add the clearing div in (which you can see if you do a template compare).


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
I don't see where this member has toak in his profile anywhere.

The image (which is also in the gallery) does not have it.

I looked at all of the other content the member has uploaded and I don't see how the search retrieved this result.

I will take a look at the template.

Clearing div is in which?

gallery_manipulate.tpl
item_gallery.tpl
item_index.tpl
brian
@brian
9 years ago
10,148 posts
Compare the item_gallery.tpl and you will see it.

Let me know if that helps.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
Brian

In looking for the post that is missing the title - it's a forum but I can't find it. It does not show up in the member's list of forum posts even though it looks like he started the discussion. There's no title, so link to the discussion.
brian
@brian
9 years ago
10,148 posts
thechocolatelife:
Brian

In looking for the post that is missing the title - it's a forum but I can't find it. It does not show up in the member's list of forum posts even though it looks like he started the discussion. There's no title, so link to the discussion.

I'm guessing that during import the title was empty in the Ning archive - I believe we've seen that a couple times recently. Here's how you can find it:

- go into the Developer Tools -> database admin
- in the jr_jrforum_item_key table search for "Their wording on the website makes" in the value (this is taken from the post)
- that will get you the _item_id


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
As for the formatting, there were no changes I made in 1.5.2 that were overridden in 1.5.3.

So I reset the template cache and that worked. I thought that doing a module update reset the template caches as a part of the update?
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
SELECT * FROM `jr_jrforum_item_key` WHERE (`key` = 'Their wording on the website makes' OR `value` = 'Their wording on the website makes') LIMIT 50 (0.000 s) 

No rows. 
brian
@brian
9 years ago
10,148 posts
thechocolatelife:
So I reset the template cache and that worked. I thought that doing a module update reset the template caches as a part of the update?

It does for that specific module, but not site or profile templates.

Your query is wrong - it needs to be:

SELECT * FROM `jr_jrforum_item_key` WHERE `value` LIKE '%Their wording on the website makes%';

That should get it for you.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
okay, I was able to modify the query:

item_id 10396

I went to the jrForum datastore browser and searched for 10396 - no results.
Searched for %Their wording on the website makes% and it's a comment (see attached photo).


updated by @claygordon: 02/25/15 12:11:31PM
brian
@brian
9 years ago
10,148 posts
Yeah there's no title - so it's a bad entry - it probably was a response to another forum topic but the archive didn't included the id properly.

You can just delete the item from the DS browser - not sure what else you can do.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
Can I add it to one of the other discussions that shows up in the search results?
brian
@brian
9 years ago
10,148 posts
thechocolatelife:
Can I add it to one of the other discussions that shows up in the search results?

You will have to manually create a new key for it - add it to an existing topic by creating a forum_group_id and giving it a value of the item_id of the first post in a topic.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags