Page 1 of 1

Full version doesn't work with php7

PostPosted: 07 Mar 2018, 03:09
by MBurgess
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

Re: Full version doesn't work with php7

PostPosted: 07 Mar 2018, 03:23
by MBurgess
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.

Re: Full version doesn't work with php7

PostPosted: 07 Mar 2018, 13:57
by Jason
ArrowChat defaults to mysql_connect when mysqi_connect is not found. So yes, you are correct that the error came up because neither existed.