Forums | Mahara Community
Find Friends page nav (user/find.php) not working
23 February 2010, 10:04 AM
I have Mahara 1.2.2 (upgraded from 1.6 two weeks ago) installed on a Debian 5.0.4 (apache 2.2.9-10+lenny6) virtual machine, with 100 users and 1 admin.
When a user tries to browse through the list of other members using "Groups->Find Friends", that user can only view the first page. Clicking on the links at the bottom doesn't work (nothing happens, no page refresh, nothing), but right-clicking on one of the buttons and copying the linked URL, then pasting that in manually does work. Like this, for example:
That works when pasted in, but not when you click on that corresponding nav buttons.
Now, when the admin user logs in, those buttons and all other nav buttons suddenly work just fine.
I've tried this on I.E.6 & Windows, and Firefox & Chrome in Linux. All are the same. I've tried all the different themes to make sure it's not a bug in a theme.
What I found interesting, though, is that when a user clicks on a link and that link seemingly does nothing, Apache logs a page request in just the same way as if the click had worked just fine.
When the link is clicked by an admin and does work:
172.16.1.88 - - [23/Feb/2010:13:38:55 +0000] "GET /mahara/json/friendsearch.php?query=&offset=10&extradata=%7B%22page%22%3A%22find%22%7D&sesskey=Sm4M6Qdr1GzOPLg8 HTTP/1.1" 200 209 "http://llnmahara.worc.ac.uk/mahara/user/find.php" "Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:188.8.131.52) Gecko/20100214 Ubuntu/9.10 (karmic) Firefox/3.5.8"
When the link is clicked as a user and doesn't work:
172.16.1.88 - - [23/Feb/2010:13:40:13 +0000] "GET /mahara/json/friendsearch.php?query=&offset=10&extradata=%7B%22page%22%3A%22find%22%7D&sesskey=Sm4M6Qdr1GzOPLg8 HTTP/1.1" 200 209 "http://llnmahara.worc.ac.uk/mahara/user/find.php" "Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:184.108.40.206) Gecko/20100214 Ubuntu/9.10 (karmic) Firefox/3.5.8"
Nothing is written to the Apache error log at this moment, so it doesn't seem to be an Apache error...
Does anyone have an idea of how to fix this? It worked before in Mahara 1.6, but now users can't browse for friends in Mahara 1.2.2!
Any thoughts welcomed, thanks.
26 February 2010, 3:42 AM
I got the same problem.
After updating to Mahara 1.2.3 (2009111010) the button "Next page" /mahara/user/find.php?query=&offset=10 at "Find Friends" is not working.
There is a short message "Loading" but the next page doesn't appear.
The url /mahara/user/find.php?query=&offset=10 it does work.
Tested with Chrome 4.0, Firefox 3.6, and IE 7
28 February 2010, 4:18 PM
Adam and Michael,
Thanks for reporting this. I've confirmed this problem and created a bug report here: https://bugs.launchpad.net/mahara/+bug/529650
Feel free to add any additional observations you have.
02 March 2010, 5:11 PM
Adam and Michael,
I could only seem to reproduce this problem in Chrome and Safari, so I'm not sure I've fixed the problem you are having. In any case, you can try my fix by replacing the file js/paginator.js with this one (click on "download file"): http://bazaar.launchpad.net/~vcs-imports/mahara/master/annotate/head:/htdocs/js/paginator.js
Let me know if that works. If not, I'll if anyone else on the Mahara team can reproduce the problem. Does the find friends navigation work for you on demo.mahara.org?
10 March 2010, 10:35 AM
That worked! Thanks. I've had a chance to try that out in Windows I.E., Firefox and Chrome, and Linux Firefox. All work again now, thank you!
26 April 2010, 8:21 AM
Firefox 3.6.3 Mozilla/5.0 (X11; U; Linux i686; en-GB) Ubuntu 10.04 (RC)
Safari Version 4.0.5 (6531.22.7) (OSX 10.6.3)
Getting the same problem, hangs with a loading message if I am logged in as a regular user (member of an Institution), however when logged in as Admin (No Institution) everything appears fine.
26 April 2010, 8:29 AM
[Mon Apr 26 14:26:15 2010] [error] [client **.**.*.**] File does not exist: /var/www/htdocs/theme/ultima/static/images/submenu-divider.gif, referer: http://blah.blah.ac.uk/theme/ultima/static/style/style.css
From Apache logs when I last tried this.
Just checking this out, probs just a coincidence?
26 April 2010, 8:55 AM
03 June 2010, 10:18 AM
Oddly... I was unable to download the file.
Clicking the download link resulted in a zero byte file (tried in Chrome and FireFox on Ubuntu 10.04).
I assume the latest version is in the mahara git repo....