# SOLVED: 404 Page Template not Showing despite conditions set

**URL:** <https://forum.bricksbuilder.io/t/solved-404-page-template-not-showing-despite-conditions-set/15812>\
**Category:** Bugs\
**Tags:** v1-9-1-1\
**Created:** [September 28, 2023, 4:42am UTC](https://forum.bricksbuilder.io/t/solved-404-page-template-not-showing-despite-conditions-set/15812 "2023-09-28T04:42:50Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![stuismad](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/stuismad/32/6642_2.png) [@stuismad](https://forum.bricksbuilder.io/u/stuismad)\
**Post date:** [September 28, 2023, 4:42am UTC](https://forum.bricksbuilder.io/t/solved-404-page-template-not-showing-despite-conditions-set/15812/1 "2023-09-28T04:42:50Z")

</div>

Hi Team,

I have set a 404 Error page w/ correct template conditions set to show on ‘Error Page’ however the page does not load when visiting a URL that doesn’t exist. In it’s place is the default “Whoops” page with a search bar.

Video: [Video Screen Capture](https://jam.dev/c/074c3fb6-058e-445b-a198-2bd3073af3bf)

A few people are reporting the same problem in this thread here: [Redirection 404 not using error page template](https://forum.bricksbuilder.io/t/redirection-404-not-using-error-page-template/10789)

---

<div class="post-metadata">

**Author:** ![simplecreative](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/s/b9bd4f/32.png) [@simplecreative](https://forum.bricksbuilder.io/u/simplecreative)\
**Post date:** [October 9, 2023, 8:44pm UTC](https://forum.bricksbuilder.io/t/solved-404-page-template-not-showing-despite-conditions-set/15812/2 "2023-10-09T20:44:41Z")

</div>

@timmse  
Same here!

I made what I every time doing, but now its not working.

- I made Bricks Template
- I Designed and add condition in editor.
- But when I pud a wrong url, not using my error page.
- Flushed the cache
- Update Permalinks

Template section:

 ![image](https://forum.bricksbuilder.io/uploads/default/original/2X/0/05aaa971258e9613a8dc156beea1e833283d591a.png)

Condition:

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

---

<div class="post-metadata">

**Author:** ![Mundy](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/m/bb73d2/32.png) [@Mundy](https://forum.bricksbuilder.io/u/Mundy)\
**Post date:** [October 9, 2023, 11:09pm UTC](https://forum.bricksbuilder.io/t/solved-404-page-template-not-showing-despite-conditions-set/15812/3 "2023-10-09T23:09:35Z")

</div>

I also just noticed my site is starting to have this problem, since 1.9.1 for myself I believe.

---

<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:** [October 10, 2023, 8:42am UTC](https://forum.bricksbuilder.io/t/solved-404-page-template-not-showing-despite-conditions-set/15812/4 "2023-10-10T08:42:21Z")

</div>

Hi guys,  
Sorry for the late reply, and thanks so much for your reports!

Unfortunately, I cannot reproduce the issue. Would any of 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:** ![stuismad](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/stuismad/32/6642_2.png) [@stuismad](https://forum.bricksbuilder.io/u/stuismad)\
**Post date:** [October 11, 2023, 3:46am UTC](https://forum.bricksbuilder.io/t/solved-404-page-template-not-showing-despite-conditions-set/15812/5 "2023-10-11T03:46:24Z")

</div>

> [@timmse](#):
>
> e 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 - this has been emailed over now with temporary login details.

---

<div class="post-metadata">

**Author:** ![stuismad](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/stuismad/32/6642_2.png) [@stuismad](https://forum.bricksbuilder.io/u/stuismad)\
**Post date:** [October 12, 2023, 9:28pm UTC](https://forum.bricksbuilder.io/t/solved-404-page-template-not-showing-despite-conditions-set/15812/6 "2023-10-12T21:28:27Z")

</div>

If **anyone else can share their site access** for @timmse to replicate the issue please do so, as I installed ‘WP 301 Redirect’ to help with the issue post-404 not working which makes it hard to pin-point errors.

---

<div class="post-metadata">

**Author:** ![Mundy](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/m/bb73d2/32.png) [@Mundy](https://forum.bricksbuilder.io/u/Mundy)\
**Post date:** [October 13, 2023, 1:19am UTC](https://forum.bricksbuilder.io/t/solved-404-page-template-not-showing-despite-conditions-set/15812/7 "2023-10-13T01:19:33Z")

</div>

I just submitted credentials as well.

---

<div class="post-metadata">

**Author:** ![itchycode](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/itchycode/32/4542_2.png) [@itchycode](https://forum.bricksbuilder.io/u/itchycode)\
**Post date:** [October 13, 2023, 3:21am UTC](https://forum.bricksbuilder.io/t/solved-404-page-template-not-showing-despite-conditions-set/15812/8 "2023-10-13T03:21:02Z")

</div>

Hi @Mundy ,

Thank you so much for the login details.  
We can replicate the issue when your permalink structure is /%category%/%postname%/

I have recorded this in the bug tracker.

@stuismad ,

May I know what is your permalink structure?

Regards,  
Jenn

---

<div class="post-metadata">

**Author:** ![stuismad](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/stuismad/32/6642_2.png) [@stuismad](https://forum.bricksbuilder.io/u/stuismad)\
**Post date:** [October 13, 2023, 4:28am UTC](https://forum.bricksbuilder.io/t/solved-404-page-template-not-showing-despite-conditions-set/15812/9 "2023-10-13T04:28:22Z")

</div>

@itchycode can confirm my perma structure is also /%category%/%postname%/

---

<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:** [October 20, 2023, 8:13am UTC](https://forum.bricksbuilder.io/t/solved-404-page-template-not-showing-despite-conditions-set/15812/10 "2023-10-20T08:13:40Z")

</div>

Hi guys,  
We’ve fixed this issue in Bricks 1.9.2, now available as a one-click update in your WordPress Dashboard.

Changelog: [Changelog – Bricks](https://bricksbuilder.io/changelog/#v1.9.2)

Please let us know if you are still experiencing issues.

Best regards,  
timmse

---

<div class="post-metadata">

**Author:** ![stuismad](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/stuismad/32/6642_2.png) [@stuismad](https://forum.bricksbuilder.io/u/stuismad)\
**Post date:** [October 22, 2023, 9:05pm UTC](https://forum.bricksbuilder.io/t/solved-404-page-template-not-showing-despite-conditions-set/15812/11 "2023-10-22T21:05:59Z")

</div>

Can confirm, working again as intended. Thanks once again for the amazing support from the team.

---

<div class="post-metadata">

**Author:** ![Tom](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/t/3d9bf3/32.png) [@Tom](https://forum.bricksbuilder.io/u/Tom)\
**Post date:** [November 23, 2023, 1:41pm UTC](https://forum.bricksbuilder.io/t/solved-404-page-template-not-showing-despite-conditions-set/15812/12 "2023-11-23T13:41:07Z")

</div>

Hi Timmse,

This is not a complete fix (at least it is not working in Bricks 1.9.3). The code snippet below that uses

`add_action( 'template_redirect', ...`

will not use the Bricks 404 template but just shows the default one with the “Whoops, that page is gone” message.

This issue has been discussed in most of the other topics about 404 issues.

> [@Redirection 404 not using error page template](https://forum.bricksbuilder.io/t/redirection-404-not-using-error-page-template/10789/6):
>
> No not yet. In my other post on the topic I showed Bricks where in their code it was failing to detect the 404 template but no response from them if a fix is in the works.

> [@How Do I Set a 404 Error in PHP and have the Bricks 404 Error Page show?](https://forum.bricksbuilder.io/t/how-do-i-set-a-404-error-in-php-and-have-the-bricks-404-error-page-show/12651/9):
>
> I tested it on another site with Elementor and its 404 error template is displayed. For example I usually disable access to the uncategorized Category taxonomy in WordPress if I do not use posts with the following code snippet. \<?php // For example: https://domain.com/category/uncategorized/ // If not using Category Taxonomy deleting of Uncategorized Category not possible function ess\_disable\_uncategorized\_category\_archives() { // if we are on Uncategorized category archive page if (…

> [@WIP: Can't see the 404 template](https://forum.bricksbuilder.io/t/cant-see-the-404-template/9609):
>
> I had a post about how to make certain page output conditions? I never got a response, but I did it anyway. add\_action( 'template\_redirect', 'my\_404event', 1 ); function my\_404event() { global $post, $wp\_query; if ( is\_singular( 'product' ) && get\_post\_status( $post )=='approved' && $post-\>post\_author != get\_current\_user\_id()) { $wp\_query-\>set\_404(); status\_header(404); include( get\_query\_template( '404' ) ); // include( get\_404\_template()); exit…

```auto
// For example: https://domain.com/category/uncategorized/
// If not using Category Taxonomy deleting of Uncategorized Category not possible
function ess_disable_uncategorized_category_archives() {

    // if we are on Uncategorized category archive page
    if (is_category('uncategorized')) {
        global $wp_query;
        $wp_query->set_404();
        status_header(404);
    }

}

// Disable access
add_action( 'template_redirect', 'ess_disable_uncategorized_category_archives' );

```

---

<div class="post-metadata">

**Author:** ![Tom](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/t/3d9bf3/32.png) [@Tom](https://forum.bricksbuilder.io/u/Tom)\
**Post date:** [November 23, 2023, 4:13pm UTC](https://forum.bricksbuilder.io/t/solved-404-page-template-not-showing-despite-conditions-set/15812/13 "2023-11-23T16:13:01Z")

</div>

I also have a code snippet similar to the above that 404’s home pages that the URL may contain unneeded pagination like:

[mydomain.com/page/2/](http://mydomain.com/page/2/)

The 404 status code is returned but neither the default 404 page or my custom 404 template is returned. Instead the homepage is returned (with a 404 status code) and anything that is queried is empty.

---

<div class="post-metadata">

**Author:** ![itchycode](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/itchycode/32/4542_2.png) [@itchycode](https://forum.bricksbuilder.io/u/itchycode)\
**Post date:** [November 24, 2023, 1:05pm UTC](https://forum.bricksbuilder.io/t/solved-404-page-template-not-showing-despite-conditions-set/15812/14 "2023-11-24T13:05:59Z")

</div>

Hi @Tom,

We will record this in the bug tracker.  
Please follow this thread for any updates [WIP: Can't see the 404 template](https://forum.bricksbuilder.io/t/wip-cant-see-the-404-template/9609)

Regards,  
Jenn
