NO BUG: Fwrite() Error on Saving Popup Template Post

Getting the following error code in Bricks 1.9.4 when trying to update an existing popup template (in WordPress post editor, not in Bricks). The changes still get saved, though.

Fatal error: Uncaught Error: fwrite(): Argument #1 ($stream) must be of type resource, bool given
in [...]/wp-content/themes/bricks/includes/assets/files.php on line 453

Call stack:

fwrite()
wp-content/themes/bricks/includes/assets/files.php:453
Bricks\Assets_Files::generate_post_css_file()
wp-content/themes/bricks/includes/assets/files.php:157
Bricks\Assets_Files::save_post()
wp-includes/class-wp-hook.php:326
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:348
WP_Hook::do_action()
wp-includes/plugin.php:517
do_action()
wp-includes/post.php:4760
wp_insert_post()
wp-includes/post.php:4862
wp_update_post()
wp-admin/includes/post.php:453
edit_post()
wp-admin/post.php:227

Hi @GrowPlugins,

I can’t replicate this locally. Could you please either export the template & share it or share temporary admin access?

You can send both over to help@bricksbuilder.io and please include a link to this forum thread in the email.

Thanks. Upon trying to get an export of this for you, the problem magically disappeared.

1 Like

You gotta love those mysterious bugs. Glad it’s fixed now :slight_smile: