WAIT: Image modal not open in Bricks builder

Hi,
when I open Bricks builder and insert Image module, after click on “choose image” there is no pop-up to choose the image (the classic one with WP media).

in console there is a error:
Error: Template not found: #tmpl-media-modal
at n.template (wp-util.min.js?ver=720bf76f7f9d77545307a3907d36e975:2:371)
at n.render (wp-backbone.min.js?ver=720bf76f7f9d77545307a3907d36e975:2:2895)
at n.attach (media-views.min.js?ver=720bf76f7f9d77545307a3907d36e975:2:22663)
at n.open (media-views.min.js?ver=720bf76f7f9d77545307a3907d36e975:2:23046)
at s. [as open] (media-views.min.js?ver=720bf76f7f9d77545307a3907d36e975:2:31725)
at Proxy.openMediaLibrary (main.min.js?ver=1746208572:111:213374)
at main.min.js?ver=1746208572:111:1127765
at n..n. (main.min.js?ver=1746208572:111:9964)
at kn (main.min.js?ver=1746208572:101:1333)
at wn (main.min.js?ver=1746208572:101:1403)

There was no change after plugin disabling.

I fixed it with the code:
// Načíst media skripty na frontendu pro přihlášené uživatele (např. v Bricks editoru)
add_action(‘wp_enqueue_scripts’, function () {
if (is_user_logged_in()) {
wp_enqueue_media();
wp_enqueue_script(‘wp-util’);
}
});

// Vynutit výstup šablon (jako #tmpl-media-modal) do DOMu
add_action(‘wp_footer’, function () {
if (is_user_logged_in() && is_page()) {
wp_print_media_templates();
}
}, 100);

Bricks: 1.12.4 (1.12.3 also)
WP: 6.8.1

Could you please look at it? Thanks

Hi Jitka,
Thanks so much for your report!

Unfortunately, I cannot reproduce the issue. I think this is a very specific problem with your setup/server, as we have not yet received a report on it.

Have you already deactivated all your plugins and any custom code? If not, please do so.
Can you add images in Gutenberg? If that doesn’t work either, the problem is definitely not with Bricks.

Best regards,
timmse