Help
Ask questions about how to do or fix things in Arrowchat
User avatar
MBurgess
Customer
 
Posts: 2
Joined: 06 Mar 2018, 09:23

 

by MBurgess 07 Mar 2018, 03:09

I'm using PHP7.2, the mysql_connect function was removed in 7.0 so the full version is not working with PHP 7.

Anyone able to advise on this?

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /var/www/html/includes/classes/class_database.php:44
User avatar
MBurgess
Customer
 
Posts: 2
Joined: 06 Mar 2018, 09:23

 

by MBurgess 07 Mar 2018, 03:23

After some debugging this is an uncaught bug.

In my case mysqi_connect and mysql_connect (so neither exist) because my docker container was never compiled with MySQL (I've fixed this now) however it should display an error when both functions are missing.
User avatar
Jason
Customer
 
Posts: 2334
Joined: 12 Dec 2009, 16:06

 

by Jason 07 Mar 2018, 13:57

ArrowChat defaults to mysql_connect when mysqi_connect is not found. So yes, you are correct that the error came up because neither existed.