Blank page for cloneable field inside a group

Support General Blank page for cloneable field inside a group

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #46181
    Trang NguyenTrang Nguyen
    Participant

    Hi.
    Seem like a clonable field inside a Group leads to blank page issue next time editing a post.

    Fields structure (Using Custom Table):
    yo_benefit_en (group)
    --intro (textarea)
    --physical_en (textarea, cloneable)

    There is no issue editing the intro field. But any time I edit physical_en field > save the post > refresh > it leads to blank page.

    If I turn off the cloneable option and create a new post, the issue isn't presented, but the old post still gets the blank page.
    If the field value of the old post is removed from the database, the issue is also gone.
    So I think there is some issue with saving cloneable field inside a group to the database.

    I attached the generated code below.

    <?php
    add_filter( 'rwmb_meta_boxes', 'your_prefix_function_name' );
    
    function your_prefix_function_name( $meta_boxes ) {
        $prefix = '';
    
        $meta_boxes[] = [
            'title'        => __( 'Yoga Pose - Extra', 'your-text-domain' ),
            'id'           => 'yoga-pose-extra',
            'post_types'   => ['post_yoga_pose'],
            'closed'       => false,
            'storage_type' => 'custom_table',
            'table'        => 'h0td0nut_mb_yoga_poses_extra',
            'fields'       => [
                [
                    'name'              => __( 'Benefits', 'your-text-domain' ),
                    'id'                => $prefix . 'yo_benefit_en',
                    'type'              => 'group',
                    'collapsible'       => false,
                    'clone'             => false,
                    'clone_empty_start' => false,
                    'columns'           => 6,
                    'hide_from_rest'    => false,
                    'fields'            => [
                        [
                            'name'              => __( 'Benefit Intro', 'your-text-domain' ),
                            'id'                => $prefix . 'intro',
                            'type'              => 'textarea',
                            'required'          => false,
                            'disabled'          => false,
                            'readonly'          => false,
                            'clone'             => false,
                            'clone_empty_start' => false,
                            'hide_from_rest'    => false,
                            'limit_type'        => 'character',
                        ],
                        [
                            'name'              => __( 'Physical_en', 'your-text-domain' ),
                            'id'                => $prefix . 'physical_en',
                            'type'              => 'textarea',
                            'required'          => false,
                            'disabled'          => false,
                            'readonly'          => false,
                            'clone'             => true,
                            'sort_clone'        => false,
                            'clone_default'     => false,
                            'clone_as_multiple' => false,
                            'clone_empty_start' => false,
                            'hide_from_rest'    => false,
                            'limit_type'        => 'character',
                        ],
                    ],
                ],
            ],
        ];
    
        return $meta_boxes;
    }
    #46193
    PeterPeter
    Moderator

    Hello,

    Thank you for your feedback.

    You are correct. There is an issue with the cloneable textarea subfield in a group field. I've escalated this to the development team to fix the issue. Please disable cloneable for this field, delete the value in the database and add a new value to prevent the blank page.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.