Settings Pages In Customiser Error after last update and other issues
Support › Meta Box AIO › Settings Pages In Customiser Error after last update and other issuesResolved
- This topic has 5 replies, 3 voices, and was last updated 1 year, 7 months ago by
Peter.
-
AuthorPosts
-
August 23, 2023 at 2:57 AM #43005
sg123
ParticipantAll my sites have an error in the customiser since the last update of the free plugin. I also have MetaBox AIO installed but it's not this that causes the error. I have tried everything, disabling plugins, changing themes etc. The only thing that worked was to roll back to 5.7.4. This is the error:
Uncaught Error: Template not found: #tmpl-rwmb-media-button
at n.template (wp-util.min.js?ver=6.3:2:371)
at n.render (media.js?ver=5.7.5:391:24)
at n.initialize (media.js?ver=5.7.5:404: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 (media.js?ver=5.7.5:161:21)
at n.initialize (media.js?ver=5.7.5:122:9)
at h.View (backbone.min.js?ver=1.4.1:2:14648)
at n [as constructor] (backbone.min.js?ver=1.4.1:2:23485)
at new n (backbone.min.js?ver=1.4.1:2:23485)It's stop's uploading of images etc.
I also get this error from MetaBox AIO:
Deprecated: Automatic conversion of false to array is deprecated in /home/storm/sites/aegpremierpartner-com/public/wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-include-exclude/class-mb-include-exclude.php on line 102
I have the latest version installed.
I don't know if it's related but I am also finding everything really glitchy. I have a very complex set-up I'm working on with conditional display/hide which keeps falling over. It won't even let me assign the fields to my custom post type - it keep defaulting to 'post'.
Under a lot of pressure to get this resolved so any help would be much appreciated.
Thanks
Heather
August 23, 2023 at 9:23 PM #43018Peter
ModeratorHello,
1. The HTML ID "tmpl-rwmb-media-button" is located in the file wp-content/plugins/meta-box/inc/templates/media.php line 47. Please download a fresh copy of Meta Box plugin, install it on your site and recheck this issue.
You can see the code here https://github.com/wpmetabox/meta-box/blob/master/inc/templates/media.php#L47-L492. Deprecated: Automatic conversion of false to array is deprecated
It looks occurs with PHP version 8.1. I'm escalating this issue to the development team to fix it. Thanks.
3. It won't even let me assign the fields to my custom post type - it keep defaulting to 'post'.
Please try to increase the PHP setting
max_input_vars
and see if it helps. Read more about the PHP setting in the documentation https://metabox.io/wordpress-custom-fields-not-saving-increase-max-input-vars/September 6, 2023 at 9:39 PM #43157sg123
ParticipantThe error is still there. There is an issue with this version of the plugin - it is also adding this to all the pages:
<script id="tmpl-rwmb-media-item" type="text/html"> <input type="hidden" name="{{{ data.controller.fieldName }}}" value="{{{ data.id }}}" class="rwmb-media-input"> <div class="rwmb-file-icon"> <# if ( data.sizes ) { #> <# if ( data.sizes.thumbnail ) { #> <img src="{{{ data.sizes.thumbnail.url }}}" /> <# } else { #> <img src="{{{ data.sizes.full.url }}}" /> <# } #> <# } else { #> <# if ( data.image && data.image.src && data.image.src !== data.icon ) { #> <img src="{{ data.image.src }}" /> <# } else { #> <img src="{{ data.icon }}" /> <# } #> <# } #> </div> <div class="rwmb-file-info"> <a href="{{{ data.url }}}" target="_blank" rel="noopener"> <# if( data.title ) { #> {{{ data.title }}} <# } else { #> {{{ i18nRwmbMedia.noTitle }}} <# } #> </a> <div class="rwmb-file-name">{{{ data.filename }}}</div> <div class="rwmb-file-actions"> <a title="{{{ i18nRwmbMedia.edit }}}" href="{{{ data.editLink }}}" target="_blank" rel="noopener"> {{{ i18nRwmbMedia.edit }}} </a> <a href="#" title="{{{ i18nRwmbMedia.remove }}}"> {{{ i18nRwmbMedia.remove }}} </a> </div> </div> </script> <script id="tmpl-rwmb-media-status" type="text/html"> <# if ( data.maxFiles > 0 ) { #> {{{ data.length }}}/{{{ data.maxFiles }}} <# if ( 1 < data.maxFiles ) { #>{{{ i18nRwmbMedia.multiple }}}<# } else {#>{{{ i18nRwmbMedia.single }}}<# } #> <# } #> </script> <script id="tmpl-rwmb-media-button" type="text/html"> <a>{{{ data.text }}}</a> </script> <script id="tmpl-rwmb-image-item" type="text/html"> <input type="hidden" name="{{{ data.controller.fieldName }}}" value="{{{ data.id }}}" class="rwmb-media-input"> <div class="rwmb-file-icon"> <# if ( 'image' === data.type && data.sizes ) { #> <# if ( data.sizes[data.controller.imageSize] ) { #> <img src="{{{ data.sizes[data.controller.imageSize].url }}}" /> <# } else { #> <img src="{{{ data.sizes.full.url }}}" /> <# } #> <# } else { #> <# if ( data.image && data.image.src && data.image.src !== data.icon ) { #> <img src="{{ data.image.src }}" /> <# } else { #> <img src="{{ data.icon }}" /> <# } #> <# } #> </div> <div class="rwmb-image-overlay"></div> <div class="rwmb-image-actions"> <a title="{{{ i18nRwmbMedia.edit }}}" href="{{{ data.editLink }}}" target="_blank" rel="noopener"> <span class="dashicons dashicons-edit"></span> </a> <a href="#" title="{{{ i18nRwmbMedia.remove }}}"> <span class="dashicons dashicons-no-alt"></span> </a> </div> </script>
Something is not right when you have compiled the code as the links are not being generated. This is happening across all the site I manage which use your plugin.
September 7, 2023 at 11:05 PM #43172Peter
ModeratorHello,
I've escalated this issue to the development team to fix it in the next update. Thank you.
September 26, 2023 at 7:18 PM #43352Dean Weaver
ParticipantWe got the same error on our websites when trying to edit some of blocks. When we can expect the update with fixing that?
September 27, 2023 at 11:13 AM #43357Peter
ModeratorThe error with the custom block was fixed in this commit https://github.com/wpmetabox/meta-box/commit/2635f09fc634ce830a6c9d7e1164f86f26546a4c
It will be included in the next update of Meta Box.
-
AuthorPosts
- You must be logged in to reply to this topic.