Home › Forums › ACF PRO › Need to re-run DB upgrade › Reply To: Need to re-run DB upgrade
Finally figured this out.
Somewhere in the beginning of the page, I was doing this to get the current blog’s name:
<?php $current_site = get_blog_details(); echo $current_site->blogname; ?>
That has always worked until I upgraded WP and ACF recently. Then all of the sudden, the issue of media not loading and blowing up the memory started happening.
I finally found that removing this one line fixed the whole page so I rewrote it to this and now everything works:
<?php global $blog_id; $current_blog_details = get_blog_details( array( 'blog_id' => $blog_id ) ); echo $current_blog_details->blogname; ?>
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.