Pagination at Categories while using NGINX

When using Nginx pagination at Categories does not work.

It works:

http://www.ssite.com/m/photos/browse/category/1%201

It doesn't work:

http://www.ssite.com/m/photos/browse/category/1%201&page=2&per_page=40

If i add slash, it works!

http://www.ssite.com/m/photos/browse/category/1%201/&page=2&per_page=40

I think it's problem in pagination function. You should add ELSE ONE SLASH

Quote · 9 Aug 2013

I am using Nginx on my site.  Let me see if it works the same on my site as it does on your site.

Geeks, making the world a better place
Quote · 9 Aug 2013

Yes, this is broken on my site as well and I never noticed it.  Not only does going to the next page produce an "Empty", if I just change the number of items to be listed on the page it returns "Empty".  Serious problem here.

Geeks, making the world a better place
Quote · 9 Aug 2013

Please check that slash thing.  When I added the slash to the URL it just brought up the first page again.

However, the pagination is broken.  It is the space, %20 in the category name.  Actually, I think this has been presented before.  This may have been fixed.  There is so much to keep up with that I forget.  I need to apply the updates to my site and I have not done that.  Now I need to start over with the 7.1.4 release and get caught up with the bug fixes.

Do a search on the forums and you may find this has already been addressed and fixed.

Geeks, making the world a better place
Quote · 9 Aug 2013

This demo is using Nginx web server, and there is no such problem there:

http://www.demozzz.com/dolphin714b/m/photos/browse/category/Profile%20Photos&page=3&per_page=1

Please make sure that you are using the latest version of Dolphin.

Rules → http://www.boonex.com/terms
Quote · 12 Aug 2013

 

Please check that slash thing.  When I added the slash to the URL it just brought up the first page again.

 Yes! You are right! First page if using slash.

Dolphin 7.1.4 same.

Quote · 12 Aug 2013

Problem in rewrite rules for NGINX. Add red line in your rules. It also good for TAGS pagination!

 

        # modules #rewrite 

rewrite "^/m/([^/.]+)/browse/([^/.]+)/([^/.]+)&page=([0-9]+)&per_page=([0-9]+)$" /modules/?r=$1/browse/$2/$3&page=$4&per_page=$5 last;

rewrite ^/m/(.*)$ /modules/index.php?r=$1 last;

         # profile #rewrite

        if (!-e $request_filename ) {

            rewrite  ^/([^/]+)$  /profile.php?ID=$1  last;

            break;

        }

Quote · 12 Aug 2013

 

This demo is using Nginx web server, and there is no such problem there:

http://www.demozzz.com/dolphin714b/m/photos/browse/category/Profile%20Photos&page=3&per_page=1

Please make sure that you are using the latest version of Dolphin.

Alex, I went there and there are not enough photos to test if it works or not.  There were only five photos in "Profile Photos" so how can we test the pagination? The problem is the first page loads but the next page in the pagination says "Empty"

Geeks, making the world a better place
Quote · 12 Aug 2013

 

Problem in rewrite rules for NGINX. Add red line in your rules. It also good for TAGS pagination!

 

        # modules #rewrite 

rewrite "^/m/([^/.]+)/browse/([^/.]+)/([^/.]+)&page=([0-9]+)&per_page=([0-9]+)$" /modules/?r=$1/browse/$2/$3&page=$4&per_page=$5 last;

rewrite ^/m/(.*)$ /modules/index.php?r=$1 last;

         # profile #rewrite

        if (!-e $request_filename ) {

            rewrite  ^/([^/]+)$  /profile.php?ID=$1  last;

            break;

        }

I am not the best at rewrite rules; something I need to learn more about.  Could you explain your rewrite rule?

Geeks, making the world a better place
Quote · 12 Aug 2013

 

 

This demo is using Nginx web server, and there is no such problem there:

http://www.demozzz.com/dolphin714b/m/photos/browse/category/Profile%20Photos&page=3&per_page=1

Please make sure that you are using the latest version of Dolphin.

Alex, I went there and there are not enough photos to test if it works or not.  There were only five photos in "Profile Photos" so how can we test the pagination? The problem is the first page loads but the next page in the pagination says "Empty"

 
He forced the per page to 1 in the url to test so he could get 5 pages.


https://www.deanbassett.com
Quote · 12 Aug 2013

 

 

 

This demo is using Nginx web server, and there is no such problem there:

http://www.demozzz.com/dolphin714b/m/photos/browse/category/Profile%20Photos&page=3&per_page=1

Please make sure that you are using the latest version of Dolphin.

Alex, I went there and there are not enough photos to test if it works or not.  There were only five photos in "Profile Photos" so how can we test the pagination? The problem is the first page loads but the next page in the pagination says "Empty"

 
He forced the per page to 1 in the url to test so he could get 5 pages.


OK, understand now.  So my problem is that I have yet to upgrade?  Because at my current version I do have the problem.  The person of this post claims at 7.1.4 and sees the problem and Alex is saying his demo is at 7.1.4 and no problem.  Was there a ticket on this?  I know there was a problem with the + in the URLs for the categories with space and that was fixed.  Now I am seeing categories with a space that don't want to paginate.  I am not sure that Alex forced to one is a proper test.  I would rather see the site populated with twenty photos.  Let me try forcing my page to the same and see what happens.

Geeks, making the world a better place
Quote · 12 Aug 2013

When I try changing the URL, it shows up in the block caption:

 

Browse photos by category "Profile photos&page=3&per_page=1"
 
That is strange.
 
I guess I need to upgrade to 7.1.4 and then test this when I do.
Geeks, making the world a better place
Quote · 12 Aug 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.