New Landing How can we help? Themeforest Theme Support Dante PHP error tabs.php line 49

Viewing 15 posts - 16 through 30 (of 44 total)
  • Posted in: Dante
  • #140641
    alemarengo
    Member
    Post count: 695

    mmm… I need that code. I’ll remove it and let you know.

    #140757
    alemarengo
    Member
    Post count: 695

    I only kept this piece of code:

    add_filter( 'woocommerce_product_tabs', 'woo_reorder_tabs', 98 );
    function woo_reorder_tabs( $tabs ) {
    
    $tabs['additional_information']['priority'] = 5;
    
    return $tabs;
    
    }

    and error is still there:

    [Mon Jan 12 06:51:56 2015] [warn] [client 207.46.13.11] mod_fcgid: stderr: PHP Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in /.../themes/dante/woocommerce/single-product/tabs/tabs.php on line 49

    Can you please try and investigate about it?

    #140894
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Very odd. Looks identical to the code that WooCommerce provides here – http://docs.woothemes.com/document/editing-product-data-tabs/

    Can you quickly try with the default Twenty Fourteen/Fifteen theme to see if the error still shows?

    – Ed

    #140896
    alemarengo
    Member
    Post count: 695

    In a few hours I’ll hide that code and let you know.

    #140907
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Ok. Let us know when you have it.
    -Rui

    #141006
    alemarengo
    Member
    Post count: 695

    Hi guys.
    Without that piece of code, error seems not to be there anymore.
    But I think I have to wait a little more…
    What do you think it may cause that error call?

    #141068
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    It’s caused by the call_user_func() function within the tabs.php code not receiving what it expects.

    What are you waiting for?

    – Ed

    #141080
    alemarengo
    Member
    Post count: 695

    Hi Ed!
    Thanks for your reply.
    I had to wait if between yesterday and today there was another error in error.log: today it’s void.
    But actually I need that snippet, otherwise tabs will look oddly.
    It seems sometimes I’m the only one with a particular error… .)
    Can help me with this?

    #141251
    alemarengo
    Member
    Post count: 695

    Hi Ed!
    I have to reactivate that snippet, at least to show Additional Info prior to Description, since I do not use it in my ecommerce.
    What do you think about? Are you going to check it or not?
    Shouldn’t I use PHP 5.3 on my server?
    There should be a reason why that function generates an error, shouldn’t it?

    #141276
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Try this code instead:

    add_filter( 'woocommerce_product_tabs', 'woo_reorder_tabs', 98 );
    	function woo_reorder_tabs( $tabs ) {
    	
    	$tabs['description']['priority'] = 25;
    	
    	return $tabs;
    	
    	}

    – Ed

    #141277
    alemarengo
    Member
    Post count: 695

    What about hiding void Description tab? I’d like to hide it if its content is void… ๐Ÿ™‚

    Anyway, error’s still there:
    [Tue Jan 13 19:47:39 2015] [warn] [client 142.4.214.124] mod_fcgid: stderr: PHP Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in /.../themes/dante/woocommerce/single-product/tabs/tabs.php on line 49

    #141308
    Swift Ideas – Ed
    Keymaster
    Post count: 15264
    This reply has been marked as private.
    #141804
    alemarengo
    Member
    Post count: 695

    Ed, I cannot read your private reply, is it correct? ๐Ÿ˜

    #141805
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Ahh, didn’t see you weren’t the topic owner. If you could please send us an email via: http://themeforest.net/user/swiftideas then I’ll send over the fixed build.

    Thanks,

    – Ed

    #141806
    alemarengo
    Member
    Post count: 695

    Email sent, but didn’t understand why. ๐Ÿ™‚

Viewing 15 posts - 16 through 30 (of 44 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register