Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1302476

    Hi, my site is slavetotheneedle.com and the latest Enfold update breaks the site. Here is the error we experience:

    [26-May-2021 22:56:26 UTC] PHP Fatal error:  Uncaught TypeError: Argument 1 passed to av_responsive_images::handler_body_class() must be of the type array, null given, called in /home/slavetotheneedle/public_html/wp-includes/class-wp-hook.php on line 292 and defined in /home/slavetotheneedle/public_html/wp-content/themes/enfold/framework/php/class-responsive-images.php:322
    Stack trace:
    #0 /home/slavetotheneedle/public_html/wp-includes/class-wp-hook.php(292): av_responsive_images->handler_body_class(NULL, Array)
    #1 /home/slavetotheneedle/public_html/wp-includes/plugin.php(212): WP_Hook->apply_filters(NULL, Array)
    #2 /home/slavetotheneedle/public_html/wp-includes/post-template.php(836): apply_filters('body_class', Array, Array)
    #3 /home/slavetotheneedle/public_html/wp-includes/post-template.php(595): get_body_class(Array)
    #4 /home/slavetotheneedle/public_html/wp-content/themes/enfold/header.php(109): body_class('   rtl_columns ...')
    #5 /home/slavetotheneedle/public_html/wp-includes/template.php(730): require_once('/home/slavetoth...')
    #6 /home/slavetothen in /home/slavetotheneedle/public_html/wp-content/themes/enfold/framework/php/class-responsive-images.php on line 322

    I have ruled out a plugin conflict, or at least the site still doesn’t load with plugins disabled. Can you please advise?

    #1302749

    Hey IdeaZone2550,

    Thanks for the login details. The regular WordPress login URLs are not working, please share your login URL as well.

    Best regards,
    Rikard

    #1302759

    Here is the link

    #1303000

    Hi,

    Thanks for that. I see that you are currently running 4.8.1, could you share FTP login details in private as well, so that we can try to upload the theme manually for you?

    Best regards,
    Rikard

    #1303002

    Hi, FTP credentials below

    #1303232

    Hi,

    I commented following code out in functions.php file of your child theme and that helped

    /*
    add_filter('body_class', 'pwm_woocommerce_cart_status');
    function pwm_woocommerce_cart_status( $classes ){
    global $woocommerce;
    
    //Body class for items in cart
    // if( $woocommerce->cart->cart_contents_count > 0 ):
    // $classes[] = 'woocommerce-items-in-cart';
    // else : 
    // $classes[] = 'woocommerce-cart-empty';
    // endif;
    // return $classes;
    } */

    Please review your website :)

    Best regards,
    Yigit

    #1303470

    Thank you so much, I really appreciate you going above and beyond to find the issue.

    #1303476

    Hi,

    You are welcome! :)

    For your information, you can take a look at Enfold documentation here – https://kriesi.at/documentation/enfold/

    If you have any other questions or issues, feel free to start a new thread under Enfold sub forum and we will gladly try to help you :)

    Enjoy the rest of your day!

    Best regards,
    Yigit

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Fatal error after update to 4.8.3 from 4.8.1’ is closed to new replies.