profileplus.module showing duplicate users...

larry - April 23, 2006 - 06:00
Project:Profile Plus
Version:HEAD
Component:Code
Category:bug report
Priority:normal
Assigned:budda
Status:closed
Description

I have been testing the most excellent profileplus.module which allows users and their account info to be searchable. The problem I foud is that one user will be listed two or three times in a row rather than just once when info is searched. The module is returning the same user account two or three times. My question is "Why?" and how do I change this behavior? Has anyone else experienced this? Can anyone else confirm this behavior?

cheers,

larry

#1

budda - April 23, 2006 - 18:46

Yeah, on some tests I get this too actually.

Is the same keyword mentioned in more than one field in the users profile?

#2

larry - April 24, 2006 - 12:01

Thanks for your response. Yes, however I've tried finding a relationship between the number of times a keyword shows versus the number of users returned...and I can't find a pattern. It appears random. Any ideas on what's causng this and how I can fix it? It's very cool functionality.

thanks,

larry

#3

budda - April 24, 2006 - 12:11
Assigned to:Anonymous» budda
Status:active» fixed

Just needed a DISTINCT in the SQL. Fixed in CVS.

#4

larry - April 25, 2006 - 08:29

Thank you for fixing this, it really is awesome functionality. It's the little details that make a difference. I have a question though. I'm on 4.7-beta4 and I get

Fatal error: Call to undefined function: pager_queryd() in C:\Apache Group\Apache2\htdocs\drupal\modules\profileplus\profileplus.module on line 47

Now, the reason I'm on beta4 is that I got tired after upgrading 5 times hoping the next release would be 4.7.0 stable. Instead, there were two more beta releases and 3 more RC releases. I decided to wait for 4.7.0 stable.

My question is, so much changes between each release...does your module work on later 4.7 beta/RC versions and not beta4 or is this an actual issue. I would imagine the problem is with beta4 and I need to upgrade, but I just want to make certain. Thanks again.

cheers,

larry

#5

budda - April 25, 2006 - 10:28

Oops. That only showed up when logged in as admin user. That's what I get for rushing out the fix yesterday morning.

The update is now committed in to CVS.

#6

larry - April 25, 2006 - 16:40

First, I want to say I REALLY appreciate your support and work on this module. I don't mean to be a pain in the arse, honest. The problem with duplicate users and the error are gone, however, the duplicates are still being paginated. What I mean is, let's say before I used a keyword and it gave two pages of results WITH duplicate users. On the fixed module, the dupes are gone but I'm still getting two pages when I should only be getting one. When I click on the second page I get no results and the standard "term not found" message used by the search module. In other words, the duplicates are not showing in the results themselves, but they are still being paginated and showing empty pages. Man, I feel like a pain in the arse. Sorry about that.

cheers,

larry

#7

larry - April 28, 2006 - 07:50

Thank you for fixing the paging issue. For others who may happen upon this, the above issue has been kindly fixed by budda and everything now works very nicely. The fixed module is now in CVS. Thanks again for your support of this module. As I said before, this is very cool functionality.

cheers,

larry

#8

budda - May 11, 2006 - 08:25
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.