Install issue 2.6.6 undefined function mysql_set_charset()

All about webserver configurations, PHP and databases.

Moderator: Thorsten

Post Reply
midodds
Posts: 1
Joined: Thu Jul 15, 2010 1:31 pm

Install issue 2.6.6 undefined function mysql_set_charset()

Post by midodds »

Trying to install and getting the message

Fatal error: Call to undefined function mysql_set_charset() in /home/fhlinux153/t/my.server.co.uk/user/htdocs/faq/inc/PMF_DB/Mysql.php on line 84

I have set all files and folders permissions to 777

Any ideas ?
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Install issue 2.6.6 undefined function mysql_set_charset()

Post by Thorsten »

Hi,

which PHP version do you use?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Lico
Posts: 1
Joined: Tue Aug 17, 2010 11:23 am

Re: Install issue 2.6.6 undefined function mysql_set_charset()

Post by Lico »

I have the same error message on 2.6.7 after entering DB info and pressing "Click here to install..."
Fatal error: Call to undefined function mysql_set_charset() in /home/userB/bxxxxxx/public_html/www.domain.xx/faq/inc/PMF_DB/Mysql.php on line 84

PHP Version 5.2.8
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Install issue 2.6.6 undefined function mysql_set_charset()

Post by Thorsten »

Hi,

your PHP is broken. The function mysql_set_charset() is available since PHP 5.2.3:

http://php.net/manual/en/function.mysql-set-charset.php

You can fix this by fixing the check in inc/PMF_DB/Mysql.php

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply