I tried to update or upgrade GeoDirectory to the latest version by I get an error message “This page Isn’t Working”
My backend error logs provide this error:
“[20-Nov-2019 07:53:44 UTC] PHP Fatal error: Can’t use function return value in write context in /home/findafarmerco/public_html/wp-content/plugins/geodirectory/includes/post-functions.php on line 308”
My line 308 is:
if ( ! function_exists( 'geodir_has_post_meta' ) ) {
function geodir_has_post_meta( $meta_key, $post_id = null ) {
global $post;
//Use the current post's id if none is provided
if( is_null( $post_id ) ) {
$post_id = $post->ID;
}
<em>(line 308)</em> return !empty( geodir_get_post_meta( $post_id, $meta_key, true ) );
Domain name is: http://www.findafarmer.co.za
Other installed plugins are:
Elementor
WM SmushIt
Hummingbird
Polylang
Header Footer Elementor
Premium Addons for elementor
Stick header effects for elementor
The crash however occured after attempting to upgrade to latest version of GeoDirectory