# SOLVED: Invalid Post Type

**URL:** <https://forum.bricksbuilder.io/t/solved-invalid-post-type/3859>\
**Category:** Bugs\
**Created:** [July 5, 2022, 7:36am UTC](https://forum.bricksbuilder.io/t/solved-invalid-post-type/3859 "2022-07-05T07:36:34Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![dan](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/d/eada6e/32.png) [@dan](https://forum.bricksbuilder.io/u/dan)\
**Post date:** [January 24, 2023, 4:57pm UTC](https://forum.bricksbuilder.io/t/solved-invalid-post-type/3859/14 "2023-01-24T16:57:38Z")

</div>

Also getting this error on 1.6.2 with CPT’s.

Tried disabling all plugins, inc metabox and reactivating, and flushing/changing/resaving permalinks.

Again, if i mark as draft I can edit the post/page etc but as soon as its published i get the error. Frontend 404’s when post/page is published also but fine in draft frontend preview

@itchycode what nginx settings should we be looking out for or checking?

EDIT - Also on 1.6.1, 1.6 & 1.5.7 - so either serious bug or site errors somewhere.

EDIT 2 - worked out that my errors could be due to trying to edit a CPT child - new bug report here - [MetaBox CPT hierarchical children Invalid Post Type](https://forum.bricksbuilder.io/t/metabox-cpt-hierarchical-children-invalid-post-type/9550)

---

_[View the full topic](https://forum.bricksbuilder.io/t/solved-invalid-post-type/3859)._
