Please help!! I ran the latest Enfold theme update and now I am receiving a fatal error. I am completely locked out of my wordpress admin. my homepage appears to be working yet none of the other pages are working. How can I fix this?
Fatal error: Can’t use function return value in write context in /home3/smilingt/public_html/new/wp-content/themes/enfold/includes/helper-post-format.php on line 213
home page is here: https://smilingtoad.com/
page example where error can be seen is here: https://smilingtoad.com/our-process/
I was able to connect to FTP and open the helper-post-format.php. below is the code located around line 213.
/**
* Backwards comp. to checkbox prior v4.5.3 (now selectbox with ” or ‘1’)
*/
$hide_featured_image = empty( get_post_meta(get_the_ID(), ‘_avia_hide_featured_image’, true ) ) ? false : true;
if( is_single( get_the_ID() ) && $hide_featured_image )
{
$current_post[‘before_content’] = ”;
}
return avia_default_title_filter($current_post);
}
}
just following up on my issue. should the code provided above be updated somehow?
to provide more background, I updated to WordPress 5.1 first and everything was OK. I then ran Enfold 4.5.4 update and that’s when the fatal error happened.
just letting you know I was able to figure this out. site is back online after updating to php 7.1