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

    Message to Kriesti.at support
    I’m receiving this message on a blank white page of my new website after uploading Enfold Version 4.2.6:
    Fatal error: Can’t use function return value in write context in /home/content/23/11642223/html/books/wp-content/themes/enfold/header.php on line 6

    And my website is a white screen with only the above message showing.


    same problem here after the latest upgrade. Can you please provide a download link for a previous version of the enfold theme in order to get my site online asap? Thanks


    I had the same issue. Switched back the header.php code to the older version and it fixed the issue. They’d uploaded a version of the same code in another thread (https://kriesi.at/support/topic/fatal-error-cant-use-function-return-value-in-write-context-in-2/) but that didn’t work, so I used an old version from my first install’s archive. Code pasted below:

    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’);

    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?> class=”<?php echo ” html_{$style} “.$responsive.” “.$preloader.” “.$av_lightbox.” “.avia_header_class_string();?> “>
    <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>

    * 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 –>

    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 –>
    /* 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.




    <body id=”top” <?php body_class($style.” “.$avia_config[‘font_stack’].” “.$blank.” “.$sidebar_styling); avia_markup_helper(array(‘context’ => ‘body’)); ?>>


    if(“av-preloader-active av-preloader-enabled” === $preloader)
    echo avia_preload_screen();


    <div id=’wrap_all’>

    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’); ?>’>


    if(isset($avia_config[‘temp_logo_container’])) echo $avia_config[‘temp_logo_container’];



    Hi qfactor, i tried your code but it does not work on my site. However I donwloaded the older header.php from the post you are reffering to. That one brings back the site but with a total messed up layout…


    The same thing happened to my site when I used their code. You could do what I did and copy paste the header.php code from the last version of the theme you had downloaded onto your system. Mine was an ancient version (some two years old).
    In any case, I hope they release a fix sometime soon, because using old code has its own compatibility issues.



    There will be an update on our upcoming release.
    We appreciate the patience.

    Best regards,


    Hi Basilis, Can you please post a zip with the previous version of the theme. My site is now out of order for more tha a week already.
    Thanks. Regards, Menno


    Hi mdrunen,

    Sorry for the problems. We can’t post that in public, so please open a new thread and we’ll send it to your there.

    Best regards,

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