WAIT: Shortcode element passing through deprecation errors (+ Toolset Views)

Browser: Firefox 126.0
OS: Windows 10 Pro
URL: in-development staging site (can send login if necessary)

PHP 8.2
WP 6.5.3
Bricks 1.9.8
Toolset Views 3.6.15

So, I think I discovered an unexpected side-effect of the new 1.9.8 feature in the Code element to “Suppress PHP errors”—PHP deprecation notices (and likely other PHP errors) are now visible in the Shortcode element. I’m inserting a Toolset Views template shortcode via the Shortcode element. I don’t think that this is going to be limited to being a Toolset issue—it just happened to surface because there are some deprecation notices generated by the current version of their plugin(s).

Things of note:

  • These errors don’t surface on the frontend when logged in as admin. If I’m visiting a page with these elements without logging in, they are visible.

  • I’ve separately been in contact with the Toolset team about the PHP notices, so I’m not worried about that.

  • In the meantime, I’m able to work around the issue by using a code element to insert any problematic shortcodes, instead.

  • When I was using Bricks 1.9.7.1, I had to do the reverse—I was originally using a Code element, but it was passing through the PHP errors, so I switched to using a Shortcode element instead. This is why I suspect it’s related to the “suppress” feature.

Hi @blakmarkitcreative ,

Thanks for reporting the issue.
The Suppress PHP errors logic only applies on the Code element, nothing change on the shortcode element in 1.9.8

What if you reinstall 1.9.7.1 and check if the deprecation error still generated from the shortcode? ( I assumed you will get the same messages)

Regards,
Jenn