0
votes

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.

1
have you tried deactivating those plugins? - charan kumar
switch is default php function. you cannot use as custom function - Vel
back this plugin mu-plugins up somewhere, ftp into your server and remove this mu-plugins plugin this way: ostraining.com/blog/wordpress/disable-a-wordpress-plugin - and see if it is working - popeye
I couldn't deactivate the plugin the way it was described in the article : / I tried to delete the entire folders of the plugins but nothing changes... - valentin t.

1 Answers

0
votes

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