reorder tabs snippet creates php error
-
Hello,
I am using this snippet to reorder my tabs.
https://gist.github.com/woogists/abb8a37f8c708d712e46ce2d02ffdc43#file-wc-reorder-tabs-phpBut it creates a php error if one of the tabs is empty.
Like if I don’t add any attributes and decsription, these tabs are now shown in front end.
Then this snippet creates error.Is there any way to fix it?
Error code:
2021/03/10 11:39:31 [error] 77282#77282: *18799929 FastCGI sent in stderr: "PHP message: PHP Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in /www/xxxx/public/wp-content/themes/woodmart/woocommerce/single-product/tabs/tabs.php on line 60" while reading response header from upstream, client: 194.29.214.244, server: xxx.com, request: "GET /product/4605// HTTP/1.0", upstream: "fastcgi://unix:/var/run/php7.4-fpm-xxxx.sock:", host: "www.xxx.com", referrer: "https://www.google.com/"
- The topic ‘reorder tabs snippet creates php error’ is closed to new replies.