Error when update under Bricks Builder!
- This topic has 4 replies, 2 voices, and was last updated 45 minutes ago by
[email protected].
-
AuthorPosts
-
August 25, 2025 at 5:46 PM #48817
[email protected]
ParticipantI'm updating many sites and they all give me this problem, I'm inserting the contents of the email with the error report, I hope it will be useful for debugging.
Versione di WordPress 6.8.2
Tema attivo: Bricks Child Theme (versione 1.1)
Plugin corrente: Meta Box AIO (versione 3.0.1)
Versione PHP 8.2.29Dettagli dell'errore
====================
Un errore di E_ERROR รจ stato causato nella linea 214 del file /var/www/mydomain.it/htdocs/wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box/inc/fields/media.php. Messaggio di errore: Uncaught Error: Failed opening required '/var/www/mydomain.it/htdocs/wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box/inc/templates/media.php' (include_path='.:/usr/share/php') in /var/www/mydomain.it/htdocs/wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box/inc/fields/media.php:214
Stack trace:
#0 /var/www/mydomain.it/htdocs/wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box/inc/fields/image-advanced.php(79): RWMB_Media_Field::print_templates()
#1 /var/www/mydomain.it/htdocs/wp-includes/class-wp-hook.php(324): RWMB_Image_Advanced_Field::print_templates()
#2 /var/www/mydomain.it/htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#3 /var/www/mydomain.it/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action()
#4 /var/www/mydomain.it/htdocs/wp-includes/media-template.php(1584): do_action()
#5 /var/www/mydomain.it/htdocs/wp-includes/class-wp-hook.php(324): wp_print_media_templates()
#6 /var/www/mydomain.it/htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#7 /var/www/mydomain.it/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action()
#8 /var/www/mydomain.it/htdocs/wp-admin/includes/template.php(2222): do_action()
#9 /var/www/mydomain.it/htdocs/wp-admin/update.php(53): iframe_footer()
#10 {main}
thrownAugust 25, 2025 at 10:34 PM #48818Peter
ModeratorHello,
Thanks for reaching out.
Do you use the single plugin Meta Box on your site? If so, you can deactivate the single plugin Meta Box and use only one plugin Meta Box AIO, to get all features of Meta Box plugins.
August 26, 2025 at 1:57 PM #48823[email protected]
ParticipantI use the single Meta Box plugin on my sites.
This error is common on all sites I've updated to version 3.0.1 of Meta Box AIO.August 26, 2025 at 11:12 PM #48831Peter
ModeratorHello,
Do you try to deactivate the single plugin Meta Box and recheck the issue?
August 27, 2025 at 12:52 AM #48834[email protected]
ParticipantHi Peter
I figured out what was causing the error.
I found this script for adding an avatar to WordPress a while ago, and it's part of my default installation. Now, it seems to have become incompatible for some reason./** * Custom Avatar */ add_filter( 'get_avatar_url', 'mb_get_avatar_url', 10, 3 ); function mb_get_avatar_url( $url, $id_or_email, $args ) { if ( is_numeric( $id_or_email ) ) { $user_id = $id_or_email; } elseif ( is_string( $id_or_email ) && ( $user = get_user_by( 'email', $id_or_email ) ) ) { $user_id = $user->ID; } elseif ( is_object( $id_or_email ) && ! empty( $id_or_email->user_id ) ) { $user_id = (int) $id_or_email->user_id; } if ( empty( $user_id ) ) { return $url; } $custom_avatar = rwmb_meta( 'custom_avatar', [ 'object_type' => 'user' ], $user_id ); if ( ! $custom_avatar ) { return $url; } $url = $custom_avatar['full_url']; return $url; }
The script requires a custom field
<?php // Displaying uploaded image: ?> <?php $image = rwmb_meta( 'custom_avatar', [ 'object_type' => 'user', 'size' => 'thumbnail' ], get_current_user_id() ); ?> <h3>Logo</h3> <img src="<?php echo $image['url']; ?>"> <?php // or simpler: ?> <h3>Logo</h3> <?php rwmb_the_value( 'custom_avatar', [ 'object_type' => 'user', 'size' => 'thumbnail' ], get_current_user_id() ) ?>
It would be helpful if we could use it again.
But I can't fix it. -
AuthorPosts
- You must be logged in to reply to this topic.