mysql_connect error using checkin.php

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
rata
Posts: 9
Joined: 18 Feb 2005, 02:10

mysql_connect error using checkin.php

Post 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?
vosskaem
Posts: 1
Joined: 07 Oct 2006, 14:11

Same problem with mantis 1.0.5

Post 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
vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post by vboctor »

It seems that the PHP you are running doesn't have mysql extension enabled.

Regards,
Victor
rata
Posts: 9
Joined: 18 Feb 2005, 02:10

Set PHPRC env var in Windows 2003

Post by rata »

I fixed this problem in Windows 2003 by setting the PHPRC environment variable.
Post Reply