• 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 to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter stevemullen

    (@stevemullen)

    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.