Tagged: fatal error
-
AuthorPosts
-
February 14, 2019 at 2:21 pm #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!)
February 14, 2019 at 5:10 pm #1067055I 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.- This reply was modified 5 years, 9 months ago by DigitalMcMahan.
February 15, 2019 at 7:02 am #1067305I just want to chime in and say I had the same error when I added the theme today.
February 15, 2019 at 8:24 am #1067338Hi 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,
RikardFebruary 15, 2019 at 10:21 am #1067372Follow!
Same fatal error. Have to go back to 4.5.3.February 15, 2019 at 10:39 am #1067379Hi,
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ünterFebruary 15, 2019 at 2:16 pm #1067453Thank 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!
February 15, 2019 at 2:30 pm #1067456Never mind ;)
- This reply was modified 5 years, 9 months ago by jr-music.
February 15, 2019 at 2:54 pm #1067462Gü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!
February 15, 2019 at 3:09 pm #1067467Worked great! Thank you.
February 15, 2019 at 3:32 pm #1067475 -
AuthorPosts
- The topic ‘Fatal Error’ is closed to new replies.