-
AuthorPosts
-
March 13, 2026 at 9:21 am #1495984
Hello,
When updating plugins while using Enfold together with WP Super Cache, a fatal error occurs on all my sites!
Enfold triggers avia_force_clear_caches() during the update process, which calls wp_cache_clear_cache(). This leads to a call to get_blog_option() in wp-super-cache/wp-cache-phase2.php, but the function is not available at that point, causing a fatal error.
Error:
Uncaught Error: Call to undefined function get_blog_option()It seems cache clearing is triggered too early during the plugin upgrade process.
Best regards, Pete
March 14, 2026 at 9:57 am #1495995Hey Peter,
Please try adding this to your child theme functions.php file:
function avf_before_force_clear_caches_callback() { return false; } add_filter( 'avf_before_force_clear_caches', 'avf_before_force_clear_caches_callback');Best regards,
RikardMarch 16, 2026 at 8:56 am #1496053Hi Rikard,
Thanks a lot, that fixed the problem – is this something you’ll add in a future update?
Best regards, Pete
March 16, 2026 at 2:48 pm #1496060Hi,
I can’t promise anything right now, but it will likely be included in the next release of the theme.
Best regards,
RikardMarch 16, 2026 at 3:03 pm #1496062Hi,
Thanks, Should I remove the code when that happens – or does it not matter that it is there twice?
Best regards, Pete
March 16, 2026 at 5:23 pm #1496069Hi,
If the fix is included in the version that you are installing, then you can remove the code I posted earlier.
Best regards,
RikardApril 1, 2026 at 5:47 am #1496486Hi everyone,
I’d like to kindly follow up and ask if there’s any indication whether a fix for this is planned in an upcoming update?
We’re currently updating about 250 sites and would prefer to avoid a temporary functions.php fix. :-)
Thanks for a quick update
April 2, 2026 at 6:30 am #1496522Hi,
The fix was included in the latest version of the theme, 7.1.4. Please make sure to upgrade the theme if you haven’t done so. Let us know if the issue persists.
— https://kriesi.at/documentation/enfold/changelog/
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.
