{"id":12100066,"date":"2019-11-05T18:35:41","date_gmt":"2019-11-05T18:35:41","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/fatal-error-since-2-8-4\/"},"modified":"2019-11-05T18:35:41","modified_gmt":"2019-11-05T18:35:41","slug":"fatal-error-since-2-8-4","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/fatal-error-since-2-8-4\/","title":{"rendered":"Fatal Error since 2.8.4"},"content":{"rendered":"<p>First thanks for your plugin<br \/>\nI recently uploaded it on a Worpress and add this PHP error everywhere :<\/p>\n<p><code>Fatal error: Can&#039;t use method return value in write context in \/var\/www\/clients\/client28\/web54\/web\/wp-content\/plugins\/wc-product-customer-list\/views\/table-customer-list.php on line 35<\/code><\/p>\n<p>This appear to be a change active since 2.8.4 and explained by <a href=\"https:\/\/stackoverflow.com\/a\/4328049\/4973023\">this answer<\/a> <\/p>\n<p><code>if ( ! empty( $data ) &amp;&amp; ! empty( $data-&gt;get_meta_data() ) ) {<\/code><\/p>\n<p>Line 35 is indeed using empty with a return value from a function as argument and I&#8217;m using PHP 5.4.45 and I can find nowhere a min required version for this plugin.<br \/>\nIs there one or could you fix this call ?<br \/>\nThanks!<\/p>\n","protected":false},"template":"","class_list":["post-12100066","topic","type-topic","status-publish","hentry","topic-tag-php"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12100066","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12100066\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=12100066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}