• murrayelliot2

    (@murrayelliot2)


    Something has gone quite badly wrong with my production site and I need help debugging it. My Dev and Test site are running fine, and they have the same version of WordPress and plugins.

    When I create a new page or post, or try editing an existing page or post, I get the above error, no matter what I do.

    One of the pages I tried editing looks like this (I used “Copy all blocks”) to get this.

    <!-- wp:group -->
    <div class="wp-block-group"><!-- wp:paragraph -->
    <p><strong>Delivery:</strong> We will endeavour to ship your order as quickly as possible, however please allow 5-7 working days for UK orders and up to 30 days days for international orders, especially at busy times. Please note 24 or 48 hour royal mail delivery is timed from date of shipping, not from placement of order.<br><strong>Payment: </strong>We are only able to accept VISA or MASTERCARD card payments.<br>By continuing with the order you agree to having read and understood these terms.</p>
    <!-- /wp:paragraph --></div>
    <!-- /wp:group -->
    
    <!-- wp:shortcode -->
    [woocommerce_cart]
    <!-- /wp:shortcode -->

    There seems to be a rather significant problem with my WP install.
    Current version: 6.1.5 but I’m loathed to upgrade it in case I break it more significantly!

    Any help in how to go about diagnosing the problem would be much appreciated.

    Thank you in advance!

Viewing 1 replies (of 1 total)
  • threadi

    (@threadi)

    The code works for me without any problems. Even with or without WooCommerce (which is what the shortcode below is for).

    To find out the reason, deactivate all plugins as a test. Does it work then? Then it was due to one of the plugins. You could also switch to a standard theme to see if it is due to your theme.

    You could also carry out these tests after you have copied the live system into the test system. Make sure you take everything with you: Database and files. Without exception. You should only adjust the database access data in wp-config.php. If it doesn’t work in the test system either, you can take it apart even more and analyse it there.

Viewing 1 replies (of 1 total)
  • The topic ‘This block has encountered an error and cannot be previewed.’ is closed to new replies.