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 » Thu Jul 15, 2010 1:36 pm

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: 14599
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 » Thu Jul 15, 2010 2:22 pm

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 » Tue Aug 17, 2010 11:28 am

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: 14599
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 » Tue Aug 17, 2010 12:02 pm

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

Who is online

Users browsing this forum: No registered users and 3 guests