Home Forums WoodMart support forum PHP Warning: Trying to access array offset

PHP Warning: Trying to access array offset

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #493661

    Hello.

    In the error_log file from WordPress i just found this line of code.

    PHP Warning: Trying to access array offset on value of type bool in /home/f9dqdfpm78gl/public_html/wp-content/plugins/js_composer/include/helpers/helpers.php on line 162

    I think there is a problem with WP Bakery plugin but i can’t fix it by myself.

    #493663

    if ( is_array( $size ) ) {
    // Resize image to custom size
    $p_img = wpb_resize( $id, null, $size[0], $size[1], true );

    return $p_img[‘url’];
    }
    }

    The 162 line is: return $p_img[‘url’];

    Yesterday i updated this plugin. But nothing changed.

    #493716

    Artem Temos
    Keymaster

    Hello,

    Please, disable all plugins that are not related to our theme and provide us with your admin access. We will log in and check what is wrong there. You can leave only the following plugins that are required for our theme:
    WoodMart core
    WooCommerce
    Elementor/WPBakery page builder

    Thank you in advance

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)