Woo 8.7.0 issue

update from 8.6 to 8.7, i can see this, just rolling back to 8.6

1 Like

I also encountered this bug!

Personaly I wasn’t sure if this bug was related to Cwicly but fixed by replacing the code inside the WC plugin by the following code provided by ChatGPT:

/**
 * Add the template title and description to WooCommerce templates.
 *
 * @param WP_Block_Template|null $block_template The found block template, or null if there isn't one.
 * @return WP_Block_Template|null
 */
public function add_block_template_details( $block_template ) {
    if ( ! is_object( $block_template ) || ! isset( $block_template->slug ) ) {
        return $block_template;
    }

    if ( ! BlockTemplateUtils::template_has_title( $block_template ) ) {
        $block_template->title = BlockTemplateUtils::get_block_template_title( $block_template->slug );
    }

    if ( ! isset( $block_template->description ) || empty( $block_template->description ) ) {
        $block_template->description = BlockTemplateUtils::get_block_template_description( $block_template->slug );
    }

    return $block_template;
}

Probably not the wisest solution but I really needed 8.7.0 for the custom checkout field functionality

2 Likes

We also experienced this and can confirm that rolling back to 8.6.1 temporarily resolves this for our projects also.

yes, rolling back already. thanks

Hello @qiang814k,

Thanks for the report.

I can reproduce the issue on my end, we will have a fix for this in the next update.

Cheers,

4 Likes