Hi,
my Wiki contains some categories with more than 200 entries. Registered/logged-on users do not have any problems seeing all entries of a categorie (special categories, stepping through them with 'next 200'). But users, who are not logged-on, are not able to step through the entries of a category.
Any idea why?
Thanks in advance, zaydo
Hi,
sorry for that, but since I still do not have a solution for the problem, I'd like to push the tread up.
zaydo
zaydo wrote:
Hi,
my Wiki contains some categories with more than 200 entries. Registered/logged-on users do not have any problems seeing all entries of a categorie (special categories, stepping through them with 'next 200'). But users, who are not logged-on, are not able to step through the entries of a category.
Any idea why?
Thanks in advance, zaydo
Do you require being logged in to do anything?
On Jul 24, 2007, at 3:06 PM, zaydo wrote:
Hi,
sorry for that, but since I still do not have a solution for the problem, I'd like to push the tread up.
zaydo
zaydo wrote:
Hi,
my Wiki contains some categories with more than 200 entries. Registered/logged-on users do not have any problems seeing all entries of a categorie (special categories, stepping through them with 'next 200'). But users, who are not logged-on, are not able to step through the entries of a category.
Any idea why?
Thanks in advance, zaydo
-- View this message in context: http://www.nabble.com/Display-of- categories-tf3974777.html#a11770881 Sent from the WikiMedia General mailing list archive at Nabble.com.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054
Hi Jim Hu,
yes. The "next 200" articles in a category will only be displayed when logged in. For users who are not logged i, the URL in the browser is correct (...wiki/index.php?title=category:Elektrik&from=xxxx), but it will not load.
zaydo
Jim Hu wrote:
Do you require being logged in to do anything?
On Jul 24, 2007, at 3:06 PM, zaydo wrote:
Hi,
sorry for that, but since I still do not have a solution for the problem, I'd like to push the tread up.
zaydo
zaydo wrote:
Hi,
my Wiki contains some categories with more than 200 entries. Registered/logged-on users do not have any problems seeing all entries of a categorie (special categories, stepping through them with 'next 200'). But users, who are not logged-on, are not able to step through the entries of a category.
Any idea why?
Thanks in advance, zaydo
-- View this message in context: http://www.nabble.com/Display-of- categories-tf3974777.html#a11770881 Sent from the WikiMedia General mailing list archive at Nabble.com.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
I meant - did you configure your wiki so that users have to be logged in to edit, view, etc. I took a look around the Category page code, since it's something I'm interested, and I can't see why this would happen. Since the URL is correct, it looks like the Category page isn't getting the parameter from $wgRequest. But I can't see where being logged in would matter.
When you say it will not load... it crashes? Or just goes to the first 200? If it crashes, what's in the error logs? Also: what version of MW and does this happen if you turn off any installed extensions?
JH On Jul 25, 2007, at 1:59 AM, zaydo wrote:
Hi Jim Hu,
yes. The "next 200" articles in a category will only be displayed when logged in. For users who are not logged i, the URL in the browser is correct (...wiki/index.php?title=category:Elektrik&from=xxxx), but it will not load.
zaydo
Jim Hu wrote:
Do you require being logged in to do anything?
On Jul 24, 2007, at 3:06 PM, zaydo wrote:
Hi,
sorry for that, but since I still do not have a solution for the problem, I'd like to push the tread up.
zaydo
zaydo wrote:
Hi,
my Wiki contains some categories with more than 200 entries. Registered/logged-on users do not have any problems seeing all entries of a categorie (special categories, stepping through them with 'next 200'). But users, who are not logged-on, are not able to step through the entries of a category.
Any idea why?
Thanks in advance, zaydo
-- View this message in context: http://www.nabble.com/Display-of- categories-tf3974777.html#a11770881 Sent from the WikiMedia General mailing list archive at Nabble.com.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
-- View this message in context: http://www.nabble.com/Display-of- categories-tf3974777.html#a11777474 Sent from the WikiMedia General mailing list archive at Nabble.com.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054
Hi JH,
sorry, misunderstanding. Yes, users have to be logged in to be able to edit pages. But all are allowed to view pages without log-in.
Well, it is a 'complaint' of some users telling me that simply nothing happens when "next 200" is selected. It tried it myself with the newest versions of IE and Firefox and got a bit different result: the request (URL) is definitely sent (appears in the Apache log file), and the browser is loading a page. But that page is always the one with the first 200 entries. Then I switched off all the extensions (NewestPages, PDF), as you recommended: I actually could load the next 200 entries. But only exactly one time; after that same behaviour as above. And it did not work with another browser (with emptied cache), when I have tried it with the other browser once before. And, when I successfully loaded the 'next 200' I got stuck exactly there. No chance to go back to the first 200 or advance another 'next 200'. Being logged in, there are still no such problems. Very strange...
The actual version is MediaWiki 1.10.0 with PHP 5.2.0-8 and MySQL: 5.0.32 on Apache 2.2.
Thanks, zaydo
Jim Hu wrote:
I meant - did you configure your wiki so that users have to be logged in to edit, view, etc. I took a look around the Category page code, since it's something I'm interested, and I can't see why this would happen. Since the URL is correct, it looks like the Category page isn't getting the parameter from $wgRequest. But I can't see where being logged in would matter.
When you say it will not load... it crashes? Or just goes to the first 200? If it crashes, what's in the error logs? Also: what version of MW and does this happen if you turn off any installed extensions?
JH On Jul 25, 2007, at 1:59 AM, zaydo wrote:
Hi Jim Hu,
yes. The "next 200" articles in a category will only be displayed when logged in. For users who are not logged i, the URL in the browser is correct (...wiki/index.php?title=category:Elektrik&from=xxxx), but it will not load.
zaydo
Jim Hu wrote:
Do you require being logged in to do anything?
On Jul 24, 2007, at 3:06 PM, zaydo wrote:
Hi,
sorry for that, but since I still do not have a solution for the problem, I'd like to push the tread up.
zaydo
zaydo wrote:
Hi,
my Wiki contains some categories with more than 200 entries. Registered/logged-on users do not have any problems seeing all entries of a categorie (special categories, stepping through them with 'next 200'). But users, who are not logged-on, are not able to step through the entries of a category.
Any idea why?
Thanks in advance, zaydo
-- View this message in context: http://www.nabble.com/Display-of- categories-tf3974777.html#a11770881 Sent from the WikiMedia General mailing list archive at Nabble.com.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
-- View this message in context: http://www.nabble.com/Display-of- categories-tf3974777.html#a11777474 Sent from the WikiMedia General mailing list archive at Nabble.com.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
The other question besides extensions is whether you have apache rules that might affect the behavior. If you don't mind seeing extra junk on the page while you debug, here's a really kludgy way I debug. Add this code snippet to the CategoryPage.php code to see if the info is arriving:
echo "<br><br><br><br><br><br><br><br><br><br>box:<pre>";print_r ($wgRequest);echo "</pre><br>";
I'd put it in closeShowCategory or in view. The long set of breaks is to push the output below the logo. I'm sure there is a cleaner way to do this; writing to a file or to the logs. But I like to do this lazy way of debugging on the copy of MW on my laptop. If I want a really extensive display, I use:
echo "<br><br><br><br><br><br><br><br><br><br>box:<pre>";print_r ($this);echo "</pre><br>";
I suppose it would be even better to use a real debugger... but this is the kind of thing that happens when a molecular biologist tries to become a programmer without actual training.
; )
Jim
On Jul 26, 2007, at 6:19 AM, zaydo wrote:
Hi JH,
sorry, misunderstanding. Yes, users have to be logged in to be able to edit pages. But all are allowed to view pages without log-in.
Well, it is a 'complaint' of some users telling me that simply nothing happens when "next 200" is selected. It tried it myself with the newest versions of IE and Firefox and got a bit different result: the request (URL) is definitely sent (appears in the Apache log file), and the browser is loading a page. But that page is always the one with the first 200 entries. Then I switched off all the extensions (NewestPages, PDF), as you recommended: I actually could load the next 200 entries. But only exactly one time; after that same behaviour as above. And it did not work with another browser (with emptied cache), when I have tried it with the other browser once before. And, when I successfully loaded the 'next 200' I got stuck exactly there. No chance to go back to the first 200 or advance another 'next 200'. Being logged in, there are still no such problems. Very strange...
The actual version is MediaWiki 1.10.0 with PHP 5.2.0-8 and MySQL: 5.0.32 on Apache 2.2.
Thanks, zaydo
Jim Hu wrote:
I meant - did you configure your wiki so that users have to be logged in to edit, view, etc. I took a look around the Category page code, since it's something I'm interested, and I can't see why this would happen. Since the URL is correct, it looks like the Category page isn't getting the parameter from $wgRequest. But I can't see where being logged in would matter.
When you say it will not load... it crashes? Or just goes to the first 200? If it crashes, what's in the error logs? Also: what version of MW and does this happen if you turn off any installed extensions?
JH On Jul 25, 2007, at 1:59 AM, zaydo wrote:
Hi Jim Hu,
yes. The "next 200" articles in a category will only be displayed when logged in. For users who are not logged i, the URL in the browser is correct (...wiki/index.php?title=category:Elektrik&from=xxxx), but it will not load.
zaydo
Jim Hu wrote:
Do you require being logged in to do anything?
On Jul 24, 2007, at 3:06 PM, zaydo wrote:
Hi,
sorry for that, but since I still do not have a solution for the problem, I'd like to push the tread up.
zaydo
zaydo wrote:
Hi,
my Wiki contains some categories with more than 200 entries. Registered/logged-on users do not have any problems seeing all entries of a categorie (special categories, stepping through them with 'next 200'). But users, who are not logged-on, are not able to step through the entries of a category.
Any idea why?
Thanks in advance, zaydo
-- View this message in context: http://www.nabble.com/Display-of- categories-tf3974777.html#a11770881 Sent from the WikiMedia General mailing list archive at Nabble.com.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
-- View this message in context: http://www.nabble.com/Display-of- categories-tf3974777.html#a11777474 Sent from the WikiMedia General mailing list archive at Nabble.com.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
-- View this message in context: http://www.nabble.com/Display-of- categories-tf3974777.html#a11808603 Sent from the WikiMedia General mailing list archive at Nabble.com.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054
Hi Jim,
nice trick ;-) But sad result: the request comes through. I echo'ed $from and $until, too, and both showed the correct content. But the page with the next 200 is not displayed. CategoryPage.php uses $wgUser in a way. Might there be a problem?
Anyway, I increased the value of $wgCategoryPagingLimit to 600 in DefaultSettings.php as a 'quick hack' so that my users are satisfied ;-)
zaydo, who really appriciates your help!
Jim Hu wrote:
The other question besides extensions is whether you have apache rules that might affect the behavior. If you don't mind seeing extra junk on the page while you debug, here's a really kludgy way I debug. Add this code snippet to the CategoryPage.php code to see if the info is arriving:
echo "<br><br><br><br><br><br><br><br><br><br>box:<pre>";print_r ($wgRequest);echo "</pre><br>";
I'd put it in closeShowCategory or in view. The long set of breaks is to push the output below the logo. I'm sure there is a cleaner way to do this; writing to a file or to the logs. But I like to do this lazy way of debugging on the copy of MW on my laptop. If I want a really extensive display, I use:
echo "<br><br><br><br><br><br><br><br><br><br>box:<pre>";print_r ($this);echo "</pre><br>";
I suppose it would be even better to use a real debugger... but this is the kind of thing that happens when a molecular biologist tries to become a programmer without actual training.
; )
Jim
On Jul 26, 2007, at 6:19 AM, zaydo wrote:
Hi JH,
sorry, misunderstanding. Yes, users have to be logged in to be able to edit pages. But all are allowed to view pages without log-in.
Well, it is a 'complaint' of some users telling me that simply nothing happens when "next 200" is selected. It tried it myself with the newest versions of IE and Firefox and got a bit different result: the request (URL) is definitely sent (appears in the Apache log file), and the browser is loading a page. But that page is always the one with the first 200 entries. Then I switched off all the extensions (NewestPages, PDF), as you recommended: I actually could load the next 200 entries. But only exactly one time; after that same behaviour as above. And it did not work with another browser (with emptied cache), when I have tried it with the other browser once before. And, when I successfully loaded the 'next 200' I got stuck exactly there. No chance to go back to the first 200 or advance another 'next 200'. Being logged in, there are still no such problems. Very strange...
The actual version is MediaWiki 1.10.0 with PHP 5.2.0-8 and MySQL: 5.0.32 on Apache 2.2.
Thanks, zaydo
Jim Hu wrote:
I meant - did you configure your wiki so that users have to be logged in to edit, view, etc. I took a look around the Category page code, since it's something I'm interested, and I can't see why this would happen. Since the URL is correct, it looks like the Category page isn't getting the parameter from $wgRequest. But I can't see where being logged in would matter.
When you say it will not load... it crashes? Or just goes to the first 200? If it crashes, what's in the error logs? Also: what version of MW and does this happen if you turn off any installed extensions?
JH On Jul 25, 2007, at 1:59 AM, zaydo wrote:
Hi Jim Hu,
yes. The "next 200" articles in a category will only be displayed when logged in. For users who are not logged i, the URL in the browser is correct (...wiki/index.php?title=category:Elektrik&from=xxxx), but it will not load.
zaydo
Jim Hu wrote:
Do you require being logged in to do anything?
On Jul 24, 2007, at 3:06 PM, zaydo wrote:
Hi,
sorry for that, but since I still do not have a solution for the problem, I'd like to push the tread up.
zaydo
zaydo wrote: > > Hi, > > my Wiki contains some categories with more than 200 entries. > Registered/logged-on users do not have any problems seeing all > entries of > a categorie (special categories, stepping through them with 'next > 200'). > But users, who are not logged-on, are not able to step through > the > entries > of a category. > > Any idea why? > > > Thanks in advance, zaydo >
-- View this message in context: http://www.nabble.com/Display-of- categories-tf3974777.html#a11770881 Sent from the WikiMedia General mailing list archive at Nabble.com.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
-- View this message in context: http://www.nabble.com/Display-of- categories-tf3974777.html#a11777474 Sent from the WikiMedia General mailing list archive at Nabble.com.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
-- View this message in context: http://www.nabble.com/Display-of- categories-tf3974777.html#a11808603 Sent from the WikiMedia General mailing list archive at Nabble.com.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Hmm... unfortunately, the help hasn't solved your problem yet. I wonder if others have seen this. Only those of us who restrict editing to logged in users would run into it, and only with large categories, so I can see it being missed. I'll have to get a 1.10 installation up for testing once I get our new dev server online (I try to stay one release behind so problems like this will be identified and fixed by the time I upgrade). In the meantime, perhaps check the sql query being sent? I think that's in the $dbr object in doCategoryQuery.
You might be interested in the SplitCategoryPage.php, an alternative Category page I wrote (that's why I'm interested in the category pages). It's slower and probably not up to MW coding standards, but it shows the counts for subcategories and articles, and displays all subcategories instead of only those that alphabetize within the range of articles (that's what the split is). I don't know if it will show the same problem or not.
Jim
On Jul 26, 2007, at 10:36 AM, zaydo wrote:
Hi Jim,
nice trick ;-) But sad result: the request comes through. I echo'ed $from and $until, too, and both showed the correct content. But the page with the next 200 is not displayed. CategoryPage.php uses $wgUser in a way. Might there be a problem?
Anyway, I increased the value of $wgCategoryPagingLimit to 600 in DefaultSettings.php as a 'quick hack' so that my users are satisfied ;-)
zaydo, who really appriciates your help!
<snip>
mediawiki-l@lists.wikimedia.org