Can't save groups anymore

Support MB Group Can't save groups anymore

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3256
    rikmulderrikmulder
    Participant

    Hi Anh Tran,

    I too have a problem saving groups all in a sudden. I have groups with a few textfields and one imagefield.

    I add a new page and can add a group, when I add a second group it overrides the first group and adds the image. So instead of two groups with each its own image (a logo) I get one group with the two images attached.

    I checked the forum and cleared the cache to see if it was the javascript problem but that doesn't help.

    Here's the code I use to define the field:

    // METABOX: FOOD FESTIVAL
    $meta_boxes[] = array(
    	'title' => 'Foodfestivals toevoegen',
    	'post_types' => array( 'page' ),
    	
    	// Register this meta box for posts matched below conditions
    		'include' => array(
    			// With all conditions below, use this logical operator to combine them. Default is 'OR'. Case insensitive. Optional.
    			'relation' => 'OR',
    
    			// List of post parent IDs. Alleen toevoegen als parent ID 81 (foodfestivals) is
    			'parent'       => array( 81 ),
    		),
    
    	'fields' => array(
    		// Group
    		array(
    			'name' => 'Food festival', // Optional
    			'id' => 'ff_id',
    			'type' => 'group',
    			'clone'  => true, // Clone whole group? 
    			//'sort_clone' => true, // Drag and drop clones to reorder them? 
    
    			// List of sub-fields
    			'fields' => array(
    				array(
    					'name' => '<strong>Naam festival</strong>',
    					'id' => $prefix . 'ff_name',
    					'type' => 'text',
    				),
    				array(
    					'name' => '<strong>Website</strong>',
    					'id' => $prefix . 'ff_url',
    					'type' => 'text',
    				),
    				array(
    					'name' => '<strong>Plaats</strong>',
    					'id' => $prefix . 'ff_place',
    					'type' => 'text',
    				),
    				array(
    					'name' => '<strong>Datum</strong>',
    					'id' => $prefix . 'ff_date',
    					'type' => 'text',
    				),
    				array(
    					'name'	=> '<strong>Visual festival</strong>',
    					'id'	=> $prefix . 'ff_visual',
    					'type'	=> 'image_advanced',
    					'desc'	=> 'Visual (128 x 128 px).'
    				),
    				// Other sub-fields here
    			),
    		),
    	),
    );
    
    #3258
    rikmulderrikmulder
    Participant

    Update: I went back to version 4.8.5 which works.

    #3259
    rikmulderrikmulder
    Participant

    Deactivated everything, deleted and installed again using the Update extension. Working now.

    #3262
    Anh TranAnh Tran
    Keymaster

    Glad that you have resolved this 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Can't save groups anymore’ is closed to new replies.