Opened 11 years ago
Closed 10 years ago
#528 closed defect (fixed)
pagination fails from user page
|Reported by:||ronny||Owned by:|
I experienced a problem, when trying to go to the second page of a user (https://example.org/u/username/). I just got a Server Error. After trying around, I could find out, that it had to do with a wrong URL in the NextPage Link.
it should have been:
In the file:
the "base_url" is set by "request.full_path". I tried to set it instead with "request.urlgen('mediagoblin.user_pages.user_home', user= request.user.username)" and it worked. But I am not sure if this would interfere with some other parts...
thanks in advance
Change History (6)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
Wasn't able to reproduce on the current code, is this still occurring?
comment:3 by , 11 years ago
mmh still there, just did a git checkout, setup.py develop --upgrade && ./bin/gmg dbupdate and mediagoblin-paster restart.
maybe sth in combination with nginx? btw here are the errors:
comment:4 by , 11 years ago
did that paste cut off? that doesn't look like the entire traceback
comment:5 by , 11 years ago
it just ends there..
comment:6 by , 10 years ago
|Status:||new → closed|
after an recent update pagination seems to work!
OK just realized, that my solution doesnt work in anyways. If the user isnt logged in, it doesnt work. If soone not-logged-in is using the second page from the main page (https://example.org/), he gets to: https://example.org/?page=2, which shows the same Server Error.
I think the problem is somewhere with this page=2 parameter, it seems to work only (with restrictions) with the userpage..