Title: Critical Error When Editing / Adding Post
Last modified: December 1, 2022

---

# Critical Error When Editing / Adding Post

 *  Resolved [rrrr2345](https://wordpress.org/support/users/rrrr2345/)
 * (@rrrr2345)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/critical-error-when-editing-adding-post/)
 * Hi,
 * Im having an issue. Created a custom post and was working fine. Updated PHP and
   now when i try and add a post or edit a past one i get a critical error.
    How
   can i fix this?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [3 years, 6 months ago](https://wordpress.org/support/topic/critical-error-when-editing-adding-post/#post-16252044)
 * Hi [@rrrr2345](https://wordpress.org/support/users/rrrr2345/)
 * Before we can do anything, we need to know what the actual error is. I assume
   you got emailed with more details when the errors occur, but that’s not a guarantee.
   If you haven’t been receiving emails, then you’re going to need to log in to 
   your hosting panel and locate the error log section to get the information.
 *  Thread Starter [rrrr2345](https://wordpress.org/support/users/rrrr2345/)
 * (@rrrr2345)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/critical-error-when-editing-adding-post/#post-16252542)
 * Thank you for your quick response.
    The message said there is an issue with the
   woocommerce payment plugin, on line 47 for file: …./public/wp-content/plugins/
   woocommerce-payments/includes/fraud-prevention/class-fraud-prevention-service.
   php
 * Is there anyway to resolve this?
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [3 years, 6 months ago](https://wordpress.org/support/topic/critical-error-when-editing-adding-post/#post-16252640)
 * Do you have the full error message, probably something starting with “Fatal Error”
   etc? Also it sounds like it’s probably a PHP conflict with this woocommerce-payments
   plugin more than CPTUI. So I’d reach out to them as well.
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [3 years, 5 months ago](https://wordpress.org/support/topic/critical-error-when-editing-adding-post/#post-16266755)
 * Any news on this front [@rrrr2345](https://wordpress.org/support/users/rrrr2345/)?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Critical Error When Editing / Adding Post’ is closed to new replies.

 * ![](https://ps.w.org/custom-post-type-ui/assets/icon-256x256.png?rev=2744389)
 * [Custom Post Type UI](https://wordpress.org/plugins/custom-post-type-ui/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-post-type-ui/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-post-type-ui/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-post-type-ui/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-post-type-ui/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-post-type-ui/reviews/)

## Tags

 * [CPT UI](https://wordpress.org/support/topic-tag/cpt-ui/)
 * [critical error](https://wordpress.org/support/topic-tag/critical-error/)
 * [custom post](https://wordpress.org/support/topic-tag/custom-post/)

 * 4 replies
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/critical-error-when-editing-adding-post/#post-16266755)
 * Status: resolved