Thread Starter
ezweb
(@ezweb)
This causes a fatal error on the frontend. I added an is_admin check to fix it.
Thanks @ezweb . Can you share the code?
$screen = is_admin() ? get_current_screen()->base : '';Are you getting this error in a frontend page builder?
- This reply was modified 12 hours, 42 minutes ago by dcooney.
Thread Starter
ezweb
(@ezweb)
I use beaver builder so maybe that’s part of it not sure. But that’s not when trying to edit the site. It’s just viewing a page on the front end. It completely breaks the site.
I just wrapped everything in the instant_img_wp_media_enqueue function in a “if ( is_admin() ) {” so none of it runs if it’s not in the admin area. Not sure that’s the correct fix. But the site works.
Thread Starter
ezweb
(@ezweb)
It could be caused by front end ACF forms. We use them on all sites. And I’ve got a bit of a mess. I’m updating all sites with my “fix” now.
Yea maybe, just releasing a hotfix now (5.2.0.1).
In my testing it would only fatal error if the user was logged in. Still not great, but some positive news.
