[fixed] v2.10.10 can only view first 50 users in lists

Discuss, research, share, find, and solve bugs

[fixed] v2.10.10 can only view first 50 users in lists

Postby postmanpat » 10:40am, Fri 08 May, 2009

Installed v 2.10.10 and sent out first newsletter using it. Wanted to check which address (of several) a specific user was using on that list so tried to use the << < > >> function at the top of the list to scroll between pages. It only shows the first fifty and won't scroll on any further. Does anyone else get this effect? If so I'll report it as a bug. The server is *nix with PHP-5.+ and MySQL-5.+.

The scrolling works from the users tab in the main navigation menu, just not in the lists -> view members section. Also, checked with some members by phone whose email addresses are not in that first 50 listed and they have received the newsletter.
postmanpat
PL Nut
 
Posts: 37
Joined: 2:36pm, Mon 20 Mar, 2006

Re: v 2.10.10 can only view first 50 users in lists

Postby woolef » 10:55am, Fri 08 May, 2009

I can confirm this happens in my install of 2.10.10. It also happens in 'viewrss' page but works ok in 'lists of messages' page where you have move than 5 messages (obviously, I guess) and the blacklisted users list.
MySQL: 5.0.51b
PHP: 5.2.6
woolef
PL Nut
 
Posts: 21
Joined: 10:40pm, Tue 17 Feb, 2009

Re: v 2.10.10 can only view first 50 users in lists

Postby H2B2 » 5:24pm, Fri 08 May, 2009

Haven't had time to test it, but there seem to be other issues with the "View list members" page. (see viewtopic.php?f=17&t=24510 )

I'll move this thread to bugs discussion section.
H2B2
Moderator
 
Posts: 7188
Joined: 1:51am, Wed 15 Mar, 2006

Re: v 2.10.10 can only view first 50 users in lists

Postby KdeB » 12:40am, Mon 11 May, 2009

I have just upgraded to 2.10.10, and am experiencing the same problem.

When going to Lists (the List of Lists), then View Members on any of my lists, I can only see the first 50 users. The arrows do not work to scroll to subsequent pages of users. The List still shows the correct number of users.

As previously noted, all users can be accessed and seen by going to Users (List of All Users). The arrow buttons DO work there, and apparently elsewhere. Just not on the individual Lists/View Members pages.
KdeB
phpList newbie
 
Posts: 2
Joined: 12:22am, Mon 11 May, 2009

Re: v 2.10.10 can only view first 50 users in lists

Postby postmanpat » 6:39am, Mon 11 May, 2009

Thanks for the feedback KdeB. Is this a big issue for you? I see it as a nuisance but I can work around it at the moment. Is it a case of letting the developers know so it can be tackled in time for the next release, as I would see it, or is it something which requires patching as soon as possible, in which case we should be flagging it up now?
postmanpat
PL Nut
 
Posts: 37
Joined: 2:36pm, Mon 20 Mar, 2006

Re: v 2.10.10 can only view first 50 users in lists

Postby KdeB » 1:34pm, Mon 11 May, 2009

It needs fixing sooner rather than later, in my opinion.

