enable mysqli extension

Solved Fatal error: Uncaught Error: Call to undefined function mysql_connect()

Call to undefined function mysql_connect() Error:

Website seems down when I tried to open backend. Both backend and website was showing fatal error since morning time. This was because I am using server PHP version above 7.3.

Solution: To resolveĀ  this issue I had enabled mysqli extension and then caught error issue resolved.

uncaught error solved

Step 1:

Login to cPanel, find “Select PHP Version”, click on it.

 

Step 2:

Go to the extensions.

Extensions for PHP

Extensions for PHP

 

Step 3:

Find mysqli and select/enable it.

enable mysqli extension

Leave a Reply

Your email address will not be published.