[Bug 54120] Fatal error when $wgDebugDBTransactions is enabled with SQLite: Object of class PDO could not be converted to string in /includes/db/Database.php:3850

2014-01-16 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=54120

Alexey al...@all-x.net changed:

   What|Removed |Added

 CC||al...@all-x.net

--- Comment #6 from Alexey al...@all-x.net ---
I've faced the same issue. The problem starts in debug message:

includes/objectcache/SqlBagOStuff.php:147:

if ( $wgDebugDBTransactions ) {
wfDebug( sprintf( Connection %s will be used for SqlBagOStuff\n, $db ) );
}

that calls __toString method for $db:

includes/db/Database.php:

public function __toString() {
return (string)$this-mConn;
}

I use MySQL database and in my case $this-mConn is an object of type mysqli
that can't be converted to String.

To print type of connection I've changed return expression to $this-getType()
but not sure what behaviour was intended.

My config:
MediaWiki 1.22.0 (80d6477)

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 54120] Fatal error when $wgDebugDBTransactions is enabled with SQLite: Object of class PDO could not be converted to string in /includes/db/Database.php:3850

2014-01-03 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=54120

--- Comment #4 from Andre Klapper aklap...@wikimedia.org ---
Jackmcbarn: What do you do to get the error? You have to go to a specific page
or do a specific action?

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 54120] Fatal error when $wgDebugDBTransactions is enabled with SQLite: Object of class PDO could not be converted to string in /includes/db/Database.php:3850

2014-01-03 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=54120

--- Comment #5 from Jackmcbarn jackmcbarn+w...@gmail.com ---
Viewing any page causes the error for me. This still happens with latest git,
except the error is on line 4096 now (which is still return
(string)$this-mConn;). This happens with PHP 5.4.22 (with XAMPP 1.8.2) in
case that helps.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 54120] Fatal error when $wgDebugDBTransactions is enabled with SQLite: Object of class PDO could not be converted to string in /includes/db/Database.php:3850

2013-12-22 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=54120

Dereckson dereck...@espace-win.org changed:

   What|Removed |Added

 CC||dereck...@espace-win.org

--- Comment #3 from Dereckson dereck...@espace-win.org ---
I can't reproduce this bug on an up-to-date MediaWiki installation using
SQLite.

I added $wgDebugDBTransactions = true in the configuration.
What do you do to get the error? You have to go to a specific page or do a
specific action?

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 54120] Fatal error when $wgDebugDBTransactions is enabled with SQLite: Object of class PDO could not be converted to string in /includes/db/Database.php:3850

2013-09-17 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=54120

Andre Klapper aklap...@wikimedia.org changed:

   What|Removed |Added

Summary|Fatal error when|Fatal error when
   |$wgDebugDBTransactions is   |$wgDebugDBTransactions is
   |enabled with SQLite |enabled with SQLite: Object
   ||of class PDO could not be
   ||converted to string in
   ||/includes/db/Database.php:3
   ||850

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l