I rely on being able to see all the members on my lists so that I can track -- on one screen -- how many subscribers are unconfirmed, and who they are. (Unconfirmed subscribers are compiled together at the end of the list's list of users. Being able to look at all unconfirmed subscribers at once lets me know if there is a problem with a particular mailserver, for example

I could wade through the entire users list to find all unconfirmed ... But this isn't helpful when you've got multiple lists going, as you've got to open each unconfirmed user's info to see what lists they subscribed to.

I've gone back to 2.10.8 for the time being.

Linux
Apache 1.3.41
PHP 5.2.9
MySQL 5.0.67-community
Last edited by KdeB on 4:05pm, Mon 11 May, 2009, edited 1 time in total.
KdeB
phpList newbie
 
Posts: 2
Joined: 12:22am, Mon 11 May, 2009

Re: v 2.10.10 can only view first 50 users in lists

Postby H2B2 » 3:59pm, Mon 11 May, 2009

Can confirm this on my installation too:
Linux/Apache
PHP 5.2.3
MySQL 4.1.12

Filed this bug report: http://mantis.phplist.com/view.php?id=15282
H2B2
Moderator
 
Posts: 7188
Joined: 1:51am, Wed 15 Mar, 2006

Re: v 2.10.10 can only view first 50 users in lists

Postby taydeko » 10:56pm, Wed 13 May, 2009

I am having the same problem. I narrowed it down to a logic problem.

In members.php, the offending code is found at about line 205:

Code: Select all
  if ($total > MAX_USER_PP) {
     if (isset($start) && $start) {
        $start   = sprintf('%d',$_REQUEST["start"]);
        $listing = $GLOBALS['I18N']->get("Listing user")." $start ".$GLOBALS['I18N']->get("to")." " . ($start + MAX_USER_PP);
        $limit = "limit $start,".MAX_USER_PP;
     } else {
        $listing = $GLOBALS['I18N']->get("Listing user 1 to 50");
        $limit = "limit 0,50";
        $start = 0;
     }


In this code, you see that there is a test to see if $start is set. If not, it sets $limit to 0 and 50. The problem is that it is never set when it hits the top of this code segment. I suspect that in a php function, the variables are local to the function. Is that correct? Thus, when the function is over the variable disappears and it always loads the first 50 names.

Of course you can do what I did and change the limit to whatever numbers you want to see the rest of the names, although this is a little tedious with a large list.

I would fix this but I don't know where. Perhaps someone with better knowledge of php and phplist can fix it and tell us how to do it.

Ted
taydeko
phpLister
 
Posts: 12
Joined: 9:59pm, Sat 09 May, 2009

Re: v 2.10.10 can only view first 50 users in lists

Postby taydeko » 11:17pm, Wed 13 May, 2009

OK, I took a WAG and added this line to the top of members.php:

Code: Select all
$start = 1;


I put it in line 9 if that helps anyone. It works now. I tried putting in "0" but that didn't fix the problem. I feel like when I was a kid trying to put the clock back together after I took it apart. Hmmmm. Where are all the people who know something?

Ted
taydeko
phpLister
 
Posts: 12
Joined: 9:59pm, Sat 09 May, 2009

Re: v 2.10.10 can only view first 50 users in lists

Postby postmanpat » 8:39am, Thu 14 May, 2009

You know people who know something? :shock: Would asking for an introduction be out of order? :roll:

Thanks for experimenting and reporting back. I'll try it. 8)

<edit 20 May> Yup. Works fine, thanks. </edit>
Last edited by postmanpat on 10:31am, Wed 20 May, 2009, edited 1 time in total.
postmanpat
PL Nut
 
Posts: 37
Joined: 2:36pm, Mon 20 Mar, 2006

Re: v 2.10.10 can only view first 50 users in lists

Postby H2B2 » 7:42pm, Thu 14 May, 2009

taydeko wrote:added this line to the top of members.php:
Code: Select all
$start = 1;

I put it in line 9 if that helps anyone. It works now.

Confirmed. Also works on my system. Thx


EDIT: The following bugfix was suggested by iloveitaly in http://mantis.phplist.com/view.php?id=15282

In file lists/admin/members.php, line 205:

Change
Code: Select all
if (isset($start) && $start) {
     $start = sprintf('%d',$_REQUEST["start"]);


To:
Code: Select all
if (isset($_GET['start']) && (int) $_GET['start'] > 0) {
$start = (int) $_GET["start"];
H2B2
Moderator
 
Posts: 7188
Joined: 1:51am, Wed 15 Mar, 2006

Re: v 2.10.10 can only view first 50 users in lists

Postby alForm » 2:15pm, Mon 25 May, 2009

This may be related to the unregister_globals() function call, which is causing problems elsewhere (it breaks command line processing, for instance). In my 2.10.10 upgrade (curse the day), I had stubbed that function before stumbling on this thread, and found I do not appear to have the problem in question.

Cheers,
alf
alForm
phpLister
 
Posts: 5
Joined: 3:41pm, Thu 21 May, 2009

Re: v 2.10.10 can only view first 50 users in lists

Postby evaluacion » 6:01pm, Tue 09 Jun, 2009

I have the same problem and can't find a way to delete a user that is on 2 of my lists... on the "users" section I only have the option to "import users", but can't list them or delete them.

I'm using the 2.10.10 version and I don't really know how to do this... we don't use the "unsuscribe" option but ask users to send us an e-mail with "remove" written on the subject... it worked before this way, but not now bc I can't browse the lists.

Please help!
evaluacion
phpList newbie
 
Posts: 2
Joined: 4:56pm, Tue 09 Jun, 2009

Re: v 2.10.10 can only view first 50 users in lists

Postby alfredo_tripicchio » 10:54am, Mon 06 Jul, 2009

Hi,

I confirm it depends on unregister_globals.
I don't have this issue because I had already commented out line
require_once dirname(__FILE__) .'/commonlib/lib/unregister_globals.php';

in file lists/admin/index.php in order to make the cron job work again:
see viewtopic.php?f=17&t=24515&p=61918&hilit=command+line#p61919
alfredo_tripicchio
phpLister
 
Posts: 10
Joined: 8:33am, Thu 15 Sep, 2005
Location: Ischia, Naples, ITALY

Re: v 2.10.10 can only view first 50 users in lists

Postby CarBonHck » 2:21pm, Tue 07 Jul, 2009

Hi To All Members,

When using the << < > >> function at the top of the list specially when i click on ">" It shows the first fifty.
The second click shows the second fifty until the last clicking it shows also the last fifty.
The Pb is in the last fifty because it should shows the total of users as counter not a multiple of 50 such as 50,100,150,200,250,300,...

For Examples, if i Have 135 Users, So:
The First Click Shows: 0..50
The Second Click Shows: 50..100
The Last Click Shows: 100..150 --> It Should Shows 100..135


As Conclusion the counter at the last click must be equal to the total of users.

I Appreciate Your Help Friends.
Thx In Advance.

Bye.
CarBonHck
phpLister
 
Posts: 12
Joined: 11:11am, Tue 07 Jul, 2009

Next

Return to Bug Discussion

Who is online

Users browsing this forum: No registered users and 1 guest