• Resolved ADP

    (@artevo)


    Hi!

    It’s a great plugin! Is there a way to prevent the generation of the php warning in error_log if the tab has no content?

    PHP Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in /wp-content/themes/mytheme/woocommerce/single-product/tabs/tabs.php on line 40

    Regards!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ADP

    (@artevo)

    I know it’s theme related, but… This is the line in tabs.php

    <?php call_user_func( $tab['callback'], $key, $tab ); ?>

    Yes, it looks like theme issue. Please report it to respective theme author so that they can fix the issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Warning if no content in tab’ is closed to new replies.