# NO BUG: Category Pagination 404 error

**URL:** <https://forum.bricksbuilder.io/t/no-bug-category-pagination-404-error/13486>\
**Category:** Bugs\
**Tags:** v1-8-1\
**Created:** [June 30, 2023, 1:28pm UTC](https://forum.bricksbuilder.io/t/no-bug-category-pagination-404-error/13486 "2023-06-30T13:28:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![emmanuelson](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/emmanuelson/32/24437_2.png) [@emmanuelson](https://forum.bricksbuilder.io/u/emmanuelson)\
**Post date:** [June 30, 2023, 1:28pm UTC](https://forum.bricksbuilder.io/t/no-bug-category-pagination-404-error/13486/1 "2023-06-30T13:28:59Z")

</div>

I keep encountering a large number of 404 errors in my search console from category pages with pagination. I have enabled the `Is main query option (Archive)` on my query loop and selected `Main query` on the pagination element, but the error persists.

![image](https://forum.bricksbuilder.io/uploads/default/original/2X/a/a43848e5a70e09a6efccbac9450da2627e6e53c4.png) ![image](https://forum.bricksbuilder.io/uploads/default/original/2X/e/ef0ec5f60ae42b1b8159758458f3d10ffb55674a.png)

URL: [NewsBevy](https://newsbevy.com/)

In the short video below, you will notice that I loaded a category page. Initially, the pagination showed `15 pages`, but upon clicking on any of the page numbers, the total pages decreased to 10. I went further and reloaded the page, then clicked to navigate directly to `page 15,` but it returned a 404 error. Interestingly, the error page is not even the one I have defined as my 404 template.

As a result of this behavior, I constantly receive the following errors in the search console, which negatively impacts the SEO for my site.

 ![image](https://forum.bricksbuilder.io/uploads/default/original/2X/6/6dd8ddf8c927691dd790b1ac67d46bb9fae966e5.png)

How do i fix this? Thanks

---

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [July 3, 2023, 6:45am UTC](https://forum.bricksbuilder.io/t/no-bug-category-pagination-404-error/13486/2 "2023-07-03T06:45:49Z")

</div>

Hi Emmanuelson,  
Thanks so much for your report!

Would you be so kind as to send temporary login credentials and a link to this thread to [help@bricksbuilder.io](mailto:help@bricksbuilder.io) using the email address you used during the purchase?

Best regards,  
timmse

---

<div class="post-metadata">

**Author:** ![emmanuelson](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/emmanuelson/32/24437_2.png) [@emmanuelson](https://forum.bricksbuilder.io/u/emmanuelson)\
**Post date:** [July 6, 2023, 6:55pm UTC](https://forum.bricksbuilder.io/t/no-bug-category-pagination-404-error/13486/3 "2023-07-06T18:55:46Z")

</div>

I have sent the details. Thank you

---

<div class="post-metadata">

**Author:** ![aslotta](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/aslotta/32/5419_2.png) [@aslotta](https://forum.bricksbuilder.io/u/aslotta)\
**Post date:** [July 7, 2023, 7:02am UTC](https://forum.bricksbuilder.io/t/no-bug-category-pagination-404-error/13486/4 "2023-07-07T07:02:04Z")

</div>

Hey @emmanuelson,

I changed your pagination element to use the query loop (instead of the main query) as you have altered the main query (changed the posts per page). Does that fix your issues?

 ![CleanShot 2023-07-07 at 09.01.13@2x](https://forum.bricksbuilder.io/uploads/default/original/2X/1/182bf49e7cb90a5b78d54bfbed02dd9920f56079.png)

Best,

André

---

<div class="post-metadata">

**Author:** ![emmanuelson](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/emmanuelson/32/24437_2.png) [@emmanuelson](https://forum.bricksbuilder.io/u/emmanuelson)\
**Post date:** [July 7, 2023, 11:48am UTC](https://forum.bricksbuilder.io/t/no-bug-category-pagination-404-error/13486/5 "2023-07-07T11:48:42Z")

</div>

That solved it. Thank you
