Custom Fields
Re-Envisioned
Support General Error in image advanced

This topic contains 4 replies, has 2 voices, and was last updated by  clientes@interficto.com 4 months, 2 weeks ago.

  • Creator
    Topic
  • #15113
    Resolved
    clientes@interficto.com
    Participant

    Hello, i have the last version of Metabox.io so i create a custom field call: galería de imágenes wich is a image advance type.

    Hoy ever y can UPLOAD the first time the images and next i can’t edit it or uload more images, please check follow attachment:
    https://pasteboard.co/IleQOQ7.png

    I got the follow issue in console:

    Uncaught TypeError: this.$input.data(...).map is not a function
        at N.d.initialize (media.js?ver=4.18.2:129)
        at N.d.b.View (backbone.min.js?ver=1.2.3:1)
        at N.d [as constructor] (backbone.min.js?ver=1.2.3:1)
        at new N.d (backbone.min.js?ver=1.2.3:1)
        at HTMLInputElement.initImageField (image-advanced.js?ver=4.18.2:32)
        at Function.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.2.2:2)
        at a.fn.init.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.2.2:2)
        at HTMLDocument.<anonymous> (image-advanced.js?ver=4.18.2:43)
        at i (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.2.2:2)
        at Object.fireWith [as resolveWith] (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.2.2:2)
Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #15114

    I check it:
    https://github.com/wpmetabox/meta-box/commit/2c2e7da9e3cb340edcff2d80069e1fb27f1910a2

    But doesn’t work can you help me please?

    #15115

    My code is follow:

    
    add_filter( 'rwmb_meta_boxes', 'your_prefix_register_meta_boxes' );
    function your_prefix_register_meta_boxes( $meta_boxes ) {
        $meta_boxes[] = array (
            'title' => 'Carácteristicas',
            'id' => 'caracteristicas',
            'post_types' => array(
                0 => 'fincas',
            ),
            'context' => 'after_title',
            'priority' => 'high',
            'autosave' => true,
            'fields' => array(
                array (
                    'id' => 'codigo',
                    'type' => 'text',
                    'name' => 'Código',
                    'required' => 1,
                ),
                array (
                    'id' => 'url',
                    'type' => 'url',
                    'name' => 'Video',
                ),
                array (
                    'id' => 'capacidad',
                    'type' => 'number',
                    'name' => 'Capacidad de Personas Máxima',
                    'required' => 1,
                ),
                array (
                    'id' => 'camas',
                    'type' => 'number',
                    'name' => 'Número de Camas',
                    'required' => 1,
                ),
                array (
                    'id' => 'habitaciones',
                    'type' => 'number',
                    'name' => 'Número de Habitaciones',
                ),
                array (
                    'id' => 'galerias',
                    'type' => 'image_advanced',
                    'name' => 'Galeria de imágenes',
                    'image_size' => 'thumbnail',
                    'max_status' => false,
                ),
            ),
        );
        return $meta_boxes;
    }
    
    #15123

    Anh Tran
    Keymaster

    This is a bug in the plugin and is already fixed here:

    https://github.com/wpmetabox/meta-box/commit/2c2e7da9e3cb340edcff2d80069e1fb27f1910a2

    Please apply it in the mean time. I’ll update the Meta Box plugin in a few days.

    #15149

    Sorry I fixed it, was a conflict with other plugin: Real Media, I ubdated it and now work correctly. Thank you Anh

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.