SOLVED: Require code signing on every page reload in builder if Code Element has JS

Browser: Chrome Version 136.0.7103.114 (Official Build) (64-bit)
OS: Windows 11
PHP: 8.2.x
Bricks: 2.0 Beta

My user configuration, see screenshot:

My wp-admin/Bricks/Settings/Custom Code, see screenshot:

Reproduce the error:

  1. Create blank page, edit with Bricks.
  2. Add Code Element.

No error cases:

  • PHP & HTML: Code included.
  • CSS: Code included/No code.
  • JavaScript: No code.

Error cases:

  • PHP & HTML: Code included/No code.
  • CSS: Code included/No code.
  • JavaScript: Code included (Example: console.log(‘foo’):wink:

The error occurs as follows:

  • Enter JavaScript code for Code Element.

  • Click to activate “Execute code”.

  • Builder red signal Unsigned code.

  • Sign Code.
    → Builder in normal state.
    → JavaScript in Frontend running.

  • Refresh Builder (F5)
    → Builder red signal Unsigned code. → Bug.
    → JavaScript in Frontend still running normally.

Code in “Unsigned Code” Popup is blank.

Thanks
:bear:

I can confirm the issue with JS code

Hi @datgausaigon,

thank you so much for step by step description. I was able to replicate the issue with the empty “sing all” popup and with the issue on reloading the builder and needing to sign it again.

I’ve added it to our internal bug tracker.

Best regards,
Matej

Hi guys,

We fixed this issue in Bricks 2.0 RC, which is now available in your account.
Changelog: Bricks 2.0-rc Changelog – Bricks

Please let us know if you are still experiencing issues.

As with any pre-stable release, please do not use it on a production/live website. It is only meant for testing in a local or staging environment.

@timmse @Matej @Maexxx
Thanks
:bear:

1 Like