NO BUG: Fatal error after copying a div

Bricks 1.7.2
Chrome 102

I duplicated the DIV in the builder, then opened the page and saw an error. After that, the builder stopped responding, I reloaded the page and saw a white page instead of the builder. And there is an error on the page.

 Fatal error: Uncaught Error: Illegal offset type in isset or empty
in /var/www/***/data/www/***/web/app/themes/bricks/includes/assets.php on line 2282

Call stack:

Bricks\Assets::generate_css_from_element()
app/themes/bricks/includes/assets.php:2323
Bricks\Assets::generate_css_from_element()
app/themes/bricks/includes/assets.php:2323
Bricks\Assets::generate_css_from_element()
app/themes/bricks/includes/assets.php:2323
Bricks\Assets::generate_css_from_element()
app/themes/bricks/includes/assets.php:2323
Bricks\Assets::generate_css_from_element()
app/themes/bricks/includes/assets.php:2323
Bricks\Assets::generate_css_from_element()
app/themes/bricks/includes/assets.php:2323
Bricks\Assets::generate_css_from_element()
app/themes/bricks/includes/assets.php:2266
Bricks\Assets::generate_css_from_elements()
app/themes/bricks/includes/assets.php:313
Bricks\Assets::generate_inline_css()
app/themes/bricks/includes/frontend.php:365
Bricks\Frontend::enqueue_inline_css()
wp-includes/class-wp-hook.php:308
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:332
WP_Hook::do_action()
wp-includes/plugin.php:517
do_action()
wp-includes/script-loader.php:2194
wp_enqueue_scripts()
wp-includes/class-wp-hook.php:308
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:332
WP_Hook::do_action()
wp-includes/plugin.php:517
do_action()
wp-includes/general-template.php:3049
wp_head()
app/themes/bricks/header.php:7
require_once()
wp-includes/template.php:783
load_template()
wp-includes/template.php:718
locate_template()
wp-includes/general-template.php:48
get_header()
app/themes/bricks/page.php:2
include()
wp-includes/template-loader.php:106
require_once()
wp-blog-header.php:19
require()
index.php:6

Hi Roman,
Thanks so much for your report!

Would you be so kind as to send temporary login credentials, the exact URL (important) where you copied the div element, and a link to this thread to help@bricksbuilder.io using the email address you used during the purchase?

Best regards,
timmse

Sorry, i can’t. I already deleted the page, I can’t even show the problem. I only saved the screenshots.

Ok, so unfortunately it’s impossible to track down the problem :slight_smile:
Get back to me if the problem occurs again. For now, I’ll mark the thread as “NO BUG” (but can change it at any time).

I remember why the problem arose. Perhaps due to the saving of page content data to the post_meta database, the data was processed incorrectly and an error occurred.

I created Div, assigned tag <a> and set javascript:void(0); in href, then added attribute called onClick which I assigned value start("https://domain/mp3/1.mp3");

Maybe this will help.

If you do this again, will the problem occur again?

When I did that I started to duplicate the parent element of the block, and that’s when the bug happened. I can’t check now, as I am far away from my work computer.