Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • there are multiple places having this config. You should change the one below.

    if ( $attribute_taxonomies = wc_get_attribute_taxonomies() ) {
    foreach ( $attribute_taxonomies as $tax ) {
    if ( $name = wc_attribute_taxonomy_name( $tax->attribute_name ) ) {
    $tax->attribute_public = absint( isset( $tax->attribute_public ) ? $tax->attribute_public : 1 );
    $label = ! empty( $tax->attribute_label ) ? $tax->attribute_label : $tax->attribute_name;
    $wc_product_attributes[ $name ] = $tax;
    $taxonomy_data = array(
    ‘hierarchical’ => true,
    ‘update_count_callback’ => ‘_update_post_term_count’,
    ‘labels’ => array(
    ‘name’ => $label,
    ‘singular_name’ => $label,
    ‘search_items’ => sprintf( __( ‘Search %s’, ‘woocommerce’ ), $label ),
    ‘all_items’ => sprintf( __( ‘All %s’, ‘woocommerce’ ), $label ),
    ‘parent_item’ => sprintf( __( ‘Parent %s’, ‘woocommerce’ ), $label ),
    ‘parent_item_colon’ => sprintf( __( ‘Parent %s:’, ‘woocommerce’ ), $label ),
    ‘edit_item’ => sprintf( __( ‘Edit %s’, ‘woocommerce’ ), $label ),
    ‘update_item’ => sprintf( __( ‘Update %s’, ‘woocommerce’ ), $label ),
    ‘add_new_item’ => sprintf( __( ‘Add New %s’, ‘woocommerce’ ), $label ),
    ‘new_item_name’ => sprintf( __( ‘New %s’, ‘woocommerce’ ), $label )
    ),
    ‘show_ui’ => false,

    Thread Starter nedvedyy

    (@nedvedyy)

    well, it turns out to be red herring. The real cause is that you need to install mbstring to php. use sudo yum install php56-mbstring. Once I install it, no need to config, just restart the httpd service

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