Page 1 of 1

Fatal error when running Phoca Changing Collation tool

Posted: 14 Apr 2017, 13:10
by chrotto
I am running the tool on a Drupal 8 site and getting this error:
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /mysite/index.php:45 Stack trace: #0 /mysite/index.php(86): start_db('localhost', my_database', 'my_username', 'my_pass') word#1 {main} thrown in /mysite/index.php on line 45

I run the script in the site root after changing the site index.php temporary to a different name.

Re: Fatal error when running Phoca Changing Collation tool

Posted: 15 Apr 2017, 08:28
by chrotto
I just noticed that I am using PHP 7 and in that version, for example, mysql_connect() shall be mysqli_connect(). Probably more function is not working. Is there any updated version of this script that is working also with PHP 7.0?

Re: Fatal error when running Phoca Changing Collation tool

Posted: 15 Apr 2017, 22:47
by Jan
Hi, for now I didn't test this tool with PHP 7. I will take a look at it.

Thank you for the info.

Jan

Re: Fatal error when running Phoca Changing Collation tool

Posted: 15 Apr 2017, 23:03
by Jan

Re: Fatal error when running Phoca Changing Collation tool

Posted: 16 Apr 2017, 08:29
by chrotto
Works perfectly!
Thanks a lot!

Re: Fatal error when running Phoca Changing Collation tool

Posted: 20 Apr 2017, 15:28
by Jan
Ok, great to hear it.

Jan