I created a wordpress website for a cleaning company, and now they got back to me that something is wrong with their website. When I try to open it I get error:
Parse error: syntax error, unexpected 'switch' (T_SWITCH), expecting identifier (T_STRING) in /home3/feelthespiri/public_html/pgscleaning.co.uk/wp-content/plugins/meta-box/inc/sanitizer.php on line 60
Fatal error: Call to undefined function is_user_logged_in() in /home3/feelthespiri/public_html/pgscleaning.co.uk/wp-content/mu-plugins/endurance-page-cache.php on line 370
When I try to get to the admin panel I get:
Parse error: syntax error, unexpected 'switch' (T_SWITCH), expecting identifier (T_STRING) in /home3/feelthespiri/public_html/pgscleaning.co.uk/wp-content/plugins/meta-box/inc/sanitizer.php on line 60
and this is line 60-63 in the php file:
public function switch( $value ) {
return (int) ! empty( $value );
}
}
Can anyone guide me, how to proceed cus I'm really lost, thanks.
Go to this folder /home3/feelthespiri/public_html/pgscleaning.co.uk/wp-content/plugins/meta-box/ and rename meta-box and acces your admin dashboard by pgscleaning.co.uk/wp-admin