Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • function wp_ob_end_flush_all() {
    $levels = ob_get_level();
    for ($i=0; $i<$levels; $i++)
    ob_end_flush();
    }

    3598 it’s ob_end_flush();

    function wp_ob_end_flush_all() {
    $levels = ob_get_level();
    for ($i=0; $i<$levels; $i++)
    ob_end_flush();
    }

    3598 it’s ob_end_flush();

    Notice: ob_end_flush(): failed to send buffer of zlib output compression (1) in /home/000000000/public_html/wp-includes/functions.php on line 3598

    I think this has nothing to do with the image of category

    Notice: register_sidebar was called incorrectly. It is not defined id id for the sidebar “footer1”. Using default “sidebar-1”. id manually set the id to “sidebar-1” to silence this message and keep the current contents of the sidebar. Please review Debugging in WordPress for more information. (This message was added in version 4.2.0.) In /home/u824673143/public_html/wp-includes/functions.php on line 3996

    Notice: register_sidebar was called incorrectly. It is not defined id id for the sidebar “footer2”. Using default “sidebar-2”. id manually set the id to “sidebar-2” to silence this message and keep the current contents of the sidebar. Please review Debugging in WordPress for more information. (This message was added in version 4.2.0.) In /home/u824673143/public_html/wp-includes/functions.php on line 3996

    @mikejolley, Mike

    I have this code and stop showing images of the categories after the last update

    <?php
    $prod_categories = get_terms( ‘product_cat’, array(
    ‘orderby’ => ‘name’,
    ‘order’ => ‘ASC’,
    ‘hide_empty’ => 1
    ));

    foreach( $prod_categories as $prod_cat ) :
    if ( $prod_cat->parent != 0 )
    continue;
    $cat_thumb_id = get_woocommerce_term_meta( $prod_cat->term_id, ‘thumbnail_id’, true );
    $cat_thumb_url = wp_get_attachment_thumb_url( $cat_thumb_id );
    $image = wp_get_attachment_url( $cat_thumb_id );
    $term_link = get_term_link( $prod_cat, ‘product_cat’ );
    $terms = get_terms(‘product_cat’, $prod_cat);
    ?>
    ” alt=”<?php echo $prod_cat->name; ?>” />
    <?php endforeach; wp_reset_query();?>

Viewing 5 replies - 1 through 5 (of 5 total)