Wordpress Meta Box插件,“致命错误:调用未定义的方法”

时间:2016-09-26 14:41:27

标签: php wordpress meta-boxes

这个插件的巨大问题!!!!

我更新了Wordpress和所有内容,现在我有了这个错误,所以我无法编辑一些Wordpress页面:

致命错误:在/home/wwwrcf/public_html/wp-content/plugins/meta-box-group/class-rwmb-group-field.php中调用未定义的方法RW_Meta_Box :: get_class_name()第63行

public static function html( $meta, $field )
{
    ob_start();

    // Add filter to child field meta value, make sure it's added only once
    if ( empty( self::$meta_queue ) )
    {
        add_filter( 'rwmb_field_meta', array( __CLASS__, 'child_field_meta' ), 10, 3 );
    }

    // Add group value to the queue
    array_unshift( self::$meta_queue, $meta );

    // Add clone index to make sure each child field has an unique ID.
    $clone_index = '';
    if ( $field['clone'] && preg_match( '|_\d+$|', $field['id'], $match ) )
    {
        $clone_index = $match[0];
    }

    foreach ( $field['fields'] as $child_field )
    {
        $child_field['field_name']       = self::child_field_name( $field['field_name'], $child_field['field_name'] );
        $child_field['attributes']['id'] = ( isset( $child_field['attributes']['id'] ) ? $child_field['attributes']['id'] : $child_field['id'] ) . $clone_index;
****line 63 -> call_user_func( array( RW_Meta_Box::get_class_name( $child_field ), 'show' ), $child_field, RWMB_Group::$saved );
    }

    // Remove group value from the queue
    array_shift( self::$meta_queue );

    // Remove filter to child field meta value and reset class's parent field's meta
    if ( empty( self::$meta_queue ) )
    {
        remove_filter( 'rwmb_field_meta', array( __CLASS__, 'child_field_meta' ) );
    }
    return ob_get_clean();
}

需要解决此问题。

感谢您的帮助!

0 个答案:

没有答案