I have a site on Hostgator server, domain and hosting both with Hostgator self hosted wordpress hosting. Suddenly it hit error few days back, instead of loading normal home page its showing FTP client login and fatal error message below. Before contacting host, I deactivated plugin but not resolved even I entered following code in wp-config.php
file define('FS_METHOD', 'direct');
I contacted host, to solve the issue but still they are unable to diagnose the issue, instead they restored site to previous 3 days version when site was working , but this also not solved issue. Also checked with SITE LOCK for malicious code, but found nothing.
Is there any solution that can solve this issue.
Notes:
If site admin logged through mysite.com/wp-admin and browsing mysite.com it loads properly. Even after getting error, CTRL+F5 solves this issue and site loads without any issue. Issue with non logged end users
This is very strange behaviors.
Screen shot attached below