Home › Forums › Bug Reports › Update 5.7.11 Crashes Site › Reply To: Update 5.7.11 Crashes Site
Fix for error: “PHP Fatal error: Can’t use function return value in write context in /public_html/wp-content/plugins/advanced-custom-fields-pro/includes/local-fields.php on line 304”.
Please edit the file in question and change line 304 to:
return acf_get_local_fields($parent) ? true : false;
Reason for error: PHP version 5.4 does not allow expressions, only variables. This was fixed in PHP 5.5.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.