I keep having the same error on my three Wordpress sites. Whenever I click a link in one of them, I get the following error:
Parse error: syntax error, unexpected 'endif' (T_ENDIF) in /home/luis_maga/viveramarprosperar.com/wp-includes/functions.php on line 54
Using the FTP to download and examine the functions.php file, I notice that it is always deleted from a random line. (in the above example everything bellow line 54 was deleted).
I have used the backup / restore function to restore the sites, but after a couple of days, the same error happens.
Right now I have rebuilt www.lendasdeelessia.com and www.luisfalcaomagalhaes.com, but I have kept www.viveramarprosperar.com unaltered so you can properly research the error.
Please advise on how to proceed, and thanks in advance for your help.