Forum Replies Created
-
AuthorPosts
-
ambrdigital
ParticipantDisregard my previous post, I missed Peter’s update with the fix. It works now. Thanks!
ambrdigital
ParticipantJust checking in, any updates from the development team on an estimated release date for the patch? Thank you!
December 17, 2024 at 2:04 AM in reply to: ✅Issues with Geocoding address field + map field in groups #47193ambrdigital
ParticipantHi I see it's resolved in latest push. Thank so much
December 12, 2024 at 8:33 AM in reply to: ✅Issues with Geocoding address field + map field in groups #47173ambrdigital
ParticipantHi Tan,
Thanks so much - I did replace it but still not working. I did a hard cache clear, still nothing. Any other ideas?
December 10, 2024 at 3:42 AM in reply to: ✅Issues with Geocoding address field + map field in groups #47143ambrdigital
ParticipantHi there, do you mean it won't work if it's in a group? This was working previously but has stopped working. We have this running on a lot of client websites with a lot of data. Is there any way you can get this working again so we don't have to rebuild it?
November 12, 2024 at 11:51 PM in reply to: ✅BUG - Group creates a new group entry upon edit & save (MB Blocks extension) #46917ambrdigital
ParticipantThank you
October 21, 2024 at 10:54 PM in reply to: ✅BUG - Group creates a new group entry upon edit & save (MB Blocks extension) #46742ambrdigital
ParticipantHi Peter, minor correct in the block.json file.
<div>{ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "meta-box/test-block", "title": "Test Block", "description": "The Test Block is a custom block that allows you to test the block editor.", "category": "common", "icon": "fas fa-truck-monster", "keywords": [ "test", "block", "test block" ], "supports": { "anchor":true }, "attributes": { "anchor":{ "type": "string" }, "block_group": { "type": "array" } }, "render": "file:./test-block.php" }</div>October 21, 2024 at 10:52 PM in reply to: ✅BUG - Group creates a new group entry upon edit & save (MB Blocks extension) #46741ambrdigital
ParticipantHi Peter,
We coded the block, I have added below the code of a test block that you can use to troubleshoot and test this bug, We reverted our Meta Box AIO plugin version to 1.30.0 and we do not get have the bug in this version. I suspect the bug is related to the plugin update with 1.30.1 - 2024-09-07 Fix issue with clone_empty_start, that woudl probably be a great place to start the investigation.
Appreciate you looking in to this, let me how if you need any thing else.
Cheers,
Anthonymeta-boxes__test-block.php
<div><?php add_filter( 'rwmb_meta_boxes', 'test_block_meta_boxes' ); function test_block_meta_boxes( $meta_boxes ) { $meta_boxes[] = [ 'title' => 'Test Block', 'id' => "test-block", 'type' => 'block', 'fields' => [ [ 'type' => 'heading', 'name' => 'Test Block', ], [ 'id' => "block_group", 'type' => 'group', 'clone' => true, 'max_clone' => 3, 'sort_clone' => true, 'collapsible' => true, 'save_state' => true, 'group_title' => 'Group {#}', 'add_button' => '+ Add Group', 'fields' => [ [ 'name' => 'Header', 'id' => "block_header", 'type' => 'textarea', 'rows' => 1 ], [ 'id' => "block_group_inner", 'type' => 'group', 'clone' => true, 'sort_clone' => true, 'collapsible' => true, 'save_state' => true, 'group_title' => 'Column {#}', 'add_button' => '+ Add Test', 'fields' => [ [ 'name' => 'Inner Header', 'id' => "block_inner_header", 'type' => 'textarea', 'rows' => 1 ] ] ], ], ], ], ]; return $meta_boxes; };</div>block.json
<div>{ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "meta-box/test-block", "title": "Test Block", "description": "The Test Block is a custom block that allows you to test the block editor.", "category": "common", "icon": "fas fa-truck-monster", "keywords": [ "test", "block", "test block" ], "supports": { "anchor":true }, "attributes": { "anchor":{ "type": "string" }, "g-block_group": { "type": "array" } }, "render": "file:./test-block.php" }</div>.
text-block.php
<div><?php /** * @var array<string, mixed>[] $attributes The block attributes. * @var string $content The block default content. * @var \WP_Block $block The block instance. */ $blockName = "test_block"; $prefix = "block_"; $class = "mb-block_" . $blockName; $id = ( $blockName . '-' . $attributes['id'] ?? '' ); if ( ! empty( $attributes['anchor'] ) ) { $id = $attributes['anchor']; } if( is_admin() || (defined( 'REST_REQUEST' ) && REST_REQUEST && 'edit' === $_GET['context'])) { echo '<p>Test Block</p>'; } $group = $attributes["{$prefix}group"] ?? null; if( !empty($group)){ var_dump($group); foreach ( $group as $group_value ) { $header = isset( $group_value["{$prefix}header"] ) ? $group_value["{$prefix}header"] : null; $group_inner = isset( $group_value["{$prefix}group_inner"] ) ? $group_value["{$prefix}group_inner"] : null; ?> <div id="<?php echo $id; ?>" class="<?php echo $class ?> bg--blue"> <div class="container-fluid--small"> <div class="row"> <div class="col-12"> <?php if($header): ?> <h2><?php echo $header; ?></h2> <?php endif; ?> <?php if( !empty($group_inner)){ foreach ( $group_inner as $group_value ) { $inner_header = isset( $group_value["{$prefix}inner_header"] ) ? $group_value["{$prefix}inner_header"] : null; ?> <div class="col-12"> <p><?php echo $inner_header; ?></p> </div> <?php } ?> <?php } ?> </div> </div> </div> </div> <?php } }</div>ambrdigital
ParticipantAgreeing with the last 2 posts - having official support for WPGraphQL would be a vital feature for us.
September 23, 2023 at 12:24 AM in reply to: ✅BUG - Image field's break backend with latest update MB Blocks #43327ambrdigital
Participanthere is the console error message.
Error: Template not found: #tmpl-rwmb-upload-area
at n. template (wp-util.min.js?ver=6.3.1:2:371)
at n. render (file-upload.js?ver=5.8.1:19:24)
at n.initialize (file-upload.js?ver=5.8.1:26:9)
at h. View (backbone.min.js?ver=1.4.1:2:14648)
at new n (backbone.min.js?ver=1.4.1:2:23485)
at n. createAddButton (image-upload.is?ver=5.8.1:11:21)
at n.initialize (media-js?ver=5.8.1:122:9)
at h. View (backbone.min.js?ver=1.4.1:2:14648)
at n las constructor] (backbone.min.js?ver=1.4.1:2:23485)
at n las constructor] (backbone.min.js?ver=1.4.1:2:23485)ambrdigital
ParticipantAlso, I can confirm that after disabling all other plugins it still does not work.
ambrdigital
ParticipantHi there,
I'm also getting this bug ever since updating. It seems to not work in the default 'Visual' mode, but when clicking into 'text' it works just fine.
I can confirm that the WYSIWYG fields does work in Gutenberg blocks. However as a stray field on a page, outside of blocks, it does not work. I've seen this across multiple websites now.
Please advise - thanks!
December 22, 2022 at 7:19 AM in reply to: ✅Image and File advanced JSON error if field is left blank #39975ambrdigital
ParticipantHi Team,
I had a whitespace issue that was causing the JSON error.
Thanks again for your assistance.
December 18, 2022 at 12:39 AM in reply to: ✅Image and File advanced JSON error if field is left blank #39903ambrdigital
ParticipantYes, the columns are registered. I tried removing them and still got the same response. Below is the complete code for creating the block. Also, note there is a function for a button that passes the vars to another meta box function and I still get the JSON error with or without this button function, however, I have commented it out for testing.
Thanks.
add_filter( 'rwmb_meta_boxes', 'gutenberg_meta_boxes_blocks' ); function gutenberg_meta_boxes_blocks( $meta_boxes ) { $g_block_path = get_stylesheet_directory() . '/inc/meta-boxes/g-blocks/'; require_once $g_block_path . 'g_block__fullwidth_w_bg__meta-box.php'; return $meta_boxes; }$prefix = "g-block_"; $meta_boxes[] = [ 'title' => 'Fullwidth with background content block', 'id' => "fullwidth-w-bg-content-block", 'description' => 'Fullwidth with background content block', 'type' => 'block', 'icon' => 'cover-image', 'category' => 'layout', 'keywords' => ['call', 'action', 'cta', 'block'], 'context' => 'normal', 'supports' => [ 'multiple' => true, 'anchor' => true, ], 'columns' => [ 'column-1' => 4, 'column-2' => 8, ], 'render_callback' => 'fullwidth_w_bg__g_block', 'fields' => [ [ 'type' => 'heading', 'name' => 'Fullwidth with background content block', ], [ 'name' => 'Content options', 'id' => "{$prefix}content_options", 'type' => 'radio', 'inline' => true, 'options' => array( 'text' => 'Text Blcok', 'quote' => 'Quote', ), 'column' => 'column-2', ], [ 'type' => 'heading', 'name' => 'Text', 'column' => 'column-2', 'visible' => [ "{$prefix}content_options", 'in', ['text' ] ], ], [ 'name' => 'Header', 'desc' => 'Use <br> tags for text line breaks on larger screen sizes, they will be removed on smaller screen sizes.', 'id' => "{$prefix}header", 'type' => 'textarea', 'rows' => 2, 'column' => 'column-2', 'visible' => [ "{$prefix}content_options", 'in', ['text' ] ], ], [ 'name' => 'Blurb', 'id' => "{$prefix}blurb", 'type' => 'textarea', 'rows' => 4, 'column' => 'column-2', 'visible' => [ "{$prefix}content_options", 'in', ['text' ] ], ], [ 'type' => 'heading', 'name' => 'Quote', 'column' => 'column-2', 'visible' => [ "{$prefix}content_options", 'in', ['quote' ] ], ], [ 'name' => 'Quote', 'id' => "{$prefix}quote", 'type' => 'textarea', 'rows' => 2, 'column' => 'column-2', 'visible' => [ "{$prefix}content_options", 'in', ['quote' ] ], ], [ 'name' => 'Cite', 'id' => "{$prefix}cite", 'type' => 'textarea', 'rows' => 1, 'column' => 'column-2', 'visible' => [ "{$prefix}content_options", 'in', ['quote' ] ], ], /* add_cta_button_group__g_block_meta_box( $prefix, $id ='btn_groups', $textdomain, $visibility = '', $vis_args = array(), $columns = 'column-2' ), **/ [ 'type' => 'heading', 'name' => 'Background Options', 'column' => 'column-1', ], [ 'name' => 'Background options', 'id' => "{$prefix}background_options", 'type' => 'radio', 'inline' => true, 'options' => array( 'video' => 'Video', 'image' => 'Image', ), 'column' => 'column-1', ], [ 'name' => 'Background Image', 'id' => "{$prefix}bg_image", 'type' => 'image_advanced', 'max_file_uploads' => 1, 'image_size' => 'thumbnail', 'column' => 'column-1', 'visible' => [ "{$prefix}background_options", 'in', ['image' ] ], ], [ 'id' => "{$prefix}mp4", 'desc' => 'Please keep the file size under 2Mb', 'name' => 'The background MP4 Video, this will override the cover image', 'type' => 'file_advanced', 'max_file_uploads' => 1, 'mime_type' => 'video/mp4', 'column' => 'column-1', 'visible' => [ "{$prefix}background_options", 'in', ['video' ] ], ], [ 'name' => 'Add Overlay (Percentage)', 'desc' => 'This adds a black overlay on top of the image/video to darken it making the header text more readable.', 'id' => "{$prefix}overlay_percentage", 'type' => 'number', 'min' => 0, 'max' => 100, 'step' => 1, 'column' => 'column-1', ], ], ];December 17, 2022 at 12:48 AM in reply to: Critical error when updating to latest version of Meta Box AIO #39879ambrdigital
ParticipantJust sent the details - thank you
-
AuthorPosts