Quantcast
Channel: WordPress 4.8.1 uses mysql_connect which doesn't work with PHP 7 - WordPress Development Stack Exchange
Viewing all articles
Browse latest Browse all 5

Answer by aldemarcalazans for WordPress 4.8.1 uses mysql_connect which doesn't work with PHP 7

$
0
0

Are you using Xamppp 7.x for Windows?

It happened to me when I upgraded my Xampp 5.6 to Xampp 7.1. Inspecting the configuration file C:\Xampp\php\php.ini, I noticed a lot of errors involving the name of PHP extensions (they lack the prefix php_ and the suffix .dll). One of them is related to mysqli.

The wrong setting I found there:

extension=mysqli

The right setting (after editing this line):

extension=php_mysqli.dll

Correcting that solved my problem.

By the way: don't forget to correct all other wrong settings (the correct name of the extensions can be seen at C:\xampp\php\ext).


Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>