This topic has 8 replies, 3 voices, and was last updated 7 years, 5 months ago ago by Olga Barlow
PHP Fatal error: Call to undefined function etheme_shop_navbar() in /home/vaxxenlabs/xxx.test.com/wp-content/themes/xstore/headers/parts/top-bar.php on line 6
Hello,
It works fine now.
Check the site.
Screenshot : http://prntscr.com/fexpet
Wrong site
Try now, I changed themes back to xstore original.
Child theme gives error 500. possibly you renamed a menu function?
Call to undefined function etheme_shop_navbar() in /home/vaxxenlabs/xxx.vaxxenlabs.com/wp-content/themes/xstore/headers/parts/top-bar.php on line 6
<?php if (etheme_get_option(‘top_bar’)): ?>
[02-Jun-2017 11:12:37 UTC] PHP Fatal error: Call to undefined function etheme_get_option() in /home/domain/xxx.domain.com/wp-content/themes/xstore/headers/parts/top-bar.php on line 1
Hello,
As I understand you get the error only if child theme is activated, right?
Then you need to check the code that you have in your child theme. I have made a quick look and see for example this code
if (!function_exists('etheme_shop_navbar')) {
function etheme_shop_navbar() {
return '';
}
}
If you want to change the function in child theme there is no need to write if (!function_exists(
Try to change that code to
function etheme_shop_navbar() {
return;
}
and check if the error still appears. If yes, then check the other code piece by piece to find out why you get that message.
Regards
You must be logged in to reply to this topic.Log in/Sign up