Fatal error when running Phoca Changing Collation tool

Phoca Tools: Phoca Server Unzip tool, Phoca Changing Collation tool, ...
chrotto
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 14 Apr 2017, 12:56

Fatal error when running Phoca Changing Collation tool

Post 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.

Tags:
chrotto
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 14 Apr 2017, 12:56

Re: Fatal error when running Phoca Changing Collation tool

Post 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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48345
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Fatal error when running Phoca Changing Collation tool

Post 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
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48345
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Fatal error when running Phoca Changing Collation tool

Post by Jan »

If you find Phoca extensions useful, please support the project
chrotto
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 14 Apr 2017, 12:56

Re: Fatal error when running Phoca Changing Collation tool

Post by chrotto »

Works perfectly!
Thanks a lot!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48345
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Fatal error when running Phoca Changing Collation tool

Post by Jan »

Ok, great to hear it.

Jan
If you find Phoca extensions useful, please support the project
Post Reply