Last modified: 2010-05-15 15:54:45 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 T16441, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 14441 - dumpBackup gives error for DatabaseMysql::setTimeout()
dumpBackup gives error for DatabaseMysql::setTimeout()
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
1.12.x
Other Linux
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-06-06 13:36 UTC by Travis D
Modified: 2010-05-15 15:54 UTC (History)
0 users

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


Attachments

Description Travis D 2008-06-06 13:36:41 UTC
Just calling this from the command line:

[root@dev wiki112]# /usr/local/bin/php /var/www/html/wiki/maintenance/dumpBackup.php --current --quiet
Fatal error: Call to undefined method DatabaseMysql::setTimeout() in /var/www/html/wiki112/maintenance/backup.inc on line 228


We're using MySQL 4.1, Apache 2.2, PHP 5.2.4
Comment 1 Brion Vibber 2008-06-06 17:32:56 UTC
I'm staring right at it in Database.php...

	public function setTimeout( $timeout ) {
		$this->query( "SET net_read_timeout=$timeout" );
		$this->query( "SET net_write_timeout=$timeout" );
	}
Comment 2 Travis D 2008-06-06 17:37:59 UTC
Yes. It's there for me too, but did you try running the command? It doesn't work. 
Comment 3 Brion Vibber 2008-06-06 17:45:22 UTC
Yes, and it works fine.
Comment 4 Travis D 2008-06-06 17:48:28 UTC
After I cleanly install a version of MW 1.12.0, it does not work for me:

[root@dev mediawiki-1.12.0]# /usr/local/bin/php /var/www/html/wiki/maintenance/dumpBackup.php --current --quiet
Fatal error: Call to undefined method DatabaseMysql::setTimeout() in /var/www/html/mediawiki-1.12.0/maintenance/backup.inc on line 228

Just to let you know.

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


Navigation
Links