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 » 14 Apr 2017, 13:10

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 » 15 Apr 2017, 08:28

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: 38707
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Fatal error when running Phoca Changing Collation tool

Post by Jan » 15 Apr 2017, 22:47

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: 38707
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Fatal error when running Phoca Changing Collation tool

Post by Jan » 15 Apr 2017, 23:03

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 » 16 Apr 2017, 08:29

Works perfectly!
Thanks a lot!

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 38707
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Fatal error when running Phoca Changing Collation tool

Post by Jan » 20 Apr 2017, 15:28

Ok, great to hear it.

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest