Page 1 of 1

mysql_connect error using checkin.php

Posted: 25 Jan 2006, 05:26
by rata
I have just installed Mantis 1.0.0rc5 on a new server and am trying to integrate with SVN. I have had this working before with Mantis0.19.2.
I keep getting the following error from my post-commit.bat hook script:
[quote]Fatal error: Call to undefined function mysql_connect() in E:\WWW\mantis-1.0.0rc5\core\adodb\drivers\adodb-mysql.inc.php on line 338[/quote] This occurs when checkin.php runs [code]require_once( dirname( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'core.php' );[/code] The rest of checkin.php does not run. Mysql_connect works for other applications on this server.

The rest of Mantis works fine and core.php is required by most pages. The only difference that I can see is that checkin.php is run directly by php and not through the web server.
Does anyone have any suggestions?

Same problem with mantis 1.0.5

Posted: 07 Oct 2006, 14:22
by vosskaem
I have the same problem executing checkin.php:

# php -f /var/www/mantis/core/checkin.php < messagefile
Fatal error: Call to undefined function mysql_pconnect() in /var/www/mantis/core/adodb/drivers/adodb-mysql.inc.php on line 355

can anyone help me?
I'm runnig mantis 1.0.5 on ubuntu dapper drake with php5 and everything else works fine, including mantis

Posted: 08 Oct 2006, 08:32
by vboctor
It seems that the PHP you are running doesn't have mysql extension enabled.

Regards,
Victor

Set PHPRC env var in Windows 2003

Posted: 09 Oct 2006, 03:26
by rata
I fixed this problem in Windows 2003 by setting the PHPRC environment variable.