This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Fatal error: class-tb-compat-woocommerce.php on line 848

  • Creator
    Topic
  • #23068
    mike-se
    Participant

    Hi Jason!

    I keep getting this message and can’t access admin panel on a Woocommerce site:

    Fatal error: Call to undefined function themeblvd_get_att() in /storage/content/–/–/–/public_html/wp-content/themes/jumpstart/framework/compat/woocommerce/class-tb-compat-woocommerce.php on line 848

    Can’t figure out what the issue is. Front end works just fine.

    If I remove below code temporarily, update the site, I get into admin, with other errors ofcourse, and then when I put it back everything works fine again, without any errors. And as soon as I update woocommerce it comes back again. Any ideas?

    /**
    	 * Shop loop columns
    	 *
    	 * @since 2.5.0
    	 */
    	public function loop_columns( $cols = 4 ) {
    
    		if ( themeblvd_get_att('woo_product_columns') ) {
    			$cols = themeblvd_get_att('woo_product_columns');
    		} else if ( is_product_category() || is_product_tag() || is_search() ) {
    			$cols = themeblvd_get_option('woo_archive_columns');
    		} else if ( is_shop() ) {
    			$cols = themeblvd_get_option('woo_shop_columns');
    		}
    
    		return intval($cols);
    	}
    • This topic was modified 4 years ago by mike-se.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #23070
    Jason Bobich
    Keymaster

    Hi,

    Are you saying this happened after updating to the latest WooCommerce? Are you using any other WooCommerce-related plugins?

    #23071
    mike-se
    Participant

    Yeah, so the only difference with this shop site and another one now that I checked is https://wordpress.org/plugins/woocommerce-products-per-page/ plugin which gives users the ability to change how many products are shown. Must be a conflict there, and I’ll remove it.

    #23072
    Jason Bobich
    Keymaster

    It’s an odd error because it’s taking stuff meant for the front end and calling it in the admin. I can’t imagine why or how the plugin would be doing that. Weird.

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

You must be logged in to reply to this topic.