• Resolved athensforeveryone

    (@athensforeveryone)


    Help! I updated Guardian theme to 2.0 and now my website says “Fatal error: Can’t use function return value in write context in /home/robotgun/public_html/athensforeveryone.com/wp-content/themes/guardian/header.php on line 25”

Viewing 5 replies - 1 through 5 (of 5 total)
  • Same issue,

    There is a portion of code that it is referring too.

    <?php if(! empty(get_header_image())){ ?>

    This is found under the header portion of the templates. I keep trying to correct it, but no luck so far. Any thoughts?

    I changed it back to the way it was before and I was up and running.

    Take the new code and delete it.
    <div class=”right”><?php if(! empty(get_header_image())){ ?><img src=”<?php echo get_header_image(); ?>” height=”<?php echo get_custom_header()->height; ?>” width=”<?php echo get_custom_header()->width; ?>” alt=”image” /><?php } ?>

    Replace it with this.
    <div class=”right”><img src=”<?php header_image(); ?>” height=”<?php echo get_custom_header()->height; ?>” width=”<?php echo get_custom_header()->width; ?>” alt=”” />

    Let me know if the rest of your website is ok, I am looking through mine now.

    Thanks NickNack27, I had the same issue this morning your solution worked for me. I noticed on the change log there was a release 27 hours ago and then another 24 hours ago as though there was a quick update to an issue, however I used the latest version and still had the problem. Strange that no one else is reporting an issue at present?

    Hi gmankelow

    We will fix this issue in next update.

    Thanks

    Hello

    If any one have problem regarding header image.

    So they can follow above given support by @nicknack27

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Guardian update killed my website’ is closed to new replies.