Hi,
My website was working absolutely fine until two weeks ago when all of a sudden I got a number of errors which has resulted in preventing any users from getting on their account. " You need to be logged in to access this feature". New pilots can still register but no current pilots can access their account. I will attach some pictures below. I contacted my hosting company and they said it isn’t a server issue but a PHP issue. The error log seems to suggest line 101:
[02-Feb-2020 03:54:23 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/sunflyvi/public_html/lib/skins/ocean_blue/frontpage_main.php on line 99
[02-Feb-2020 10:14:30 UTC] PHP Warning: mysqli::mysqli(): (HY000/2002): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) in /home/sunflyvi/public_html/core/classes/ezdb/ezdb_mysqli.class.php on line 101
[02-Feb-2020 10:14:31 UTC] PHP Fatal error: Uncaught <blockquote><font face=arial size=2 color=000099><b>Last Error –</b> [<font color=000000><b>Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) (2002)</b></font>]<br />[<font color=000000><b></b></font>]</font><p>
</blockquote><hr noshade color=dddddd size=1>
thrown in /home/sunflyvi/public_html/core/classes/ezdb/ezdb_mysqli.class.php on line 106
[02-Feb-2020 10:14:43 UTC] PHP Warning: mysqli::mysqli(): (HY000/2002): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) in /home/sunflyvi/public_html/core/classes/ezdb/ezdb_mysqli.class.php on line 101
[02-Feb-2020 10:14:43 UTC] PHP Fatal error: Uncaught <blockquote><font face=arial size=2 color=000099><b>Last Error –</b> [<font color=000000><b>Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) (2002)</b></font>]<br />[<font color=000000><b></b></font>]</font><p>
</blockquote><hr noshade color=dddddd size=1>
thrown in /home/sunflyvi/public_html/core/classes/ezdb/ezdb_mysqli.class.php on line 106
If anyone has any suggestions on how to sort this, then that would be gratefully appreciated.
Thanks
Matthew