Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1077539

    I just upgraded to the latest version today now I am getting this error message…

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

    Can you please advise how to fix this?

    Thanks.

    #1078131

    Hey Harris,

    Which version of PHP are you running on the site? Make sure that it’s 7.1 or higher.

    Best regards,
    Rikard

    #1078297

    I have 5 PHP. But there should be a warning before you upgrade to make sure you have the latest PHP if it is required and Enfold knowing sites will break.

    I found a solution without upgrading this what I don’t understand since I am not a PHP wizard.

    If it is still working with my current version 5 PHP with the solution I found.

    Solution: https://kriesi.at/support/topic/fatal-error-54/

    I replace this line
    $hide_featured_image = empty( get_post_meta(get_the_ID(), ‘_avia_hide_featured_image’, true ) ) ? false : true;

    with this line

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

    And all is good for now.

    I will take your recommendation and upgrade to PHP 7 for the next Enfold upgrade.

    #1078480

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Upgrade to the latest version today…’ is closed to new replies.