# Empty category page results in an error

**URL:** <https://colorlibsupport.com/t/empty-category-page-results-in-an-error/33172>\
**Category:** Activello\
**Created:** [September 11, 2022, 8:56pm UTC](https://colorlibsupport.com/t/empty-category-page-results-in-an-error/33172 "2022-09-11T20:56:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AdamBadura](https://colorlibsupport.com/user_avatar/colorlibsupport.com/adambadura/32/10700_2.png) [@AdamBadura](https://colorlibsupport.com/u/AdamBadura)\
**Post date:** [September 11, 2022, 8:56pm UTC](https://colorlibsupport.com/t/empty-category-page-results-in-an-error/33172/1 "2022-09-11T20:56:27Z")

</div>

As the title says, if the category has no posts its page is an error. I think it may be caused by the `archive.php` fallback:

```php
<?php get_template_part( 'template-parts/content', 'none' ); ?>

```

since the `template-parts/content` that seems to assume there is some post to be shown.

Not a big issue since empty category doesn’t seem something useful, but since I noticed the issue I’m reporting it. 😉

---

<div class="post-metadata">

**Author:** ![colorlibsupport](https://colorlibsupport.com/user_avatar/colorlibsupport.com/colorlibsupport/32/1494_2.png) [@colorlibsupport](https://colorlibsupport.com/u/colorlibsupport)\
**Post date:** [September 12, 2022, 9:02am UTC](https://colorlibsupport.com/t/empty-category-page-results-in-an-error/33172/2 "2022-09-12T09:02:23Z")

</div>

Hi there

Thanks for reporting it, I just reported it to our Github issues:

> <https://github.com/ColorlibHQ/Activello/issues/141>
>
> As the title says, if the category has no posts its page is an error. I think it… may be caused by the archive.php fallback:
> 
> \<?php get\_template\_part( 'template-parts/content', 'none' ); ?\>
> since the template-parts/content that seems to assume there is some post to be shown.
> 
> Not a big issue since empty category doesn’t seem something useful, but since I noticed the issue I’m reporting it. :wink:
> 
> Reported here:
> https://colorlibsupport.com/t/empty-category-page-results-in-an-error/33172
