Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1409429

    hi – i recently updated a VERY old (i think version 4.5?) and broken site for a client. it appears that the update went well and I’m not getting an error except when i activate the child theme. below is the error message. is this something that can be fixed? i’d hate to lose the site.

    Fatal error: Uncaught Error: Call to undefined function avia_get_option() in /home/customer/www/pinnacle-brandmanagement.com/public_html/wp-content/themes/pinnacle-brand-management/index.php:16 Stack trace: #0 /home/customer/www/pinnacle-brandmanagement.com/public_html/wp-includes/template-loader.php(106): include() #1 /home/customer/www/pinnacle-brandmanagement.com/public_html/wp-blog-header.php(19): require_once(‘/home/customer/…’) #2 /home/customer/www/pinnacle-brandmanagement.com/public_html/index.php(17): require(‘/home/customer/…’) #3 {main} thrown in /home/customer/www/pinnacle-brandmanagement.com/public_html/wp-content/themes/pinnacle-brand-management/index.php on line 16
    There has been a critical error on this website.

    #1409470

    Hey xtinahill,

    It seems to be coming from index.php in your child theme. Why exactly do you need to override that file? You could try removing that file from your child theme, to see if that helps.

    Best regards,
    Rikard

    #1409803

    HI – Thanks for your response! I don’t need to override that file, that’s the error message that comes up on the website. with child theme…. Could I just make a new index in the child theme?

    #1409895

    Hi,

    Thanks for the update. I don’t think you should need that file at all to be honest with you. Please try to download it to your local machine first, then delete it from the server. If you should need the file in question at a later point, then you can simply upload it again.

    Best regards,
    Rikard

    #1409912

    Hi – I tried to remove the index and set a blank index file and currently there is just a blank page showing on the site. it seems that the code i added back when i built the site (below) is important but maybe needs an update somehow?

    these are the sections i tried removing (both separately and together) but i was either getting the blank page or a broken site. thanks!
    if(!empty($blogpage_id) && get_post_meta($blogpage_id, ‘header’, true) != ‘no’)
    {
    echo avia_title(array(‘heading’=>’strong’, ‘title’ => $title, ‘link’ => $t_link, ‘subtitle’ => $t_sub));
    }

    do_action( ‘ava_after_main_title’ );
    ?>

    <div class=’container_wrap container_wrap_first main_color <?php avia_layout_class( ‘main’ ); ?> <?php echo avia_blog_class_string(); ?>’>

    <div class=’container template-blog ‘>

    <main class=’content <?php avia_layout_class( ‘content’ ); ?> units’ <?php avia_markup_helper(array(‘context’ => ‘content’));?>>

    <?php

    $avia_config[‘blog_style’] = apply_filters(‘avf_blog_style’, avia_get_option(‘blog_style’,’multi-big’), ‘blog’);
    if($avia_config[‘blog_style’] == ‘blog-grid’)
    {
    $atts = array(‘type’ => ‘grid’, ‘items’ => get_option(‘posts_per_page’), ‘columns’=> 3, ‘class’=>’avia-builder-el-no-sibling’, ‘paginate’=>’yes’);
    $blog = new avia_post_slider($atts);
    $blog->query_entries();
    echo “<div class=’entry-content-wrapper’>”.$blog->html().”</div>”;
    }
    else
    {
    /* Run the loop to output the posts.
    * If you want to overload this in a child theme then include a file
    * called loop-index.php and that will be used instead.
    */

    $more = 0;
    get_template_part( ‘includes/loop’, ‘index’ );
    }
    ?>

    <!–end content–>
    </main>

    #1409926

    Hi,
    When I check your site the Enfold theme options do not display in the admin tool bar or in the admin panel, when I switch to the Enfold parent theme the theme options show and the frontend shows. I don’t see any specific customization in your index.php but it is missing many lines when compared to the current theme index.php
    I recommend removing this file.
    Your child theme stylesheet is also missing the Template: enfold so WordPress doesn’t know it is a child theme, try adding this.

    Best regards,
    Mike

    #1410020

    hi – i added the template to css but am a little confused on removing the index file. when i remove the child index, the website is just a blank white screen. the content is there when i use the enfold theme but none of the customizations are there? thanks

    #1410082

    Hi,
    When I checked the parent theme was active, I enabled the child theme and it looks like your customizations are showing, please check.

    Best regards,
    Mike

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.