Tagged: 

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1066969

    Howdy Team Kriesi!

    Yesterday I uploaded the new theme via FTP to a clients site. (I deleted the old theme first, but I still have a child theme installed) I’ve done this before with another licensed version of Enfold without issue, however this time I got a fatal error.

    Fatal error: Can’t use function return value in write context in /home2/scrawley/public_html/wp-content/themes/enfold/includes/helper-post-format.php on line 213

    I don’t know PHP, and I can no longer access the backend of this website. I can only access via FTP. Can you assist? (I have moved plugins to an “inactive” folder in case it was a plugin conflict, but that didn’t work.

    Thank you! – Ross (I can give you FTP credentials if you so desire, just let me know and thanks!)

    #1067055

    I got the same error this morning after updating to Enfold 4.5.4.
    Fatal error: Can’t use function return value in write context in /home1/andrew/public_html/wp-content/themes/enfold/includes/helper-post-format.php on line 213
    Can’t view site or access back end.

    #1067305

    I just want to chime in and say I had the same error when I added the theme today.

    #1067338

    Hi Scootpunker,

    Yes, we will need FTP details to help you out. Please post them in private.


    @DigitalMcMahan
    and @keanefine, please open a new thread and include admin and FTP login details in private so that we can have a closer look at your site.

    Best regards,
    Rikard

    #1067372

    Follow!
    Same fatal error. Have to go back to 4.5.3.

    #1067379

    Hi,

    Sorry for the problems. They are caused because of old PHP versions. We would recommend to upgrade minimum to version 5.6 or higher (also for security) – http://php.net/supported-versions.php

    Please replace the file enfold\includes\helper-post-format.php with https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_4_5_4/helper-post-format.php.

    Do not forget to make a backup for fallback.

    Alternate you can replace line 213:

    
    $hide_featured_image = empty( get_post_meta(get_the_ID(), '_avia_hide_featured_image', true ) ) ? false : true;
    

    with

    
    $hide_featured_image = get_post_meta( get_the_ID(), '_avia_hide_featured_image', true );
    $hide_featured_image = empty( $hide_featured_image ) ? false : true;
    

    If you need assistance let us know and we can do it for you.

    Best regards,
    Günter

    #1067453

    Thank you, Günter! I will petition the host to upgrade the PHP and in the meantime, I will replace that file with your new one. I’ll let you know how it works out. Vielen Dank!

    #1067456

    Never mind ;)

    • This reply was modified 5 years, 9 months ago by jr-music.
    #1067462

    Günter, this worked for me. I replaced all of the code in my helper-post-format.php document with your new code. Alles Güt! Danke!

    #1067467

    Worked great! Thank you.

    #1067475

    Hi,

    Great it helped you.

    I will close this thread but feel free to open a new one if you need further assistance.
    Enjoy the theme.

    Best regards,
    Günter

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Fatal Error’ is closed to new replies.