Last modified: 2012-09-24 14:44:20 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T42471, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40471 - I have installed and am running on MySQL and get the fatal error going to the main index.php page
I have installed and am running on MySQL and get the fatal error going to the...
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
1.19.2
PC Windows Server 2008
: Unprioritized blocker (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-24 08:30 UTC by James Wallis Martin
Modified: 2012-09-24 14:44 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description James Wallis Martin 2012-09-24 08:30:52 UTC
Fatal error: Call to undefined function mysql_error() in C:\inetpub\wwwroot\wiki\includes\db\DatabaseMysql.php on line 305

This is the code in the file (which comes from a plain vanilla install) with the arrow pointing to the line the error refers to:

	function lastError() {
		if ( $this->mConn ) {
			# Even if it's non-zero, it can still be invalid
			wfSuppressWarnings();
			$error = mysql_error( $this->mConn );
			if ( !$error ) {
				$error = mysql_error();
			}
			wfRestoreWarnings();
		} else {
===>			$error = mysql_error();
		}
		if( $error ) {
			$error .= ' (' . $this->mServer . ')';
		}
		return $error;
	}
Comment 1 Marcin Cieślak 2012-09-24 08:35:49 UTC
What does your http://your-wiki/path/mw-config/ say?
Comment 2 Alex Monk 2012-09-24 14:44:20 UTC
The MySQL module for PHP is not loaded. On windows I think this is php_mysql.dll.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links