Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1495694

    Hello

    After updating to 7.1.4, a WordPress error occurs:

    Ein Fehler vom Typ E_ERROR wurde in der Zeile 820 der Datei /var/www/vhosts/xxxxxxxxxxxx.xx/wordpresstest.xxxxxxxxxxxx.xx/wp-content/plugins/wp-super-cache/wp-cache-phase2.php verursacht. Fehlermeldung: Uncaught Error: Call to undefined function get_blog_option() in /var/www/vhosts/xxxxxxxxxxxx.xx/wordpresstest.xxxxxxxxxxxx.xx/wp-content/plugins/wp-super-cache/wp-cache-phase2.php:820
    Stack trace:
    #0 /var/www/vhosts/xxxxxxxxxxxx.xx/wordpresstest.xxxxxxxxxxxx.xx/wp-content/plugins/wp-super-cache/wp-cache-phase2.php(3079): get_supercache_dir()
    #1 /var/www/vhosts/xxxxxxxxxxxx.xx/wordpresstest.xxxxxxxxxxxx.xx/wp-content/themes/enfold/includes/config-enfold/functions-framework.php(215): wp_cache_clear_cache()
    #2 /var/www/vhosts/xxxxxxxxxxxx.xx/wordpresstest.xxxxxxxxxxxx.xx/wp-includes/class-wp-hook.php(341): avia_force_clear_caches()
    #3 /var/www/vhosts/xxxxxxxxxxxx.xx/wordpresstest.xxxxxxxxxxxx.xx/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters()
    #4 /var/www/vhosts/xxxxxxxxxxxx.xx/wordpresstest.xxxxxxxxxxxx.xx/wp-includes/plugin.php(522): WP_Hook->do_action()
    #5 /var/www/vhosts/xxxxxxxxxxxx.xx/wordpresstest.xxxxxxxxxxxx.xx/wp-content/themes/enfold/framework/php/auto-updates/class-avia-theme-data-updater.php(160): do_action()
    #6 /var/www/vhosts/xxxxxxxxxxxx.xx/wordpresstest.xxxxxxxxxxxx.xx/wp-includes/class-wp-hook.php(341): aviaFramework\updates\Avia_Theme_Data_Updater->handler_update_version()
    #7 /var/www/vhosts/xxxxxxxxxxxx.xx/wordpresstest.xxxxxxxxxxxx.xx/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters()
    #8 /var/www/vhosts/xxxxxxxxxxxx.xx/wordpresstest.xxxxxxxxxxxx.xx/wp-includes/plugin.php(522): WP_Hook->do_action()
    #9 /var/www/vhosts/xxxxxxxxxxxx.xx/wordpresstest.xxxxxxxxxxxx.xx/wp-settings.php(764): do_action()
    #10 /var/www/vhosts/xxxxxxxxxxxx.xx/wordpresstest.xxxxxxxxxxxx.xx/wp-config.php(72): require_once('...')
    #11 /var/www/vhosts/xxxxxxxxxxxx.xx/wordpresstest.xxxxxxxxxxxx.xx/wp-load.php(50): require_once('...')
    #12 /var/www/vhosts/xxxxxxxxxxxx.xx/wordpresstest.xxxxxxxxxxxx.xx/wp-admin/admin.php(35): require_once('...')
    #13 {main}
      thrown

    If you reload the page, everything will be fine. However, you cannot save any changes in the theme anymore. Error:

    Saving didnt work!
    Please reload the page and try again

    Everything still worked fine with version 7.1.3.
    PHP: 8.3.30

    Regards
    Bernd

    #1495700

    Hey Bernd,

    The error message seems to be generated by the super cache plugin. Try clearing all caches from it and deactivating it temporarily to see if that makes any difference.

    Best regards,
    Rikard

    #1495719

    Hey Rikard

    I reset the super cache plugin from 3.0.3 to 3.0.2, 3.0.1, and finally to 3.0.0. However, the problem still persists.

    If I deactivate the plugin, the problem is solved. But as far as I remember, the super cache plugin is one of the cache plugins the enfold theme recommend? We have installed it on almost all of our WordPress websites – except for those with WP-Rocket.

    Regards,
    Bernd

    #1495726

    Hi,

    Thanks for the update. We don’t have any recommended plugins, all caching plugins should work with Enfold as far as I’m aware. Did you try to temporarily change your settings for file compression under Enfold->Performance? You could also try to activate the option to delete old CSS and JS files on the same page.

    Best regards,
    Rikard

    #1495734

    Okay, not recommended, but suggested ;-) If no caching plugin is installed, the Enfold theme displays the following message in the Performance tab:

    We couldn’t detect any active caching plugin. It is recommended to use one to speed up your site. Here are a few suggestions:

    No matter what I do, when the Super Cache plugin is active, I can’t save the theme. The following error occurs:

    AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function get_blog_option() in /var/www/vhosts/xxxxxxxxxxxx.xx/wordpresstest.xxxxxxxxxxxx.xx/wp-content/plugins/wp-super-cache/wp-cache-phase2.php:820\nStack trace:\n#0 /var/www/vhosts/xxxxxxxxxxxx.xx/wordpresstest.xxxxxxxxxxxx.xx/wp-content/plugins/wp-super-cache/wp-cache-phase2.php(3079): get_supercache_dir()\n#1 /var/www/vhosts/xxxxxxxxxxxx.xx/wordpresstest.xxxxxxxxxxxx.xx/wp-content/themes/enfold/includes/config-enfold/functions-framework.php(215): wp_cache_clear_cache()\n#2 /var/www/vhosts/xxxxxxxxxxxx.xx/wordpresstest.xxxxxxxxxxxx.xx/wp-includes/class-wp-hook.php(341): avia_force_clear_caches()\n#3 /var/www/vhosts/xxxxxxxxxxxx.xx/wordpresstest.xxxxxxxxxxxx.xx/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters()\n#4 /var/www/vhosts/xxxxxxxxxxxx.xx/wordpresstest.xxxxxxxxxxxx.xx/wp-includes/plugin.php(522): WP_Hook->do_action()\n#5 /var/www/vhosts/xxxxxxxxxxxx.xx/wordpresstest.xxxxxxxxxxxx.xx/wp-content/themes/enfold/framewo...', referer: https://wordpresstest.xxxxxxxxxxxx.xx/wp-admin/admin.php?page=avia

    I understand that the error is related to the super cache plugin. But when I reset the theme from 7.1.4 to 7.1.3, everything works fine. To me, it looks like a combination error between Enfold 7.1.4 and the super cache plugin.

    Regards,
    Bernd

    • This reply was modified 1 day, 15 hours ago by Bernd.
    • This reply was modified 1 day, 15 hours ago by Bernd.
    #1495777

    Hi,

    Please try this in 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,
    Rikard

    #1495782

    Hi Rikard,

    Thanks, it works :-)

    But do we have to insert this code snippet into each of our more than 250 WordPress websites with enfold…? Or is this planned for the next enfold update?

    Regards,
    Bernd

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.