Title: New block-editor.php code errors with 404
Last modified: February 20, 2022

---

# New block-editor.php code errors with 404

 *  [stevemullen](https://wordpress.org/support/users/stevemullen/)
 * (@stevemullen)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/new-block-editor-php-code-errors-with-404/)
 * This is a plugin conflict problem. The url is incorrectly displaying a “Listings
   Carousel” page. It should be displaying a property detail page for a specific
   real estate listing.
 * WPCF7 5.5.5 has added new code to includes/block-editor/block-editor.php. It 
   searches WP Posts for contact forms, which appears to be interrupting the wp 
   404 logic.
    Commenting out this code solves the issue, and the page correctly
   displays the real estate listing.
 * We’ve tried to remove the block editor action – but it’s not resolving the issue.
   It appears like the remove_action() is not working:
 * `remove_action( 'init', 'wpcf7_init_block_editor_assets', 99 );`
 * Questions:
    – should WPCF7 be initializing block editor elements on the front
   end? Even when the page is not in edit mode? – what is the correct hook to remove
   this action? – can we have a hook to simply disable all WPCF7 initialization 
   on a page? Many plugins offer this. In our context, we’d call it on our 404 code,
   which we use to display real estate listings for specific urls.
 * Thank you
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fnew-block-editor-php-code-errors-with-404%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Thread Starter [stevemullen](https://wordpress.org/support/users/stevemullen/)
 * (@stevemullen)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/new-block-editor-php-code-errors-with-404/#post-15474937)
 * This is an important issue. Please respond – thank you.

Viewing 1 replies (of 1 total)

The topic ‘New block-editor.php code errors with 404’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

 * [plugin conflict](https://wordpress.org/support/topic-tag/plugin-conflict/)

 * 1 reply
 * 1 participant
 * Last reply from: [stevemullen](https://wordpress.org/support/users/stevemullen/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/new-block-editor-php-code-errors-with-404/#post-15474937)
 * Status: not resolved