Title: Tabs &amp; Subscriptions
Last modified: August 21, 2016

---

# Tabs & Subscriptions

 *  Resolved [Krissy](https://wordpress.org/support/users/krissy/)
 * (@krissy)
 * [13 years ago](https://wordpress.org/support/topic/tabs-subscriptions/)
 * I’m using the most recent versions of WordPress, WooCommerce and WooCommerce 
   Subscriptions (paid add-on) and WooCommerce Tab Manager (paid add-on).
 * With the most recent updates of WooCommerce I’m no longer able to view my tabs
   after selecting “Override Tab Defaults”, the error coming to me is being pulled
   from WooCommerce function files, the two errors on the single-product view are:
 * (Above Reviews)
 * > Warning: call_user_func_array() expects parameter 1 to be a valid callback,
   > function ‘woocommerce_product_attributes_tab’ not found or invalid function
   > name in /public_html/wp-includes/plugin.php on line 173
 * (Below Reviews)
 * > Warning: uasort() expects parameter 1 to be array, null given in public_html/
   > wp-content/plugins/woocommerce/woocommerce-template.php on line 795
 * This is the complete string for that line:
 *     ```
       /**
       	 * Sort tabs by priority
       	 *
       	 * @access public
       	 * @return void
       	 */
       	function woocommerce_sort_product_tabs( $tabs = array() ) {
   
       		// Re-order tabs by priority
       		if ( ! function_exists( '_sort_priority_callback' ) ) {
       			function _sort_priority_callback( $a, $b ) {
       				if ( $a['priority'] == $b['priority'] )
       			        return 0;
       			    return ( $a['priority'] < $b['priority'] ) ? -1 : 1;
       			}
       		}
   
       		uasort( $tabs, '_sort_priority_callback' );
   
       		return $tabs;
       	}
       }
       ```
   
 * Now I have requested assistance from WooCommerce directly but haven’t yet recieved
   a response and my clients site is almost completely useless.
 * Does anyone know why there are issues with the tabs not working when “override”
   has been chosen? When that option is unchecked the default tabs function properly
   but I’m no longer able to have the additional tabs required for the client as
   aspects of the extra tabs are there for the ordering process.
 * AND – Is anyone else experiencing issues with the Subscriptions plugin no longer
   working properly? It’s showing the following error:
 * > Fatal error: Cannot use string offset as an array in public_html/wp-content/
   > plugins/woocommerce-subscriptions/classes/class-wc-subscriptions-product.php
   > on line 257
 * This is the complete string for that line:
 *     ```
       public static function get_length( $product ) {
   
       		if ( ! is_object( $product ) )
       			$product = WC_Subscriptions::get_product( $product );
   
       		if ( ! self::is_subscription( $product ) || $product->product_custom_fields['_subscription_length'][0] == 0 )
       			return 0;
   
       		return $product->product_custom_fields['_subscription_length'][0];
       	}
       ```
   
 * Neither of these plugins have any updates, I’ve already checked.
 * Does anyone have any idea on how to fix them?
 * [http://wordpress.org/extend/plugins/woocommerce/](http://wordpress.org/extend/plugins/woocommerce/)

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

 *  [thenbrent](https://wordpress.org/support/users/thenbrent/)
 * (@thenbrent)
 * [13 years ago](https://wordpress.org/support/topic/tabs-subscriptions/#post-3777347)
 * Hi Krissy, thanks for a comprehensive bug report. Can you please also include
   the versions of the plugins and WooCommerce you are currently running?
 * Just an FYI, Subscriptions is at version 1.3.3. In that version, line 257 of 
   the class-wc-subscriptions-product.php is just a comment, so it looks like your
   version of Subscriptions could be out of date?
 *  Thread Starter [Krissy](https://wordpress.org/support/users/krissy/)
 * (@krissy)
 * [13 years ago](https://wordpress.org/support/topic/tabs-subscriptions/#post-3777350)
 * I was able to get my hands on the Subscription update (the client had purchased
   that plugin), and I did install the Tab plugin again – even though there wasn’t
   a change in versions (being as it was updated the same afternoon) for some reason
   wiping it out completely and putting it back in made the difference.
 * Now the issue is 100% CSS based which is the matter of changing from underscores
   to dashes.
 *  [thenbrent](https://wordpress.org/support/users/thenbrent/)
 * (@thenbrent)
 * [13 years ago](https://wordpress.org/support/topic/tabs-subscriptions/#post-3777352)
 * Great to hear. 🙂

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

The topic ‘Tabs & Subscriptions’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [WooCommerce subscriptions](https://wordpress.org/support/topic-tag/woocommerce-subscriptions/)
 * [woocommerce tabs](https://wordpress.org/support/topic-tag/woocommerce-tabs/)

 * 3 replies
 * 2 participants
 * Last reply from: [thenbrent](https://wordpress.org/support/users/thenbrent/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/tabs-subscriptions/#post-3777352)
 * Status: resolved