NO BUG: Invalid Post Type - Can't edit Templates

Bricks Version: 1.6.2
Browser: Firefox (latest)
OS: macOS

I have the “invalid post type” error when trying to edit templates.

I’ve narrowed this down to a plugin conflict with CPTUI.
I’ve disabled all but essential plugins but still got the “invalid post type” error until I disabled CPTUI.
Only plugins I currently have active are:

  • ACF Pro
  • ACSS
  • CPTUI
  • Frames
  • WPCodebox
  • WSForms Pro

I did update to 1.7 beta to try it out so I don’t know if this error was caused by that because it was working fine previously. After updating, I was working just on pages (not templates) for a couple of days, then went to edit a template and got this error.

I rolled back to 1.6.2 and still had the issue, so started trying to narrow it down until I found that CPTUI seemed to be the issue. Editing templates is fine until I enable CPTUI. Which I kind of need enabled to create/edit templates for those custom post types :smiley:

Have you tried re-saving your permalink settings?

1 Like

Yeah, numerous times, including every time I disabled or re-enabled a plugin while investigating the issue.

Hi Daniel,
Thanks so much for your report!

We also have CPTUI running on our dev server and no problems at all :thinking:

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

Best regards,
timmse

Hey Daniel,
Thanks for the login credentials!

Something’s wrong with your child theme. I’ve switched to Bricks and can edit templates without any issues (with CPTUI enabled). Unfortunately, I can’t open the Theme File Editor, so I can’t help you at this point. But it definitely seems to be the child theme :face_with_monocle:

No idea what the issue would be with the Child Theme. It hasn’t been modified in any way by me. I’ll just use the main theme as I don’t have any plans to modify functions.php or anything like that :man_shrugging:

Hey Daniel,
We are one step further: if the template is not published, it can be edited. However, we cannot yet say what the reason for this is.

Can you disable Cloudflare for this staging site completely?

I have put the site into development mode on Cloudflare, is that what you mean?

The problem with the development mode is that it does not purge any cached files (Development Mode · Cloudflare Cache (CDN) docs).

Can you purge all cached files manually and share FTP access (via email) so we can inspect the debug.log file?

Hi Daniel,

I will mark this thread as NO BUG.
As per our email conversation, it was caused by one of the custom CPT rewrite slug issues.

Thanks!

Regards,
Jenn

1 Like

Thanks for the help Jenn