Elliot here from ACF.
I’ve just tracked down and fixed a mischievous bug that may delay the ACF PRO plugin from updating. The bug only affects websites that have no other theme or plugin updates available at the time.
If the ‘Custom Fields > Updates’ page is showing an update, but the ‘Plugins’ page doesn’t, worry no more!
The fix is simple. Please edit the file:
core/updates.php on line 92
// bail early if no response (dashboard showed an error) if( empty($transient->response) ) return $transient;
// bail early if no response (dashboard showed an error) if( !isset($transient->response) ) return $transient;
Thanks to those who notified me of this issue and helped get it fixed!
Just did the latest update and now I’m unable to load the site or WP – getting the following error:
Fatal error: Call to undefined function get_current_screen() in /Users/Sites/cms/wp/wp-content/plugins/advanced-custom-fields-pro/api/api-helpers.php on line 3307
anybody else experiencing this?
I updated the file as suggested and unfortunately it still didn’t recognize any updates for ACF
When I visited wp-admin/update-core.php, the following error showed:
Fatal error: Call to undefined function acf_is_plugin_active() in /path-to/wp-content/plugins/advanced-custom-fields-pro/core/updates.php on line 101
I reverted back to the old updates.php file for now.
Just for information’s sake, the ACF plugin did not recognize any updates regardless if there were other plugins that had updates or not.
Please let us know what can be done to correct this…thanks!
Just a quick update on this. My first attempt to fix was to replace my updates.php file with the one attached to Elliot’s post. This method didn’t fix the update bug for me, as well…it caused a fatal error.
My second attempt was to manually correct the one line in core/updates.php as described. This actually fixed the problem for me.
Possibly a problem with the attached file.
Thanks for this! For anyone having trouble, here’s what worked for me. Before applying this fix, this is what I was seeing:
After applying Elliot’s fix to core/updates.php, the above was unchanged but doing the following triggered the update for me:
Now there will be an available update for ACF PRO which you can apply normally.
Thanks for the replies.
Sorry about the PHP error in the attached file. I have removed the file and recommend you manually apply the code fix.
After making the fix, please also click the ‘Dashboard -> Updates -> Check again’ button to refresh all update info!
You must be logged in to reply to this topic.
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’re hard at work on ACF 6.1, and Beta 1 is now available 🚀— Advanced Custom Fields (@wp_acf) March 16, 2023
This release includes custom post type and taxonomy registration, an improved experience when selecting field types, PHP 8.1 and 8.2 compatibility, and more!
Let’s take a look 🧵https://t.co/Y0WcAT11l4
© 2023 Advanced Custom Fields.