{"action":"created","issue":{"url":"https://api.github.com/repos/projectfork/Projectfork/issues/1621","labels_url":"https://api.github.com/repos/projectfork/Projectfork/issues/1621/labels{/name}","comments_url":"https://api.github.com/repos/projectfork/Projectfork/issues/1621/comments","events_url":"https://api.github.com/repos/projectfork/Projectfork/issues/1621/events","html_url":"https://github.com/projectfork/Projectfork/issues/1621","id":82404392,"number":1621,"title":"Pagination issue in Repository","user":{"login":"fishmonkeyman","id":3658622,"avatar_url":"https://avatars.githubusercontent.com/u/3658622?v=3","gravatar_id":"","url":"https://api.github.com/users/fishmonkeyman","html_url":"https://github.com/fishmonkeyman","followers_url":"https://api.github.com/users/fishmonkeyman/followers","following_url":"https://api.github.com/users/fishmonkeyman/following{/other_user}","gists_url":"https://api.github.com/users/fishmonkeyman/gists{/gist_id}","starred_url":"https://api.github.com/users/fishmonkeyman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fishmonkeyman/subscriptions","organizations_url":"https://api.github.com/users/fishmonkeyman/orgs","repos_url":"https://api.github.com/users/fishmonkeyman/repos","events_url":"https://api.github.com/users/fishmonkeyman/events{/privacy}","received_events_url":"https://api.github.com/users/fishmonkeyman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-29T12:17:39Z","updated_at":"2015-08-06T16:29:00Z","closed_at":null,"body":"Joomla Version: 3.4.1 Stable\r\nProjectfork Version: 4.3.1 Stable\r\nPHP Version: 5.3.29\r\n\r\nI have a number of repository folders, each with a different of files in each.\r\n\r\nI am logged in as a super user.\r\n\r\nIn one folder, there are five files, all displayed on the first page, but the pagination buttons indicate four pages. Each page shows the same five files.\r\n\r\nIn another folder, there are 47 files. The pagination buttons indicate there are four pages. The first three display as expected, with 20 on the first two pages, and the final seven on the third page. Page 4 also displays the final seven.\r\nThe 'number of files shown per page' dropdown is set at 20, but selecting another number, or 'all' has no effect.\r\n\r\nIf I log in as user with a specific access level things get even worse. Even though I have set permissions to view all files in a certain repository folder, I can only see the first one or two pages.\r\n\r\nI believe this has occurred since upgrading to PF 4.3.1, although I can't be certain. I am currently trying to get the server upgraded to a recent php version, although I understand the current version is sufficient.\r\n\r\nThis is a live site with 50 users, so I require an urgent fix please."},"comment":{"url":"https://api.github.com/repos/projectfork/Projectfork/issues/comments/128427262","html_url":"https://github.com/projectfork/Projectfork/issues/1621#issuecomment-128427262","issue_url":"https://api.github.com/repos/projectfork/Projectfork/issues/1621","id":128427262,"user":{"login":"fishmonkeyman","id":3658622,"avatar_url":"https://avatars.githubusercontent.com/u/3658622?v=3","gravatar_id":"","url":"https://api.github.com/users/fishmonkeyman","html_url":"https://github.com/fishmonkeyman","followers_url":"https://api.github.com/users/fishmonkeyman/followers","following_url":"https://api.github.com/users/fishmonkeyman/following{/other_user}","gists_url":"https://api.github.com/users/fishmonkeyman/gists{/gist_id}","starred_url":"https://api.github.com/users/fishmonkeyman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fishmonkeyman/subscriptions","organizations_url":"https://api.github.com/users/fishmonkeyman/orgs","repos_url":"https://api.github.com/users/fishmonkeyman/repos","events_url":"https://api.github.com/users/fishmonkeyman/events{/privacy}","received_events_url":"https://api.github.com/users/fishmonkeyman/received_events","type":"User","site_admin":false},"created_at":"2015-08-06T16:29:00Z","updated_at":"2015-08-06T16:29:00Z","body":"I am still having a huge issue with the Projectfork repository pagination.\r\n\r\nWhile super users can see all files in any repository, some other logged-in users can only see some of the files due to the pagination buttons not appearing, or fewer buttons appearing than the number of pages in the repository directory.\r\n\r\nIt’s not a permissions issue, as the user can manually successfully search for a certain file (assuming they know the name of it) in the dropdown list.\r\n\r\nThe actual number of buttons appearing seems to (rather bizarrely) relate to how many user groups the user is a member of. The larger number of groups, the more pagination buttons they see.\r\n\r\nA super user can see four buttons (pages 1-4) even though there might only be half a dozen files in the repository. This is not a problem per se (albeit confusing for the user) but I mention it here as it’s obviously related to the issue.\r\n\r\nBy viewing the site with the Goggles template an error message is viewable:\r\nWarning: Illegal string offset 'active' in D:\\xampp\\htdocs\\nexus-support.org\\templates\\goggles\\html\\pagination.php on line 86\r\nand\r\nWarning: Illegal string offset 'active' in D:\\xampp\\htdocs\\nexus-support.org\\templates\\goggles\\html\\pagination.php on line 92\r\n\r\nThis is having a huge impact on the usability of my client’s website, and I’d be extremely grateful for any possible solutions.\r\n\r\n![01-pagination-should-only-display-one-page](https://cloud.githubusercontent.com/assets/3658622/9117189/8e637f6a-3c60-11e5-9de8-86bef54098f1.jpg)\r\n![02-page two and other pages all display the same files](https://cloud.githubusercontent.com/assets/3658622/9117190/8e6ef26e-3c60-11e5-80a3-832c9fcc0d72.jpg)\r\n![03-logged in super user can see all documents](https://cloud.githubusercontent.com/assets/3658622/9117191/8e714262-3c60-11e5-962a-158ac1c91b52.jpg)\r\n![04-but pagination displays four pages](https://cloud.githubusercontent.com/assets/3658622/9117192/8e73eb20-3c60-11e5-97c0-50439c631783.jpg)\r\n![06-page 3 and 4 display same documents](https://cloud.githubusercontent.com/assets/3658622/9117187/8e5da266-3c60-11e5-9059-6821f2cdcb1e.jpg)\r\n![07-logged on as manager no pagination buttons displayed](https://cloud.githubusercontent.com/assets/3658622/9117188/8e5f0ed0-3c60-11e5-9422-ac22d63a9960.jpg)\r\n![08-only first 20 documents are displayed no pagination](https://cloud.githubusercontent.com/assets/3658622/9117193/8e869040-3c60-11e5-8089-529c4ee9b1df.jpg)\r\n![09-in goggles warning messages are displayed](https://cloud.githubusercontent.com/assets/3658622/9117194/8e8ee308-3c60-11e5-96df-ba99d416afa3.jpg)\r\n![11-logged in as super user document is visible](https://cloud.githubusercontent.com/assets/3658622/9117195/8e920e02-3c60-11e5-901a-eb0e021b6965.jpg)\r\n![12-logged in as manager document is not visible](https://cloud.githubusercontent.com/assets/3658622/9117196/8e9edb82-3c60-11e5-9c06-fb797839000d.jpg)\r\n"}}