Version 5.2.0 error | WordPress.org

[ad_1]

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.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer