Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
  • #926241

    Everytime I update the theme, I run into errors. Is there an underlying reason why the theme update never seems to work right? I always have to revert back to an older theme risking site hacking. Any thoughts?

    Fatal error: Can’t use function return value in write context in /home/content/26/9153026/html/wp-content/themes/enfold/header.php on line 6

    • This topic was modified 6 years, 2 months ago by zetharia.

    Hello. You’re only at more of a security risk IF a vulnerability is found and the theme addresses it. Reverting to a previous version does not mean you are more at risk. That said, I agree the updates have been a mess. I recommend keeping a copy of every Enfold version, that way you can easily roll back.

    Also, I recommend always upgrading/downgrading via FTP, rather than using your browser.

    In this particular case, if you search the boards, others are running into this issue and you will need to address your PHP version.



    Sorry for the inconvenience! Issue occurs on servers running PHP versions older than 5.6. You can either upgrade your PHP version to minimum 5.6 and preferably to 7.x or replace /wp-content/themes/enfold/header.php file with this one – to bring up backwards compatibility with older PHP versions.

    Thanks for your help and input :)



    I have a big problem, I just updated the enfold theme and now my site does not appear, just a blank screen, contact my hosting provider and say that the enfold template has a big mistake.
    [13-Mar-2018 17:38:23 UTC] PHP Fatal error: Can not redeclare av_countdown_events_fallback () (previously declared in /home/pastele9/public_html/ -shortcodes / events_countdown.php: 14) in /home/pastele9/public_html/ on line 12

    You need to verify with your code developer or programmer of the site for the reinstallation of this topic.


    I updated the header.php file, but still have the same error.


    Does anyone have the theme version 4.2 I can download?



    I attached it in private content field.

    please go to wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/ folder via FTP and remove events_countdown.php file and that would help.

    Best regards,


    I’m so sorry to have to write back here. I just downgraded to 4.2, but now I’m getting these additional errors:

    Fatal error: Declaration of avia_sc_comments_list::shortcode_handler() must be compatible with that of aviaShortcodeTemplate::shortcode_handler() in /home/content/26/9153026/html/wp-content/themes/enfoldv4_2/config-templatebuilder/avia-shortcodes/comments.php on line 14

    This reply has been marked as private.

    I think I fixed it. Some error messages came up and I just went and hid the code in the comments related issues. Thanks.



    Glad that it’s fixed. The error you’re seeing appears when you’re using php version that is less than 5.6.

    Best regards,


    I’m in the same situation. Website in HANG with blank page after uodating to 4.2.6.
    Please, is I go to wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/ folder via FTP and remove events_countdown.php , does I resolve?


    In my installation doesn’t exist events_countdown.php in avia-shortcodes/ folder
    So I cannot solve by myself.



    I replied to your thread here –
    If you would like us to look into it, please post FTP and WP admin logins in private content field on your own thread :)


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