Php Error

hmaddy

Verified User
Joined
Apr 17, 2019
Messages
288
Getting this error. How to fix it

Thu Mar 03 01:00:11.558785 2022] [lsapi:error] [pid 1923536:tid 140305121425152] [client 54.43.11.18:42008] [host mydomain.com] Backend fatal error: PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/user/domains/ mydomain.com/public_html/dbConnection.php:7\nStack trace:\n#0 /home/user/domains/ mydomain.com/public_html/index.php(1): include()\n#1 {main}\n thrown in /home/mubarack/domains/ mydomain.com/public_html/dbConnection.php on line 7\n, referer: http:// mydomain.com
 
Looks like your trying to connect to mysql using the old (depreciated in 5.5.0) method that's been removed in PHP 7+, you need to update your code.

 
Remember if you rolled back to an older version that is EOL, it will not be updated/patched for security vulnerabilities.


 
Back
Top