Fatal error with Jet Pack 8.9.1

Mauer Themes Support Stills Fatal error with Jet Pack 8.9.1

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #4163
    meli
    Participant

    Hello Paul,
    Since the last update with Jet Pack 8.9.1, our web site can’t be displayed as usual.
    When the plugin is deactivated, all works fine again.

    Here is the message which appears on the screen (without or with login to WP):

    Fatal error: Uncaught Error: Class ‘Jetpack_Lazy_Images’ not found in …/wp-content/themes/mauer-stills/functions.php:1655 Stack trace: #0 …/wp-includes/class-wp-hook.php(287): mauer_stills_fix_lazy_images_for_logged_in_users(”) #1 …/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #2 …/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #3 …/wp-includes/general-template.php(3006): do_action(‘wp_head’) #4 …/wp-content/themes/mauer-stills-child/header.php(11): wp_head() #5 …/wp-includes/template.php(730): require_once(‘/home/bi2c9625/…’) #6 …/wp-in in

    …/wp-content/themes/mauer-stills/functions.php on line 1655

    WP 5.5.1
    Mauer Stills Versión: 1.4.2

    Waiting for your response.
    Thank you.

    #4175
    Paul
    Keymaster

    Hi Meli,

    The quick fix is to comment out line 1660 in the functions.php file:

    add_action('wp_head', 'mauer_stills_fix_lazy_images_for_logged_in_users');

    Just add two slashes in front of the line (should look like that) and save the file. This will break the lazy images for logged in users (but not for outsiders).

    In the meantime, I’m working on updating the theme to fix this conflict.

    Regards,
    Paul

    #4177
    Paul
    Keymaster

    Meli,

    A quick update: Stills 1.4.3 is now available on ThemeForest. It fixes the issue.

    The error itself was happening due to Jetpack having changed the code of the Lazy Images module. The new version of Stills adapts to this change and works correctly with the newer versions of Jetpack as well as with the older ones.

    Regards,
    Paul

    #4181
    meli
    Participant

    Hi Paul,

    Thank you! I haven’t seen your response before.
    Take care, best regards

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