Viewing 6 posts - 1 through 6 (of 6 total)
-
AuthorPosts
-
June 12, 2016 at 11:01 am #646829
Hello the team,
My current version is 3.5.4.
Yesterday i updated the theme to 3.6.1.
It gives me error 500 on frontend but the backend was still wordking.
Please help.
Best regards.
June 12, 2016 at 11:49 am #646857Hey hurraken,
Try enabling WP_DEBUG mode in wp-config.php and check if any errors come up instead of 500:
define('WP_DEBUG', true);
Best regards,
JosueJune 12, 2016 at 12:11 pm #646874Hello Josue,
I had this warning in debug mode :
Fatal error: Call to undefined function avia_header_class() in /xxx/wp-content/themes/enfold-child/header.php on line 12
I have a copy of the header.php from the parent folder in my child theme :
<?php if ( !defined('ABSPATH') ){ die(); } global $avia_config; $style = $avia_config['box_class']; $responsive = avia_get_option('responsive_active') != "disabled" ? "responsive" : "fixed_layout"; $blank = isset($avia_config['template']) ? $avia_config['template'] : ""; $av_lightbox = avia_get_option('lightbox_active') != "disabled" ? 'av-default-lightbox' : 'av-custom-lightbox'; $preloader = avia_get_option('preloader') == "preloader" ? 'av-preloader-active av-preloader-enabled' : 'av-preloader-disabled'; $sidebar_styling = avia_get_option('sidebar_styling'); $filterable_classes = avia_header_class( avia_header_class_string() ); ?> <!DOCTYPE html> <html <?php language_attributes(); ?> class="<?php echo " html_{$style} ".$responsive." ".$preloader." ".$av_lightbox." ".$filterable_classes ?> "> <head> <meta charset="<?php bloginfo( 'charset' ); ?>" /> <!-- page title, displayed in your browser bar --> <title><?php if(function_exists('avia_set_title_tag')) { echo avia_set_title_tag(); } ?></title> <?php /* * outputs a rel=follow or nofollow tag to circumvent google duplicate content for archives * located in framework/php/function-set-avia-frontend.php */ if (function_exists('avia_set_follow')) { echo avia_set_follow(); } /* * outputs a favicon if defined */ if (function_exists('avia_favicon')) { echo avia_favicon(avia_get_option('favicon')); } ?> <!-- mobile setting --> <?php if( strpos($responsive, 'responsive') !== false ) echo '<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">'; ?> <!-- Scripts/CSS and wp_head hook --> <?php /* Always have wp_head() just before the closing </head> * tag of your theme, or you will break many plugins, which * generally use this hook to add elements to <head> such * as styles, scripts, and meta tags. */ wp_head(); ?> </head> <body id="top" <?php body_class($style." ".$avia_config['font_stack']." ".$blank." ".$sidebar_styling); avia_markup_helper(array('context' => 'body')); ?>> <?php if("av-preloader-active av-preloader-enabled" === $preloader) { echo avia_preload_screen(); } ?> <div id='wrap_all'> <?php if(!$blank) //blank templates dont display header nor footer { //fetch the template file that holds the main menu, located in includes/helper-menu-main.php get_template_part( 'includes/helper', 'main-menu' ); } ?> <div id='main' data-scroll-offset='<?php echo avia_header_setting('header_scroll_offset'); ?>'> <?php if(isset($avia_config['temp_logo_container'])) echo $avia_config['temp_logo_container']; do_action('ava_after_main_container'); ?>
Best regards
- This reply was modified 8 years, 4 months ago by hurraken.
June 12, 2016 at 12:28 pm #646882Hi,
Replace this:
$filterable_classes = avia_header_class( avia_header_class_string() );
With:
$filterable_classes = avia_header_class_filter( avia_header_class_string() );
Best regards,
JosueJune 12, 2016 at 12:38 pm #646887Great, it works.
Thank you Josue.
Best regards.
June 12, 2016 at 12:51 pm #646892You are welcome, glad to help :)
Regards,
Josue -
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.