Author Topic: Call to undefined function mysqli_connect() in line (63) of (/framework/class.da  (Read 4304 times)

Offline svsanchez

  • Posts: 577
Hello

I am gaving difficulties with 2 sites made with WB which I am moving from one server to another. I restored the DB and homedir, created again the username with the same password but I am getting the following errors:

On site 1:
Call to undefined function mysqli_connect() in line (63) of (/framework/class.database.php)

On site #2:
Fatal error: Call to undefined function mysql_connect() in /home/combateg/public_html/framework/class.database.php on line 59

Both sites are still on WB 2.8.3. At first I thought it was a problem of PHP 7, but the problem persists after I changed them to PHP 5.6.

Thank you for any help you can provide.

Offline hgs

  • Betatester
  • **
  • Posts: 1781
    • EFG MG
With a link to the page it will be easier to help
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

"Never begin to stop - never stop beginning." Marcus Tullius Cicero (106-43 BC)

Offline dbs

  • Betatester
  • **
  • Posts: 8819
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
With the search in the forum you get some results. One of this
https://forum.WebsiteBaker.org/index.php/topic,22117.msg149095.html#msg149095
Quote from: DarkViper
It seems , thus whether the php-mysql client module is not installed.
That's way the function mysql_connect() can not be found.

Is it your own server?

Offline svsanchez

  • Posts: 577
Yes, I used the search but it didn't show me anything. Thank you for the URL, I asked my host to install that module but they said it was already installed.

According to them, the site was down as it had some outdated code within it's .htaccess file referencing a 'suPHP_ConfigPath'.

They commented the code and the site is working again.

 

postern-length