mysql_fetch_object error with PHP 5.3.6 [SOLVED] (Windows Server 2003)
t.schutter
Joined: 2012-09-16
Posts: 2 |
Posted: Sun, 2012-09-16 22:06 |
I am installing Gallery 3.0.4 for the first time. When I browse to the installer, I get this error message: PHP Fatal error: Call to undefined function mysql_fetch_object() in /gallery3/installer/installer.php on line 120 This sounds exactly like the problem described at http://gallery.menalto.com/node/98344, but their solution was to use PHP 5.2 instead of PHP 6. I am using PHP 5.3, and downgrading to 5.2 is a difficult procedure for me. I am installing on OpenBSD 5.0. $ pkg_info -I php mysql-server mysql-client php-mysqli-5.3.6 |
|
Posts: 27300
Perhaps your version of php does not have the mysql_fetch_object() enabled? It is a php function not a gallery function.
I'm no server expert so just guessing here.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 3
I have the same problem.
Always the error message:
PHP Fatal error: Call to undefined function mysql_fetch_object() in /gallery3/installer/installer.php on line 120
I have already searched how to enable this php function but i can't find something about that.
Who can help?
Raphi
Posts: 2
Solved.
Gallery3 does not support php-mysqli. It only supports php-mysql. As you can see in the original post, I had installed php-mysqli, not php-mysql. Installing php-mysqli solved the problem.
sudo pkg_add php-mysql-5.3.6
Posts: 3
My installed packages on Windows Server 2003:
- IIS 6
- FastCGI 1.5
- PHP 5.4.7
- mysql 5.1.65 (http://www.mysql.com/downloads/mysql/)
have i the correct packages?
The error is always the same:
PHP Fatal error: Call to undefined function mysql_fetch_object() in /gallery3/installer/installer.php on line 120
Posts: 3
Solved.
I had installed an other php version: http://windows.php.net/downloads/releases/php-5.3.17-nts-Win32-VC9-x86.msi
Posts: 204
I'll bet you were running a threaded release as NTS = Non threaded safe and VC9 is the visual c+ part.
It also could have been php, but it's not gallery related. It's a bug within PHP itself.
=======
Windows Install Guide
Posts: 1
Thanks Schutter, that solved my problem too.
Posts: 1
Just for clarification, installing mysql solved the problem, Post mentions installing mysqli as the solution.
Posts: 204
MySQL is the application. MySQLi is more like an extension. Simply uncommenting the (I forget the actual syntax) php=extension_mysqli in php.ini will enable it.
=======
Windows Install Guide
Posts: 1
I had the same problem as the original poster, on the same setup, and the solution was the same:
php-mysql is a software package that adds MySQL support to PHP. php-mysqli is a software package that adds MySQL support to PHP. php-mysql is the right package. php-mysqli is the wrong package. Confusingly, the error message you get if neither one is installed states that both are acceptable.