Last modified: 2010-05-15 15:54:45 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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